Table:
0
A
B
C
D
E
1
publication id
book id
publisher
publication date
price
2
1
1
Pearson
8-Aug
15000000
3
2
3
Thomson Reuters
8-Mar
6000000
4
3
4
Wiley
6-Jun
4100000
5
4
5
Wiley
5-Oct
3000000
6
5
7
Springer Nature
8-Aug
3000000
7
6
9
Pearson
7-Mar
2000000
8
7
10
Bertelsmann
7-Apr
2000000

Questions and formulas:
Question: What are the dates of publications in descending order of price?
Formula: SORTBY(D1,E1,-1)
Formula2: SORTBY(D2:D8,E2:E8,-1)
Level: easy
Question: What are the distinct publishers of publications with price higher than 5000000?
Formula: UNIQUE(FILTER(C1,E1>5000000))
Formula2: UNIQUE(FILTER(C2:C8,E2:E8>5000000))
Level: easy
Question: List the publisher of the publication with the highest price.
Formula: LET(a,SORTBY(C1,E1,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Formula2: LET(a,SORTBY(C2:C8,E2:E8,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Level: hard
Question: List the publication dates of publications with 3 lowest prices.
Formula: LET(a,SORTBY(D1,E1,1),FILTER(a,SEQUENCE(ROWS(a))<=3))
Formula2: LET(a,SORTBY(D2:D8,E2:E8,1),FILTER(a,SEQUENCE(ROWS(a))<=3))
Level: hard
Question: Show publishers that have more than one publication.
Formula: LET(query1,SUMMARIZE(C1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>1))
Formula2: LET(query1,SUMMARIZE(C2:C8,SUMX(A2:A8)),FILTER(query1,CHOOSECOLS(query1,3)>1))
Level: hard
Question: Show different publishers together with the number of publications they have.
Formula: SUMMARIZE(C1,SUMX(A1))
Formula2: SUMMARIZE(C2:C8,SUMX(A2:A8))
Level: easy
Question: What is the number of distinct publication dates?
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D8))
Level: easy
Question: How many distinct publication dates are there in our record?
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D8))
Level: easy
Question: Number of publication dates
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D8))
Level: easy
Question: the number of publication dates
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D8))
Level: easy
Question: Publishers and ids for publications which cost more than 5 million.
Formula: LET(a,HSTACK(C1,A1),b,A1,c,CHOOSECOLS(LET(query1,SUMMARIZE(A1,SUMX(E1)),FILTER(query1,CHOOSECOLS(query1,2)>5000000)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(C2:C8,A2:A8),b,A2:A8,c,CHOOSECOLS(LET(query1,SUMMARIZE(A2:A8,SUMX(E2:E8)),FILTER(query1,CHOOSECOLS(query1,2)>5000000)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: Publisher and id for the most expensive publication.
Formula: TAKE(SORT(SUMMARIZE(HSTACK(C1,A1),SUMX(E1)), 3, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(HSTACK(C2:C8,A2:A8),SUMX(E2:E8)), 3, -1), 1)
Level: hard
Question: When were the 3 cheapest publications published?
Formula: LET(a,HSTACK(D1,A1),b,A1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(A1,SUMX(E1)), 2, 1), 3),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(D2:D8,A2:A8),b,A2:A8,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(A2:A8,SUMX(E2:E8)), 2, 1), 3),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: Publishers which released more than 1 publications.
Formula: LET(query1,SUMMARIZE(C1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>1))
Formula2: LET(query1,SUMMARIZE(C2:C8,SUMX(A2:A8)),FILTER(query1,CHOOSECOLS(query1,3)>1))
Level: hard
Question: How many publications are brought here by their publishers?
Formula: SUMMARIZE(C1,SUMX(A1))
Formula2: SUMMARIZE(C2:C8,SUMX(A2:A8))
Level: easy
Question: How many publications did each publisher release?
Formula: SUMMARIZE(C1,SUMX(A1))
Formula2: SUMMARIZE(C2:C8,SUMX(A2:A8))
Level: easy
Question: How many different publication dates?
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D8))
Level: easy