Table:
0
A
B
C
D
E
1
Number
Origin
Final destination
Frequency
Distance
2
1
Bryngelstorp
Harg
Every 15 minutes
km (mi)
3
2
Arnö
Brandkärr
Every 15 minutes
km (mi)
4
3
Bus station
Brandholmen
Twice an hour
km (mi)
5
161
Bus station
Bus station
10 times/day
NA
6
162
Bus station
Bus station
10 times/day
NA

Questions and formulas:
Question: What is the frequency of number 161?
Formula: LET(query1,SUMMARIZE(D1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,2)=161))
Formula2: LET(query1,SUMMARIZE(D2:D6,SUMX(A2:A6)),FILTER(query1,CHOOSECOLS(query1,2)=161))
Level: hard
Question: What is the frequency of number 3 with a bus station origin?
Formula: LET(query1,LET(query1,FILTER(A1:E1,B1="bus station"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)=3))
Formula2: LET(query1,LET(query1,FILTER(A2:E6,B2:B6="bus station"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)=3))
Level: hard
Question: What is the origin of the one with a number larger than 161?
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,2)>161))
Formula2: LET(query1,SUMMARIZE(B2:B6,SUMX(A2:A6)),FILTER(query1,CHOOSECOLS(query1,2)>161))
Level: hard
Question: What is the origin of the one whose final destination is Brandholmen?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="brandholmen"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,C2:C6="brandholmen"),2))
Level: medium