Table:
0
A
B
C
D
E
1
product id
product type code
product name
product price
products
2
1
Clothes
red jeans
734.73
3
2
Clothes
yellow jeans
687.23
4
3
Clothes
black jeans
695.16
5
4
Clothes
blue jeans
939.57
6
5
Clothes
red jeans
534.52
7
6
Clothes
red topping
408.82
8
7
Clothes
black topping
916.53
9
8
Clothes
yellow topping
918.41
10
9
Clothes
blue topping
604.86
11
10
Hardware
monitor
813.76
12
11
Hardware
mouse
803.74
13
12
Hardware
drive
944.96
14
13
Hardware
keyboard
629.89
15
14
Hardware
speaker
612.46
16
15
Hardware
mic
971.44

Questions and formulas:
Question: Give the id and product type of the product with the lowest price.
Formula: LET(a,SORTBY(CHOOSE({1,2},A1,B1),D1,1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Formula2: LET(a,SORTBY(CHOOSE({1,2},A2:A16,B2:B16),D2:D16,1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Level: hard
Question: Find the number of different product types.
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B16))
Level: easy
Question: Count the number of distinct product types.
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B16))
Level: easy
Question: Return the average price for each product type.
Formula: SUMMARIZE(B1,AVERAGEX(D1))
Formula2: SUMMARIZE(B2:B16,AVERAGEX(D2:D16))
Level: easy
Question: Return the names and ids of all products whose price is between 600 and 700.
Formula: CHOOSE({1,2},FILTER(C1,(D1>=600)*(D1<=700)),FILTER(A1,(D1>=600)*(D1<=700)))
Formula2: CHOOSE({1,2},FILTER(C2:C16,(D2:D16>=600)*(D2:D16<=700)),FILTER(A2:A16,(D2:D16>=600)*(D2:D16<=700)))
Level: medium
Question: Find the average price of all product clothes.
Formula: AVERAGE(FILTER(D1,B1="Clothes"))
Formula2: AVERAGE(FILTER(D2:D16,B2:B16="Clothes"))
Level: easy
Question: What is the average price of clothes?
Formula: AVERAGE(FILTER(D1,B1="Clothes"))
Formula2: AVERAGE(FILTER(D2:D16,B2:B16="Clothes"))
Level: easy
Question: What is the name of the hardware product with the greatest price?
Formula: LET(a,HSTACK(C1,E1),b,E1,c,CHOOSECOLS(TAKE(SORT(LET(query1,FILTER(A1:E1,B1="hardware"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,4)))), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(C2:C16,E2:E16),b,E2:E16,c,CHOOSECOLS(TAKE(SORT(LET(query1,FILTER(A2:E16,B2:B16="hardware"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,4)))), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: Product names and IDs with price between 600 and 700.
Formula: LET(query1,SUMMARIZE(HSTACK(C1,A1),SUMX(D1)),FILTER(query1,(CHOOSECOLS(query1,3)>=600)*(CHOOSECOLS(query1,3)<=700)))
Formula2: LET(query1,SUMMARIZE(HSTACK(C2:C16,A2:A16),SUMX(D2:D16)),FILTER(query1,(CHOOSECOLS(query1,3)>=600)*(CHOOSECOLS(query1,3)<=700)))
Level: hard
Question: What is the average price for each product type?
Formula: SUMMARIZE(B1,AVERAGEX(D1))
Formula2: SUMMARIZE(B2:B16,AVERAGEX(D2:D16))
Level: easy
Question: cheapest product's  id and type code.
Formula: LET(a,HSTACK(A1,B1,E1),b,E1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(E1,SUMX(D1)), 2, 1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(A2:A16,B2:B16,E2:E16),b,E2:E16,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(E2:E16,SUMX(D2:D16)), 2, 1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: How many product type codes are there?
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B16))
Level: easy
Question: How many product types are there? 
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B16))
Level: easy
Question: What's the average clothing price?
Formula: AVERAGEIFS(D1,B1,"clothes")
Formula2: AVERAGEIFS(D2:D16,B2:B16,"clothes")
Level: easy
Question: average product price for clothes.
Formula: AVERAGEIFS(D1,B1,"clothes")
Formula2: AVERAGEIFS(D2:D16,B2:B16,"clothes")
Level: easy
Question: what's the name of the most expensive hardware?
Formula: TAKE(SORT(LET(query1,FILTER(A1:E1,B1="hardware"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))), 2, -1), 1)
Formula2: TAKE(SORT(LET(query1,FILTER(A2:E16,B2:B16="hardware"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))), 2, -1), 1)
Level: hard
Question: the id and type code of the cheapest product.
Formula: LET(a,HSTACK(A1,B1,E1),b,E1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(E1,SUMX(D1)), 2, 1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(A2:A16,B2:B16,E2:E16),b,E2:E16,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(E2:E16,SUMX(D2:D16)), 2, 1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: How many product types?
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B16))
Level: easy
Question: The ids and names of products with price between 600 and 700.
Formula: LET(query1,SUMMARIZE(HSTACK(C1,A1,E1),SUMX(D1)),FILTER(query1,(CHOOSECOLS(query1,4)>=600)*(CHOOSECOLS(query1,4)<=700)))
Formula2: LET(query1,SUMMARIZE(HSTACK(C2:C16,A2:A16,E2:E16),SUMX(D2:D16)),FILTER(query1,(CHOOSECOLS(query1,4)>=600)*(CHOOSECOLS(query1,4)<=700)))
Level: hard
Question: What's the average price of clothes?
Formula: AVERAGEIFS(D1,B1,"clothes")
Formula2: AVERAGEIFS(D2:D16,B2:B16,"clothes")
Level: easy
Question: the product price on average for clothes.
Formula: AVERAGEIFS(D1,B1,"clothes")
Formula2: AVERAGEIFS(D2:D16,B2:B16,"clothes")
Level: easy
Question: the name of the most expensive hardware.
Formula: TAKE(SORT(LET(query1,FILTER(A1:E1,B1="hardware"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))), 2, -1), 1)
Formula2: TAKE(SORT(LET(query1,FILTER(A2:E16,B2:B16="hardware"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))), 2, -1), 1)
Level: hard