Table:
0
A
B
C
D
E
1
Borough
Components
Population
Number of Borough Councilors
Number of Municipal Councilors
2
Brompton
Bromptonville
5,771
3
1
3
Fleurimont
Eastern Sherbrooke, Fleurimont
41,289
5
5
4
Lennoxville
Lennoxville
4,947
3
1
5
Mont-Bellevue
Western Sherbrooke, Ascot
31,373
4
4
6
Rock Forest–Saint-Élie–Deauville
Rock Forest, Saint-Élie-d'Orford, Deauville
26,757
4
4
7
Jacques-Cartier
Northern Sherbrooke
29,311
4
4

Questions and formulas:
Question: What is the average number of borough councilors from Brompton?
Formula: AVERAGEIFS(D1,A1,"brompton")
Formula2: AVERAGEIFS(D2:D7,A2:A7,"brompton")
Level: easy
Question: Which components have a borough of Lennoxville and borough councilors under 4?
Formula: LET(query1,LET(query1,FILTER(A1:E1,A1="lennoxville"),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<4))
Formula2: LET(query1,LET(query1,FILTER(A2:E7,A2:A7="lennoxville"),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<4))
Level: hard