Table:
0
A
B
C
D
1
student id
game id
hours played
plays games
2
1001
1
35
3
1001
2
15
4
1001
5
1
5
1007
4
1000
6
1008
5
50
7
1008
3
50
8
1010
6
1337
9
1032
1
47
10
1032
2
10
11
1032
3
100

Questions and formulas:
Question: How many different students and play games?
Formula: HSTACK(ROWS(UNIQUE(A1)), ROWS(UNIQUE(D1)))
Formula2: HSTACK(ROWS(UNIQUE(A2:A11)), ROWS(UNIQUE(D2:D11)))
Level: hard
Question: Show all game ids and the number of hours played.
Formula: SUMMARIZE(B1,SUMX(C1))
Formula2: SUMMARIZE(B2:B11,SUMX(C2:C11))
Level: easy
Question: What are ids and total number of hours played for each game?
Formula: SUMMARIZE(HSTACK(A1,B1),SUMX(C1))
Formula2: SUMMARIZE(HSTACK(A2:A11,B2:B11),SUMX(C2:C11))
Level: medium
Question: Show all student ids and the number of hours played.
Formula: SUMMARIZE(A1,SUMX(C1))
Formula2: SUMMARIZE(A2:A11,SUMX(C2:C11))
Level: easy
Question: What are the ids of all students and number of hours played?
Formula: SUMMARIZE(A1,SUMX(C1))
Formula2: SUMMARIZE(A2:A11,SUMX(C2:C11))
Level: easy
Question: How many hours in total does each student spend playing each type of game?
Formula: SUMMARIZE(HSTACK(A1,B1),SUMX(C1))
Formula2: SUMMARIZE(HSTACK(A2:A11,B2:B11),SUMX(C2:C11))
Level: medium
Question: Total hours spending on each game.
Formula: SUMMARIZE(B1,SUMX(C1))
Formula2: SUMMARIZE(B2:B11,SUMX(C2:C11))
Level: easy
Question: How many hours does each student spend playing games?
Formula: SUMMARIZE(HSTACK(A1,D1),SUMX(C1))
Formula2: SUMMARIZE(HSTACK(A2:A11,D2:D11),SUMX(C2:C11))
Level: medium
Question: How many hours did each student spend?
Formula: SUMMARIZE(A1,SUMX(C1))
Formula2: SUMMARIZE(A2:A11,SUMX(C2:C11))
Level: easy
Question: How many hours in total does each student spend in playing each kind of games?
Formula: SUMMARIZE(HSTACK(A1,B1),SUMX(C1))
Formula2: SUMMARIZE(HSTACK(A2:A11,B2:B11),SUMX(C2:C11))
Level: medium
Question: How many hours does each student spend in playing games?
Formula: SUMMARIZE(HSTACK(A1,D1),SUMX(C1))
Formula2: SUMMARIZE(HSTACK(A2:A11,D2:D11),SUMX(C2:C11))
Level: medium