cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
heytherejem
Post Prodigy
Post Prodigy

Declare max rank value in rankx

I have a measure ranking 

Rank: Registered Member Max = max(RANKX(ALLSELECTED('ELIGIBLE_POLICY'[GROUP POLICY NAME]),CALCULATE(SUM('ELIGIBLE_POLICY_HH'[REGISTERED_MEMBER_COUNT]))))
but, this is fairly meaningless to people without knowing what the ranking range is. So I guess I want a measure which calculates the MAX of the rank? Or somthing? 
 
Help please!
1 ACCEPTED SOLUTION
amitchandak
Super User IV
Super User IV

@heytherejem , Not sure I got it exactly. but try like

 

maxX(values('ELIGIBLE_POLICY'[GROUP POLICY NAME]), RANKX(ALLSELECTED('ELIGIBLE_POLICY'[GROUP POLICY NAME]),CALCULATE(SUM('ELIGIBLE_POLICY_HH'[REGISTERED_MEMBER_COUNT]))))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
amitchandak
Super User IV
Super User IV

@heytherejem , Not sure I got it exactly. but try like

 

maxX(values('ELIGIBLE_POLICY'[GROUP POLICY NAME]), RANKX(ALLSELECTED('ELIGIBLE_POLICY'[GROUP POLICY NAME]),CALCULATE(SUM('ELIGIBLE_POLICY_HH'[REGISTERED_MEMBER_COUNT]))))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Thanks @amitchandak that has worked, I had tried a MAX but hadn't done MAXX (I still don't really understand the 'x' element of DAX) so I appreciate your input 🙂 

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors