Table:
0
A
B
C
1
charge id
charge type
charge amount
2
1
Daily Accommodation
98
3
2
Drugs
322
4
3
Health Check
640

Questions and formulas:
Question: What is the charge amount of the most expensive charge type?
Formula: TAKE(SORT(SUMMARIZE(B1,SUMX(C1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(B2:B4,SUMX(C2:C4)), 2, -1), 1)
Level: hard
Question: most expensive charge type
Formula: TAKE(SORT(SUMMARIZE(B1,SUMX(C1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(B2:B4,SUMX(C2:C4)), 2, -1), 1)
Level: hard
Question: Type of the most expensive charge.
Formula: TAKE(SORT(SUMMARIZE(B1,SUMX(C1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(B2:B4,SUMX(C2:C4)), 2, -1), 1)
Level: hard