Table:
0
A
B
C
D
1
account id
customer id
account name
other account details
2
1
6
338
Regular
3
2
14
562
VIP
4
3
9
162
VIP
5
4
12
38
Regular
6
5
13
858
Regular
7
6
12
262
Regular
8
7
9
621
Regular
9
8
8
381
Regular
10
9
9
546
Regular
11
10
4
767
VIP
12
11
4
22
VIP
13
12
2
866
VIP
14
13
10
234
VIP
15
14
9
557
VIP
16
15
4
725
VIP

Questions and formulas:
Question: How many accounts?
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: the id and other details of account 338
Formula: LET(query1,SUMMARIZE(HSTACK(D1,A1),SUMX(C1)),FILTER(query1,CHOOSECOLS(query1,3)=338))
Formula2: LET(query1,SUMMARIZE(HSTACK(D2:D16,A2:A16),SUMX(C2:C16)),FILTER(query1,CHOOSECOLS(query1,3)=338))
Level: hard
Question: The other details and account id of the account with the name 338.
Formula: LET(query1,SUMMARIZE(HSTACK(D1,A1),SUMX(C1)),FILTER(query1,CHOOSECOLS(query1,3)=338))
Formula2: LET(query1,SUMMARIZE(HSTACK(D2:D16,A2:A16),SUMX(C2:C16)),FILTER(query1,CHOOSECOLS(query1,3)=338))
Level: hard
Question: every customer's number of accounts
Formula: SUMMARIZE(B1,SUMX(A1))
Formula2: SUMMARIZE(B2:B16,SUMX(A2:A16))
Level: easy
Question: Total accounts held by each customer.
Formula: SUMMARIZE(B1,SUMX(A1))
Formula2: SUMMARIZE(B2:B16,SUMX(A2:A16))
Level: easy
Question: Which customer has opened the most accounts?
Formula: TAKE(SORT(SUMMARIZE(B1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(B2:B16,SUMX(A2:A16)), 2, -1), 1)
Level: hard
Question: Customer with the highest number of accounts
Formula: TAKE(SORT(SUMMARIZE(B1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(B2:B16,SUMX(A2:A16)), 2, -1), 1)
Level: hard
Question: the respective number of customers and accounts
Formula: HSTACK(SUM(B1), SUM(A1))
Formula2: HSTACK(SUM(B2:B16), SUM(A2:A16))
Level: medium
Question: the number of accounts for each customer
Formula: SUMMARIZE(B1,SUMX(A1))
Formula2: SUMMARIZE(B2:B16,SUMX(A2:A16))
Level: easy
Question: The number of accounts for each customer.
Formula: SUMMARIZE(B1,SUMX(A1))
Formula2: SUMMARIZE(B2:B16,SUMX(A2:A16))
Level: easy
Question: The customer who has the most accounts
Formula: TAKE(SORT(SUMMARIZE(B1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(B2:B16,SUMX(A2:A16)), 2, -1), 1)
Level: hard
Question: How many accounts in total?
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: How many accounts?
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy