Table:
0
A
B
C
D
E
F
G
1
Name
Years
Gender
Area
Authority
Decile
Roll
2
Aria School
1–6
Coed
Aria
State
5
55
3
Benneydale School
1–8
Coed
Benneydale
State
1
14
4
Centennial Park School
1–8
Coed
Te Kuiti
State
1
113
5
Kinohaku School
1–8
Coed
Te Kuiti
State
4
32
6
Mapiu School
1–8
Coed
Mapiu
State
4
9
7
Mokau School
1–8
Coed
Mokau
State
3
24
8
Piopio College
7–15
Coed
Piopio
State
4
202
9
Piopio Primary School
1–6
Coed
Piopio
State
5
129
10
Piri Piri School
1–8
Coed
Te Kuiti
State
4
22
11
Pukenui School
1–8
Coed
Te Kuiti
State
2
186
12
Rangitoto School
1–8
Coed
Rangitoto
State
6
40
13
St Joseph's Catholic School
1–8
Coed
Te Kuiti
State integrated
4
102
14
Te Kuiti High School
9–15
Coed
Te Kuiti
State
3
321
15
Te Kuiti Primary School
1–8
Coed
Te Kuiti
State
2
356
16
Te Kura o Tahaaroa
1–8
Coed
Te Kuiti
State
3
38
17
Te Wharekura o Maniapoto
1–15
Coed
Te Kuiti
State
2
96
18
Waitomo Caves School
1–8
Coed
Waitomo Caves
State
5
44
19
Whareorino School
1–8
Coed
Mokau
State
5
10

Questions and formulas:
Question: Which years have a Decile of 4, an Authority of state, and a Name of mapiu school?
Formula: LET(query1,LET(query1,FILTER(A1:G1,(E1="state")*(A1="mapiu school")),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)=4))
Formula2: LET(query1,LET(query1,FILTER(A2:G19,(E2:E19="state")*(A2:A19="mapiu school")),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)=4))
Level: hard
Question: Which years have a Decile smaller than 6, an Area of te kuiti, and an Authority of state integrated?
Formula: LET(query1,LET(query1,FILTER(A1:G1,(D1="te kuiti")*(E1="state integrated")),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)<6))
Formula2: LET(query1,LET(query1,FILTER(A2:G19,(D2:D19="te kuiti")*(E2:E19="state integrated")),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)<6))
Level: hard
Question: What is the average Decile with a state authority and a Name of mapiu school?
Formula: AVERAGE(FILTER(F1, (E1="state")*(A1="mapiu school")))
Formula2: AVERAGE(FILTER(F2:F19, (E2:E19="state")*(A2:A19="mapiu school")))
Level: easy
Question: Which years have an Area of rangitoto?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,D1="rangitoto"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G19,D2:D19="rangitoto"),2))
Level: medium
Question: Which gender has a Name of rangitoto school?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,A1="rangitoto school"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G19,A2:A19="rangitoto school"),3))
Level: medium