Table:
0
A
B
C
D
E
1
product id
product type code
product name
product price
2
1
Books
Business Policy
1336.26
3
3
Food
Special Dinning
2894.94
4
5
Clothes
Men suits
3298.84
5
6
Electronics
TV Equipments
932.25
6
7
Books
Business Policy B
3215.66
7
10
Electronics
TV Equipments
4427.49
8
11
Electronics
Conference Equipments
3289.47
9
18
Books
Trading Policy
3228.49
10
20
Books
Trading Policy B
4343.83
11
22
Food
Dinning
3574.56
12
24
Food
Dinning
4895.86
13
26
Food
Dinning
2339.97
14
29
Food
Special Dinning
502.15
15
34
Electronics
TV Equipments
970.77
16
45
Clothes
Men suits
3541.17

Questions and formulas:
Question: How many products are there?
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: List the name of products in ascending order of price.
Formula: SORTBY(C1,D1,1)
Formula2: SORTBY(C2:C16,D2:D16,1)
Level: easy
Question: What are the names and type codes of products?
Formula: CHOOSE({1,2},C1,B1)
Formula2: CHOOSE({1,2},C2:C16,B2:B16)
Level: easy
Question: What is the average price for products?
Formula: AVERAGE(D1)
Formula2: AVERAGE(D2:D16)
Level: easy
Question: What is the name of the product with the highest price?
Formula: LET(a,SORTBY(C1,D1,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Formula2: LET(a,SORTBY(C2:C16,D2:D16,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Level: hard
Question: Show different type codes of products and the number of products with each type code.
Formula: SUMMARIZE(B1,SUMX(A1))
Formula2: SUMMARIZE(B2:B16,SUMX(A2:A16))
Level: easy
Question: Show the product type codes that have at least two products.
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(B2:B16,SUMX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: Total number of products
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: names of products by total price in ascending order
Formula: SORT(SUMMARIZE(C1,SUMX(D1)), 2, 1)
Formula2: SORT(SUMMARIZE(C2:C16,SUMX(D2:D16)), 2, 1)
Level: medium
Question: Show product names and product type codes
Formula: UNIQUE(HSTACK(C1,B1))
Formula2: UNIQUE(HSTACK(C2:C16,B2:B16))
Level: easy
Question: the name, id and price of the most expensive product.
Formula: TAKE(SORT(SUMMARIZE(HSTACK(C1,A1),SUMX(D1)), 3, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(HSTACK(C2:C16,A2:A16),SUMX(D2:D16)), 3, -1), 1)
Level: hard
Question: How many products for each type code?
Formula: SUMMARIZE(B1,SUMX(A1))
Formula2: SUMMARIZE(B2:B16,SUMX(A2:A16))
Level: easy
Question: Type codes with at least 2 products.
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(B2:B16,SUMX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: the number of products
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: Names of products by their total price from low to high
Formula: SORT(SUMMARIZE(C1,SUMX(D1)), 2, 1)
Formula2: SORT(SUMMARIZE(C2:C16,SUMX(D2:D16)), 2, 1)
Level: medium
Question: Any product name and product type code?
Formula: UNIQUE(HSTACK(C1,B1))
Formula2: UNIQUE(HSTACK(C2:C16,B2:B16))
Level: easy
Question: How many products for different type codes?
Formula: SUMMARIZE(B1,DCOUNTX(A1))
Formula2: SUMMARIZE(B2:B16,DCOUNTX(A2:A16))
Level: easy
Question: The type code having at least 2 products.
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(B2:B16,SUMX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard