Hi Everyone-
I am new to DAX and I have read a handful of blogs on RANKX, but I still can't figure out what I am doing wrong on the below scenario:
I want to create a column that ranks user's opportunities by the revenue (Owner Opportunity Rank). Here are the desired results:
_ownerid_value | Expected Annual Revenue | Opportunity Name | Owner Opportunity Rank |
aaaa-1 | $ 100.00 | Opp1 | 2 |
aaaa-1 | $ 200.00 | Opp2 | 1 |
aaaa-2 | $ 400.00 | Opp3 | 2 |
aaaa-2 | $ 500.00 | Opp4 | 1 |
Here is my code:
I created a measurement:
TotalRevenue = SUM(opportunities[Expected Annual Revenue])
I created the desired column
Owner Opportunity Rank = RANKX (ALL(opportunities[_ownerid_value]), [TotalRevenue])
The issue is my "Owner Opportunity Rank" column returns all 1's.
Any help is appreciated!