Table:
0
A
B
C
D
E
1
people id
district
name
party
age
2
1
New York 1
Luther C. Carter
Republican
35
3
2
New York 2
James Humphrey
Republican
38
4
3
New York 3
Daniel Sickles
Democratic
46
5
4
New York 4
Thomas J. Barr
Independent Democrat
48
6
5
New York 5
William B. Maclay
Democratic
36
7
6
New York 6
John Cochrane
Democratic
46
8
7
New York 7
George Briggs
Republican
42
9
8
New York 8
Horace F. Clark
Anti-Lecompton Democrat
45
10
9
New York 9
John B. Haskin
Anti-Lecompton Democrat
43
11
10
New York 10
Charles Van Wyck
Republican
36

Questions and formulas:
Question: Show different parties of people along with the number of people in each party.
Formula: SUMMARIZE(D1,SUMX(A1))
Formula2: SUMMARIZE(D2:D11,SUMX(A2:A11))
Level: easy
Question: Show the party that has the most people.
Formula: TAKE(SORT(SUMMARIZE(D1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(D2:D11,SUMX(A2:A11)), 2, -1), 1)
Level: hard
Question: How many people does each party have?
Formula: SUMMARIZE(D1,SUMX(A1))
Formula2: SUMMARIZE(D2:D11,SUMX(A2:A11))
Level: easy
Question: Which party has the most people?
Formula: TAKE(SORT(SUMMARIZE(D1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(D2:D11,SUMX(A2:A11)), 2, -1), 1)
Level: hard
Question: The party having the most people
Formula: TAKE(SORT(SUMMARIZE(D1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(D2:D11,SUMX(A2:A11)), 2, -1), 1)
Level: hard