Table:
0
A
B
C
D
1
id
name
market share
browser
2
1
Internet Explorer
28.96
3
2
Firefox
18.11
4
3
Safari
8.54
5
4
Opera
1.2

Questions and formulas:
Question: How many main stream browsers whose market share is at least 5 exist?
Formula: ROWS(UNIQUE(LET(a,D1,b,D1,c,INDEX(LET(query1,SUMMARIZE(D1,SUMX(C1)),FILTER(query1,CHOOSECOLS(query1,2)>=5)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c)))))))
Formula2: ROWS(UNIQUE(LET(a,D2:D5,b,D2:D5,c,INDEX(LET(query1,SUMMARIZE(D2:D5,SUMX(C2:C5)),FILTER(query1,CHOOSECOLS(query1,2)>=5)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c)))))))
Level: hard
Question: List the name of browsers in descending order by market share.
Formula: SORT(SUMMARIZE(HSTACK(B1,D1),SUMX(C1)), 3, -1)
Formula2: SORT(SUMMARIZE(HSTACK(B2:B5,D2:D5),SUMX(C2:C5)), 3, -1)
Level: hard
Question: List the ids, names and market shares of all browsers.
Formula: SUMMARIZE(HSTACK(A1,B1,D1),SUMX(C1))
Formula2: SUMMARIZE(HSTACK(A2:A5,B2:B5,D2:D5),SUMX(C2:C5))
Level: medium
Question: What is the id and market share of the browser Safari?
Formula: LET(query1,FILTER(A1:D1,B1="safari"),SUMMARIZE(HSTACK(CHOOSECOLS(query1,1,4)),SUMX(CHOOSECOLS(query1,3))))
Formula2: LET(query1,FILTER(A2:D5,B2:B5="safari"),SUMMARIZE(HSTACK(CHOOSECOLS(query1,1,4)),SUMX(CHOOSECOLS(query1,3))))
Level: hard
Question: how many browsers have a market share of at least 5?
Formula: ROWS(UNIQUE(LET(a,D1,b,D1,c,INDEX(LET(query1,SUMMARIZE(D1,SUMX(C1)),FILTER(query1,CHOOSECOLS(query1,2)>=5)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c)))))))
Formula2: ROWS(UNIQUE(LET(a,D2:D5,b,D2:D5,c,INDEX(LET(query1,SUMMARIZE(D2:D5,SUMX(C2:C5)),FILTER(query1,CHOOSECOLS(query1,2)>=5)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c)))))))
Level: hard
Question: the number of browsers with at least 5 market share.
Formula: ROWS(UNIQUE(LET(a,D1,b,D1,c,INDEX(LET(query1,SUMMARIZE(D1,SUMX(C1)),FILTER(query1,CHOOSECOLS(query1,2)>=5)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c)))))))
Formula2: ROWS(UNIQUE(LET(a,D2:D5,b,D2:D5,c,INDEX(LET(query1,SUMMARIZE(D2:D5,SUMX(C2:C5)),FILTER(query1,CHOOSECOLS(query1,2)>=5)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c)))))))
Level: hard