cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

Need Help: How to use rank function, how the result show 1... Thanks

Dear all,

 

I used different measures to create one scliers. When I select each measure, then filter to single person. I want to show the rank of that person. I do not know why all the rank show 1 do matter which measure/person I filtered to.  Below is my dax function for rank:

SWICH_RANKING = sumx(ADDCOLUMNS(d_users,"rank_column",RANKX(d_users,[Measure Value_Actual Number])),[rank_column])
 
* [Measure Value_Actual Number] is the slicer I created for different measures, Below is the dax function: 
Measure Value_Actual Number = SWITCH(
                            MIN('Measure Filter'[Number]) ,
                            --------------------------------------
                            1,[Count_Sessions_Scheduled],
                            2,[Count_Held_Sessions],
                            3,[Count_A1_Assessment_Held],
                            4,[Count_Assigned_Cases],
                            5,[Count_Completed_Cases],
                            6,[Count_Sessions_Cancel/Missing]
                            )
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Need Help: How to use rank function, how the result show 1... Thanks

@xiumi_hou ,

 

You may add ALLSELECTED.

RANKX ( ALLSELECTED ( d_users ),
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Need Help: How to use rank function, how the result show 1... Thanks

@xiumi_hou ,

 

You may add ALLSELECTED.

RANKX ( ALLSELECTED ( d_users ),
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Top Solution Authors