Table:
0
A
B
C
D
E
F
1
ID
Name
1st choice workshop
Priority
Sales
Spending
2
1
Zhang San
LinkedIn Alighment
1
100
150
3
2
Li Si
Fast Design
2
120
150
4
3
Wang Wu
Fast Design
3
142
154
5
4
Yang Liu
LinkedIn Alighment
4
123
153

Questions and formulas:
Question: sales of name with the highest priority
Formula: TAKE(SORT(SUMMARIZE(B1,SUMX(E1),MINX(D1)), 3, 1), 1)
Formula2: TAKE(SORT(SUMMARIZE(B2:B5,SUMX(E2:E5),MINX(D2:D5)), 3, 1), 1)
Level: hard
Question: sales of name with the lowest priority
Formula: TAKE(SORT(SUMMARIZE(B1,SUMX(E1),MAXX(D1)), 3, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(B2:B5,SUMX(E2:E5),MAXX(D2:D5)), 3, -1), 1)
Level: hard
Question: total sales of name with the highest priority
Formula: TAKE(SORT(SUMMARIZE(B1,SUMX(E1),MINX(D1)), 3, 1), 1)
Formula2: TAKE(SORT(SUMMARIZE(B2:B5,SUMX(E2:E5),MINX(D2:D5)), 3, 1), 1)
Level: hard
Question: total sales of name with the lowest priority
Formula: TAKE(SORT(SUMMARIZE(B1,SUMX(E1),MAXX(D1)), 3, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(B2:B5,SUMX(E2:E5),MAXX(D2:D5)), 3, -1), 1)
Level: hard