Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I have used the SUMMARIZE DAX in a calculated column and the result is somthing like this (within the SUMMARIZE table):
Branch | Revenue |
2 | 33000 |
1 | 22500 |
3 | 12000 |
I want to retrieve the branch with the highest Revenue.
E.g. I want the calculated column to say 2 since it has the max revenue.
My DAX looks like this currently:
Solved! Go to Solution.
@danialsj , Assuming Revenue is a measure like Sum(table[Revenue])
Top 1 Branch Revenue Rank = CALCULATE([Revenue],TOPN(1,all(Table[Branch]),[Revenue],DESC),VALUES(Table[Branch]))
RETURN
MAXX(TOPN(1,SUMTABLE,[Revenue]),[Branch])
@danialsj , Assuming Revenue is a measure like Sum(table[Revenue])
Top 1 Branch Revenue Rank = CALCULATE([Revenue],TOPN(1,all(Table[Branch]),[Revenue],DESC),VALUES(Table[Branch]))
Thanks! I changed some things around the DAX you sent and it has worked.
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
14 | |
10 | |
7 |