Table:
0
A
B
C
D
E
1
Nation
Gold
Silver
Bronze
Total
2
Germany
7
4
5
16
3
France
1
4
1
6
4
United States
1
2
1
4
5
Netherlands
1
1
3
5
6
United Kingdom
1
1
1
3
7
Switzerland
1
–
1
2
8
Denmark
1
–
–
1
9
New Zealand
1
–
–
1
10
Belgium
–
1
–
1
11
Spain
–
1
–
1
12
Australia
–
–
1
1
13
Sweden
–
–
1
1

Questions and formulas:
Question: Which nation won 1 gold medal and 1 bronze, for a total of 2 medals?
Formula: LET(query1,LET(query1,FILTER(A1:E1,(B1=1)*(D1=1)),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)=2))
Formula2: LET(query1,LET(query1,FILTER(A2:E13,(B2:B13=1)*(D2:D13=1)),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)=2))
Level: hard