Table:
0
A
B
C
D
E
1
order item id
order id
product id
product quantity
other order item details
2
1
4
4
6
3
2
4
10
7
4
3
15
5
4
5
4
1
3
9
6
5
2
14
3
7
6
13
12
8
8
7
1
15
3
9
8
10
4
4
10
9
14
5
1
11
10
13
9
2
12
11
15
7
5
13
12
4
14
4
14
13
12
13
1
15
14
13
14
2
16
15
13
14
6

Questions and formulas:
Question: How many order items correspond to each order id?
Formula: SUMMARIZE(B1,SUMX(A1))
Formula2: SUMMARIZE(B2:B16,SUMX(A2:A16))
Level: easy
Question: Show the product ids and the number of unique orders containing each product.
Formula: SUMMARIZE(C1,SUMX(B1))
Formula2: SUMMARIZE(C2:C16,SUMX(B2:B16))
Level: easy
Question: How many distinct order ids correspond to each product?
Formula: SUMMARIZE(C1,DCOUNTX(B1))
Formula2: SUMMARIZE(C2:C16,DCOUNTX(B2:B16))
Level: easy
Question: Show order ids and the number of products in each order id.
Formula: SUMMARIZE(B1,SUMX(C1))
Formula2: SUMMARIZE(B2:B16,SUMX(C2:C16))
Level: easy
Question: How many different products correspond to each order id?
Formula: SUMMARIZE(B1,DCOUNTX(C1))
Formula2: SUMMARIZE(B2:B16,DCOUNTX(C2:C16))
Level: easy
Question: Give the order ids for all orders, as well as the total product quantity in each.
Formula: SUMMARIZE(B1,SUMX(D1))
Formula2: SUMMARIZE(B2:B16,SUMX(D2:D16))
Level: easy