Table:
0
A
B
C
D
E
F
1
Rank
Nation
Gold
Silver
Bronze
Total
2
1
Canada
17
10
7
34
3
2
Scotland
9
4
11
24
4
3
Sweden
5
11
4
20
5
4
Switzerland
4
7
6
17
6
5
United States
3
0
7
10
7
6
Denmark
1
1
0
2
8
7
Germany
0
2
3
5
9
8
Norway
0
1
4
5
10
9
France
0
1
1
2
11
10
Finland
0
1
0
1
12
10
Russia
0
1
0
1
13
Total
Total
39
39
43
121

Questions and formulas:
Question: Where does Norway rank in total medals among countries with fewer than 7 bronzes?
Formula: LET(query1,LET(query1,FILTER(A1:F1,B1="norway"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)<7))
Formula2: LET(query1,LET(query1,FILTER(A2:F13,B2:B13="norway"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)<7))
Level: hard