Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213916

RANKX- Rank By User

$
0
0

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_valueExpected Annual RevenueOpportunity NameOwner Opportunity Rank
aaaa-1 $                                              100.00Opp12
aaaa-1 $                                              200.00Opp21
aaaa-2 $                                              400.00Opp32
aaaa-2 $                                              500.00Opp41

 

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!


Viewing all articles
Browse latest Browse all 213916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>