Table:
0
A
B
C
D
E
F
1
branch id
name
open year
address road
city
membership amount
2
1
Alexandre
1/1/2001
Valleys Place
London
112
3
2
Popert
1/1/2009
Oaks Crescent
London
11
4
3
Stanley
1/1/2013
Abbott Street
London
6
5
4
Zytogorski
1/1/2009
Abbey Rise
Oxford
7
6
5
Cochrane
1/1/2012
Brampton Road
London
1418
7
6
Taverner
1/1/2014
Cecilia Avenue
Oxford
56
8
7
Saint Amant
1/1/2015
Concord Road
London
91
9
8
Brooke Greville
1/1/2009
Glebe Street
Oxford
31

Questions and formulas:
Question: Show name, address road, and city for all branches sorted by open year.
Formula: SORTBY(CHOOSE({1,2,3},B1,D1,E1),C1,1)
Formula2: SORTBY(CHOOSE({1,2,3},B2:B9,D2:D9,E2:E9),C2:C9,1)
Level: easy
Question: What are the names, address roads, and cities of the branches ordered by opening year?
Formula: SORTBY(CHOOSE({1,2,3},B1,D1,E1),C1,1)
Formula2: SORTBY(CHOOSE({1,2,3},B2:B9,D2:D9,E2:E9),C2:C9,1)
Level: easy
Question: Show all distinct city where branches with at least 100 memberships are located.
Formula: UNIQUE(FILTER(E1,F1>=100))
Formula2: UNIQUE(FILTER(E2:E9,F2:F9>=100))
Level: easy
Question: What are the different cities that have more than 100 memberships?
Formula: UNIQUE(FILTER(E1,F1>=100))
Formula2: UNIQUE(FILTER(E2:E9,F2:F9>=100))
Level: easy
Question: Show the city and the number of branches opened before 2010 for each city.
Formula: LET(query1,FILTER(A1:F1,Year(C1)<2010),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1))))
Formula2: LET(query1,FILTER(A2:F9,Year(C1)<2010),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1))))
Level: hard
Question: For each city, how many branches opened before 2010?
Formula: LET(query1,FILTER(A1:F1,Year(C1)<2010),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1))))
Formula2: LET(query1,FILTER(A2:F9,Year(C1)<2010),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1))))
Level: hard
Question: Show all city with a branch opened in 2001 and a branch with more than 100 membership.
Formula: FILTER(E1,(C1=2001)*(F1>100))
Formula2: FILTER(E2:E9,(C2:C9=2001)*(F2:F9>100))
Level: easy
Question: Address roads, branch ids, cities, names and open years from earliest to latest by opening year
Formula: SORT(UNIQUE(HSTACK(B1,D1,E1,A1,C1)), 5, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B9,D2:D9,E2:E9,A2:A9,C2:C9)), 5, 1)
Level: medium
Question: Address roads, branch ids, cities, names in chronological order of opening years.
Formula: SORT(UNIQUE(HSTACK(B1,D1,E1,A1,C1)), 5, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B9,D2:D9,E2:E9,A2:A9,C2:C9)), 5, 1)
Level: medium
Question: Cities and brand ids for shops having 100 members or over.
Formula: LET(query1,SUMMARIZE(HSTACK(E1,A1),SUMX(F1)),FILTER(query1,CHOOSECOLS(query1,3)>=100))
Formula2: LET(query1,SUMMARIZE(HSTACK(E2:E9,A2:A9),SUMX(F2:F9)),FILTER(query1,CHOOSECOLS(query1,3)>=100))
Level: hard
Question: cities where membership is over 100
Formula: LET(query1,SUMMARIZE(E1,SUMX(F1)),FILTER(query1,CHOOSECOLS(query1,2)>100))
Formula2: LET(query1,SUMMARIZE(E2:E9,SUMX(F2:F9)),FILTER(query1,CHOOSECOLS(query1,2)>100))
Level: hard
Question: How many branches were opened before 2010 in each city?
Formula: LET(query1,FILTER(A1:F1,Year(C1)<2010),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1))))
Formula2: LET(query1,FILTER(A2:F9,Year(C1)<2010),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1))))
Level: hard
Question: Total number of branches opened before 2010 in different cities
Formula: LET(query1,FILTER(A1:F1,Year(C1)<2010),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1))))
Formula2: LET(query1,FILTER(A2:F9,Year(C1)<2010),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1))))
Level: hard
Question: What are address roads, branch ids, cities and names by open years from earliest to latest?
Formula: SORT(UNIQUE(HSTACK(B1,D1,E1,A1,C1)), 5, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B9,D2:D9,E2:E9,A2:A9,C2:C9)), 5, 1)
Level: medium
Question: Cities and brand ids for shops having at least 100 members.
Formula: LET(query1,SUMMARIZE(HSTACK(E1,A1),SUMX(F1)),FILTER(query1,CHOOSECOLS(query1,3)>=100))
Formula2: LET(query1,SUMMARIZE(HSTACK(E2:E9,A2:A9),SUMX(F2:F9)),FILTER(query1,CHOOSECOLS(query1,3)>=100))
Level: hard
Question: Cities where shops with more than 100 members locate.
Formula: LET(query1,SUMMARIZE(E1,SUMX(F1)),FILTER(query1,CHOOSECOLS(query1,2)>100))
Formula2: LET(query1,SUMMARIZE(E2:E9,SUMX(F2:F9)),FILTER(query1,CHOOSECOLS(query1,2)>100))
Level: hard
Question: Number of branches opened in each city before 2010.
Formula: LET(query1,FILTER(A1:F1,Year(C1)<2010),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1))))
Formula2: LET(query1,FILTER(A2:F9,Year(C1)<2010),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1))))
Level: hard