Table:
0
A
B
C
D
E
F
1
branch id
bname
no of customers
city
state
bank
2
1
morningside
203
New York City
New York
3
2
downtown
123
Salt Lake City
Utah
4
3
broadway
453
New York City
New York
5
4
high
367
Austin
Texas

Questions and formulas:
Question: How many bank and branches are there?
Formula: HSTACK(ROWS(UNIQUE(F1)), SUM(A1))
Formula2: HSTACK(ROWS(UNIQUE(F2:F5)), SUM(A2:A5))
Level: hard
Question: Count the number of bank branches.
Formula: SUMMARIZE(A1,DCOUNTX(F1))
Formula2: SUMMARIZE(A2:A5,DCOUNTX(F2:F5))
Level: easy
Question: What is the total number of customers across banks?
Formula: SUM(C1)
Formula2: SUM(C2:C5)
Level: easy
Question: Find the number of customers in the banks at New York City.
Formula: SUM(FILTER(C1,D1="New York City"))
Formula2: SUM(FILTER(C2:C5,D2:D5="New York City"))
Level: easy
Question: What is the total number of customers who use banks in New York City?
Formula: SUM(FILTER(C1,D1="New York City"))
Formula2: SUM(FILTER(C2:C5,D2:D5="New York City"))
Level: easy
Question: Find the average number of customers in all banks of Utah state.
Formula: AVERAGE(FILTER(C1,E1="Utah"))
Formula2: AVERAGE(FILTER(C2:C5,E2:E5="Utah"))
Level: easy
Question: What is the average number of customers across banks in the state of Utah?
Formula: AVERAGE(FILTER(C1,E1="Utah"))
Formula2: AVERAGE(FILTER(C2:C5,E2:E5="Utah"))
Level: easy
Question: Find the average number of customers cross all banks.
Formula: AVERAGE(C1)
Formula2: AVERAGE(C2:C5)
Level: easy
Question: Find the city and state of the bank branch named morningside.
Formula: CHOOSE({1,2},FILTER(D1,B1="morningside"),FILTER(E1,B1="morningside"))
Formula2: CHOOSE({1,2},FILTER(D2:D5,B2:B5="morningside"),FILTER(E2:E5,B2:B5="morningside"))
Level: medium
Question: What city and state is the bank with the name morningside in?
Formula: CHOOSE({1,2},FILTER(D1,B1="morningside"),FILTER(E1,B1="morningside"))
Formula2: CHOOSE({1,2},FILTER(D2:D5,B2:B5="morningside"),FILTER(E2:E5,B2:B5="morningside"))
Level: medium
Question: Find the branch names of banks in the New York state.
Formula: FILTER(B1,E1="New York")
Formula2: FILTER(B2:B5,E2:E5="New York")
Level: easy
Question: What are the names of banks in the state of New York?
Formula: FILTER(B1,E1="New York")
Formula2: FILTER(B2:B5,E2:E5="New York")
Level: easy
Question: Find the number of different cities which banks are located at.
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D5))
Level: easy
Question: In how many different cities are banks located?
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D5))
Level: easy
Question: Find the number of different states which banks are located at.
Formula: ROWS(UNIQUE(E1))
Formula2: ROWS(UNIQUE(E2:E5))
Level: easy
Question: In how many different states are banks located?
Formula: ROWS(UNIQUE(E1))
Formula2: ROWS(UNIQUE(E2:E5))
Level: easy
Question: find the branch of the bank that has the most number of customer
Formula: LET(a,HSTACK(A1,F1),b,F1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(F1,SUMX(C1)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(A2:A5,F2:F5),b,F2:F5,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(F2:F5,SUMX(C2:C5)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: What is the name of the branch with the greatest number of customers
Formula: LET(a,HSTACK(B1,A1),b,A1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(A1,SUMX(C1)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(B2:B5,A2:A5),b,A2:A5,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(A2:A5,SUMX(C2:C5)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: Find the state which has the most number of customers.
Formula: TAKE(SORT(SUMMARIZE(E1,SUMX(C1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(E2:E5,SUMX(C2:C5)), 2, -1), 1)
Level: hard
Question: Which state has the most number of customers?
Formula: TAKE(SORT(SUMMARIZE(E1,SUMX(C1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(E2:E5,SUMX(C2:C5)), 2, -1), 1)
Level: hard
Question: How many customers does each bank have?
Formula: SUMMARIZE(F1,SUMX(C1))
Formula2: SUMMARIZE(F2:F5,SUMX(C2:C5))
Level: easy
Question: What's the mean number of customers in utah banks?
Formula: LET(query1,FILTER(A1:F1,E1="utah"),SUMMARIZE(CHOOSECOLS(query1,6),AVERAGEX(CHOOSECOLS(query1,3))))
Formula2: LET(query1,FILTER(A2:F5,E2:E5="utah"),SUMMARIZE(CHOOSECOLS(query1,6),AVERAGEX(CHOOSECOLS(query1,3))))
Level: hard
Question: How many cities and banks?
Formula: HSTACK(ROWS(UNIQUE(D1)), ROWS(UNIQUE(F1)))
Formula2: HSTACK(ROWS(UNIQUE(D2:D5)), ROWS(UNIQUE(F2:F5)))
Level: hard
Question: How many states and banks?
Formula: HSTACK(ROWS(UNIQUE(E1)), ROWS(UNIQUE(F1)))
Formula2: HSTACK(ROWS(UNIQUE(E2:E5)), ROWS(UNIQUE(F2:F5)))
Level: hard
Question: The average customer number for banks in utah.
Formula: LET(query1,FILTER(A1:F1,E1="utah"),SUMMARIZE(CHOOSECOLS(query1,6),AVERAGEX(CHOOSECOLS(query1,3))))
Formula2: LET(query1,FILTER(A2:F5,E2:E5="utah"),SUMMARIZE(CHOOSECOLS(query1,6),AVERAGEX(CHOOSECOLS(query1,3))))
Level: hard
Question: Which state have a greatest number of customers?
Formula: TAKE(SORT(SUMMARIZE(E1,SUMX(C1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(E2:E5,SUMX(C2:C5)), 2, -1), 1)
Level: hard