Table:
0
A
B
C
D
E
F
G
1
Name
Years
Gender
Area
Authority
Decile
Roll
2
Featherston School
1–8
Coed
Featherston
State
3
64
3
Greytown School
1–8
Coed
Greytown
State
6
348
4
Kahutara School
1–8
Coed
Kahutara
State
7
100
5
Kuranui College
9–13
Coed
Greytown
State
5
488
6
Martinborough School
1–8
Coed
Martinborough
State
7
251
7
Pirinoa School
1–8
Coed
Pirinoa
State
6
26
8
South Featherston School
1–8
Coed
Featherston
State
5
65
9
St Teresa's School
1–8
Coed
Featherston
Integrated
7
111
10
Tuturumuri School
1–8
Coed
Martinborough
State
7
17

Questions and formulas:
Question: tell me the average roll for the featherston area and integrated authority.
Formula: AVERAGE(FILTER(G1, (D1="featherston")*(E1="integrated")))
Formula2: AVERAGE(FILTER(G2:G10, (D2:D10="featherston")*(E2:E10="integrated")))
Level: easy
Question: tell me the authority that has a decile less than 6 and roll less than 65.
Formula: LET(query1,SUMMARIZE(E1,SUMX(F1),SUMX(G1)),FILTER(query1,(CHOOSECOLS(query1,2)<6)*(CHOOSECOLS(query1,3)<65)))
Formula2: LET(query1,SUMMARIZE(E2:E10,SUMX(F2:F10),SUMX(G2:G10)),FILTER(query1,(CHOOSECOLS(query1,2)<6)*(CHOOSECOLS(query1,3)<65)))
Level: hard
Question: tell me the average roll for pirinoa school.
Formula: AVERAGEIFS(G1,A1,"pirinoa school")
Formula2: AVERAGEIFS(G2:G10,A2:A10,"pirinoa school")
Level: easy
Question: tell me the total number of decile with a roll showing 251.
Formula: SUM(FILTER(F1, G1=251))
Formula2: SUM(FILTER(F2:F10, G2:G10=251))
Level: easy