Table:
0
A
B
C
D
E
1
Rank
Gold
Silver
Bronze
Total
2
1
4
2
2
8
3
2
3
3
2
8
4
3
3
1
1
5
5
4
2
2
–
4
6
5
1
3
1
5
7
6
1
1
1
3
8
7
–
1
–
1
9
9
–
–
5
5
10
10
–
–
1
1

Questions and formulas:
Question: What is Gold, when Total is less than 4, when Silver is 1, and when Bronze is 1?
Formula: LET(query1,LET(query1,FILTER(A1:E1,(C1=1)*(D1=1)),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)<4))
Formula2: LET(query1,LET(query1,FILTER(A2:E10,(C2:C10=1)*(D2:D10=1)),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)<4))
Level: hard
Question: What is Silver, when Total is greater than 4, when Bronze is 2, and when Rank is greater than 1?
Formula: LET(query1,LET(query1,FILTER(A1:E1,D1=2),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,5)),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,(CHOOSECOLS(query1,2)>4)*(CHOOSECOLS(query1,3)>1)))
Formula2: LET(query1,LET(query1,FILTER(A2:E10,D2:D10=2),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,5)),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,(CHOOSECOLS(query1,2)>4)*(CHOOSECOLS(query1,3)>1)))
Level: hard