Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
26 | |
21 | |
16 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |