Table:
0
A
B
C
D
E
F
G
1
Name
Years
Gender
Area
Authority
Decile
Roll
2
Hapuku School
1–8
Coed
Hapuku
State
4
23
3
Kaikoura High School
7–13
Coed
Kaikoura
State
4
217
4
Kaikoura Primary School
1–6
Coed
Kaikoura
State
5
90
5
Kaikoura Suburban School
1–6
Coed
Kaikoura
State
7
93
6
Lynton Downs School
1–6
Coed
Lynton Downs
State
9
15
7
St Joseph's School
1–8
Coed
Kaikoura
State integrated
5
72
8
Woodbank School
1–6
Coed
Kaikoura
State
4
3

Questions and formulas:
Question: What is the lowest Decile for a school with a roll smaller than 3?
Formula: MIN(FILTER(F1, G1<3))
Formula2: MIN(FILTER(F2:F8, G2:G8<3))
Level: easy
Question: What is the Gender of students at a school with a Decile of 5 and a Roll of 90?
Formula: LET(query1,SUMMARIZE(C1,SUMX(F1),SUMX(G1)),FILTER(query1,(CHOOSECOLS(query1,2)=5)*(CHOOSECOLS(query1,3)=90)))
Formula2: LET(query1,SUMMARIZE(C2:C8,SUMX(F2:F8),SUMX(G2:G8)),FILTER(query1,(CHOOSECOLS(query1,2)=5)*(CHOOSECOLS(query1,3)=90)))
Level: hard
Question: Name the Years of schools with a Roll Larger than 23 and a Decile greater than 5.
Formula: LET(query1,SUMMARIZE(B1,SUMX(G1),SUMX(F1)),FILTER(query1,(CHOOSECOLS(query1,2)>23)*(CHOOSECOLS(query1,3)>5)))
Formula2: LET(query1,SUMMARIZE(B2:B8,SUMX(G2:G8),SUMX(F2:F8)),FILTER(query1,(CHOOSECOLS(query1,2)>23)*(CHOOSECOLS(query1,3)>5)))
Level: hard
Question: What is the total number of Rolls of State schools in Hapuku with a Decile greater than 4?
Formula: SUM(FILTER(G1, (E1="state")*(D1="hapuku")*(F1>4)))
Formula2: SUM(FILTER(G2:G8, (E2:E8="state")*(D2:D8="hapuku")*(F2:F8>4)))
Level: easy