Table:
0
A
B
C
D
E
F
1
shop id
name
location
district
number products
manager name
2
1
FC Haka
Valkeakoski
Tehtaan kenttä
3516
Olli Huttunen
3
2
HJK
Helsinki
Finnair Stadium
10770
Antti Muurinen
4
3
FC Honka
Espoo
Tapiolan Urheilupuisto
6000
Mika Lehkosuo
5
4
FC Inter
Turku
Veritas Stadion
10000
Job Dragtsma
6
5
FF Jaro
Jakobstad
Jakobstads Centralplan
5000
Mika Laurikainen
7
6
FC KooTeePee
Kotka
Arto Tolsa Areena
4780
Tommi Kautonen
8
7
KuPS
Kuopio
Magnum Areena
3500
Kai Nyyssönen
9
8
FC Lahti
Lahti
Lahden Stadion
15000
Ilkka Mäkelä
10
9
IFK Mariehamn
Mariehamn
Wiklöf Holding Arena
1600
Pekka Lyyski

Questions and formulas:
Question: Find the number of shops in each location.
Formula: SUMMARIZE(C1,SUMX(A1))
Formula2: SUMMARIZE(C2:C10,SUMX(A2:A10))
Level: easy
Question: How many shops are there in each location?
Formula: SUMMARIZE(C1,SUMX(A1))
Formula2: SUMMARIZE(C2:C10,SUMX(A2:A10))
Level: easy
Question: What are the manager name and district of the shop that sells the largest number of products?
Formula: LET(a,SORTBY(CHOOSE({1,2},F1,D1),E1,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Formula2: LET(a,SORTBY(CHOOSE({1,2},F2:F10,D2:D10),E2:E10,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Level: hard
Question: Return the name, location and district of all shops in descending order of number of products.
Formula: SORTBY(CHOOSE({1,2,3},B1,C1,D1),E1,-1)
Formula2: SORTBY(CHOOSE({1,2,3},B2:B10,C2:C10,D2:D10),E2:E10,-1)
Level: easy
Question: Sort all the shops by number products in descending order, and return the name, location and district of each shop.
Formula: SORTBY(CHOOSE({1,2,3},B1,C1,D1),E1,-1)
Formula2: SORTBY(CHOOSE({1,2,3},B2:B10,C2:C10,D2:D10),E2:E10,-1)
Level: easy
Question: How many different store locations are there?
Formula: ROWS(UNIQUE(C1))
Formula2: ROWS(UNIQUE(C2:C10))
Level: easy
Question: Count the number of distinct store locations.
Formula: ROWS(UNIQUE(C1))
Formula2: ROWS(UNIQUE(C2:C10))
Level: easy
Question: the number of different locations.
Formula: ROWS(UNIQUE(C1))
Formula2: ROWS(UNIQUE(C2:C10))
Level: easy
Question: How many locations are there?
Formula: ROWS(UNIQUE(C1))
Formula2: ROWS(UNIQUE(C2:C10))
Level: easy
Question: How many shops are there across different locations?
Formula: SUMMARIZE(C1,DCOUNTX(A1))
Formula2: SUMMARIZE(C2:C10,DCOUNTX(A2:A10))
Level: easy
Question: the number of shops in each location
Formula: SUMMARIZE(C1,SUMX(A1))
Formula2: SUMMARIZE(C2:C10,SUMX(A2:A10))
Level: easy
Question: the manager name and district of the shop selling the largest number of products
Formula: LET(a,HSTACK(F1,D1,A1),b,A1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(A1,SUMX(E1)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(F2:F10,D2:D10,A2:A10),b,A2:A10,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(A2:A10,SUMX(E2:E10)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: How many shops in different locations?
Formula: SUMMARIZE(C1,DCOUNTX(A1))
Formula2: SUMMARIZE(C2:C10,DCOUNTX(A2:A10))
Level: easy
Question: How many locations?
Formula: ROWS(UNIQUE(C1))
Formula2: ROWS(UNIQUE(C2:C10))
Level: easy