Table:
0
A
B
C
D
E
F
G
1
Name
Years
Gender
Area
Authority
Decile
Roll
2
Amberley School
1–8
Coed
Amberley
State
7
230
3
Amuri Area School
1–13
Coed
Culverden
State
8
270
4
Broomfield School
1–8
Coed
Amberley
State
9
114
5
Cheviot Area School
1–13
Coed
Cheviot
State
7
170
6
Greta Valley School
1–8
Coed
Greta Valley
State
9
31
7
Hanmer Springs School
1–8
Coed
Hanmer Springs
State
9
99
8
Hurunui College
1–13
Coed
Hawarden
State
7
236
9
Leithfield School
1–8
Coed
Amberley
State
8
100
10
Omihi School
1–8
Coed
Hurunui
State
8
29
11
Rotherham School
1–6
Coed
Rotherham
State
10
36
12
Waiau School
1–6
Coed
Waiau
State
6
61
13
Waikari School
1–8
Coed
Waikari
State
4
34
14
Waipara School
1–8
Coed
Waipara
State
6
39

Questions and formulas:
Question: Which area has Years of 1–8, a Decile smaller than 7, and a Name of waikari school?
Formula: LET(query1,LET(query1,FILTER(A1:G1,(B1="1–8")*(A1="waikari school")),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)<7))
Formula2: LET(query1,LET(query1,FILTER(A2:G14,(B2:B14="1–8")*(A2:A14="waikari school")),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)<7))
Level: hard
Question: What is the average decile with Years of 1–8, and an Area of waipara?
Formula: AVERAGE(FILTER(F1, (B1="1–8")*(D1="waipara")))
Formula2: AVERAGE(FILTER(F2:F14, (B2:B14="1–8")*(D2:D14="waipara")))
Level: easy
Question: Which area has Years of 1–8, and a Name of broomfield school?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,(B1="1–8")*(A1="broomfield school")),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G14,(B2:B14="1–8")*(A2:A14="broomfield school")),4))
Level: medium
Question: What is the smallest roll with a Decile larger than 6, and a Name of broomfield school?
Formula: MIN(FILTER(G1, (F1>6)*(A1="broomfield school")))
Formula2: MIN(FILTER(G2:G14, (F2:F14>6)*(A2:A14="broomfield school")))
Level: easy
Question: Which name has a Roll of 270?
Formula: LET(query1,SUMMARIZE(A1,SUMX(G1)),FILTER(query1,CHOOSECOLS(query1,2)=270))
Formula2: LET(query1,SUMMARIZE(A2:A14,SUMX(G2:G14)),FILTER(query1,CHOOSECOLS(query1,2)=270))
Level: hard