Table:
0
A
B
C
D
E
F
1
Rank
Constituency
Winning party 2007
Swing to gain
LD's place 2007
Result
2
1
Newport East
Labour
2.20
2nd
Labour hold
3
2
Swansea West
Labour
3.30
2nd
Labour hold
4
3
Wrexham
Labour
6.05
4th
Labour hold
5
4
Ceredigion
Plaid Cymru
6.57
2nd
Plaid Cymru hold
6
5
Pontypridd
Labour
7.11
2nd
Labour hold

Questions and formulas:
Question: I want the constituency which has a swing to gain less than 6.05 and a rank of 2
Formula: LET(query1,SUMMARIZE(B1,SUMX(D1),SUMX(A1)),FILTER(query1,(CHOOSECOLS(query1,2)<6.05)*(CHOOSECOLS(query1,3)=2)))
Formula2: LET(query1,SUMMARIZE(B2:B6,SUMX(D2:D6),SUMX(A2:A6)),FILTER(query1,(CHOOSECOLS(query1,2)<6.05)*(CHOOSECOLS(query1,3)=2)))
Level: hard
Question: Name the winning party 2007 for result of labour hold and swing to gain less than 7.11 for wrexham
Formula: LET(query1,LET(query1,FILTER(A1:F1,(F1="labour hold")*(B1="wrexham")),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<7.11))
Formula2: LET(query1,LET(query1,FILTER(A2:F6,(F2:F6="labour hold")*(B2:B6="wrexham")),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<7.11))
Level: hard
Question: Name the total number of swing to gain with rank more than 1 and LD's place 2007 of 2nd for labour winning party of 2007
Formula: SUM(FILTER(D1, (A1>1)*(E1="2nd")*(C1="labour")))
Formula2: SUM(FILTER(D2:D6, (A2:A6>1)*(E2:E6="2nd")*(C2:C6="labour")))
Level: easy