Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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 |
---|---|
20 | |
14 | |
11 | |
8 | |
6 |
User | Count |
---|---|
23 | |
23 | |
20 | |
15 | |
10 |