Table:
0
A
B
C
D
E
F
G
1
Name
Years
Gender
Area
Authority
Decile
Roll
2
Bayswater School
1–6
Coed
Bayswater
State
9
187
3
Belmont Intermediate School
7–8
Coed
Belmont
State
10
538
4
Belmont School
1–6
Coed
Belmont
State
10
367
5
Campbells Bay School
1–6
Coed
Castor Bay
State
10
755
6
Devonport School
1–6
Coed
Devonport
State
10
368
7
Forrest Hill School
1–6
Coed
Forrest Hill
State
9
430
8
Hauraki Primary School
1–6
Coed
Hauraki
State
10
422
9
Milford School
1–6
Coed
Milford
State
10
526
10
St Joseph's Catholic School
1–6
Coed
Takapuna
State integrated
9
371
11
St Leo's School
1–6
Coed
Devonport
State integrated
10
102
12
Stanley Bay School
1–6
Coed
Stanley Bay
State
10
288
13
Sunnynook Primary School
1–6
Coed
Sunnynook
State
7
446
14
Takapuna Normal Intermediate
7–8
Coed
Takapuna
State
9
609
15
Takapuna School
1–6
Coed
Takapuna
State
9
385
16
Vauxhall School
1–6
Coed
Vauxhall
State
10
301
17
Wairau Intermediate
7–8
Coed
Sunnynook
State
8
280

Questions and formulas:
Question: Who has a roll value of 422?
Formula: LET(query1,SUMMARIZE(A1,SUMX(G1)),FILTER(query1,CHOOSECOLS(query1,2)=422))
Formula2: LET(query1,SUMMARIZE(A2:A17,SUMX(G2:G17)),FILTER(query1,CHOOSECOLS(query1,2)=422))
Level: hard
Question: In what area is the decile value 10?
Formula: LET(query1,SUMMARIZE(D1,SUMX(F1)),FILTER(query1,CHOOSECOLS(query1,2)=10))
Formula2: LET(query1,SUMMARIZE(D2:D17,SUMX(F2:F17)),FILTER(query1,CHOOSECOLS(query1,2)=10))
Level: hard
Question: What is the highest decile value with a roll greater than 301 in Hauraki?
Formula: MAX(FILTER(F1, (G1>301)*(D1="hauraki")))
Formula2: MAX(FILTER(F2:F17, (G2:G17>301)*(D2:D17="hauraki")))
Level: easy