Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
portilho
New Member

RANKXX PROBLEM

Hi, please someone help me to use the function Rankx selecting some periods in my calculation view.

I have data since 2013 in my calculation view, but I want to rank by sales just the last twelve months that I select.

 

I'm using this fórmula: "Ranking = RANKX(ALLSELECTED(CLIENTE[ Name]);SUM([Sales]);;DESC)"

 

The problem is that when I select the monts the ranks don't work as I expect, because star to show the number desorganised, and I wnat to see the top 5 in the rank in the selected period by sales.

 

Thanks.

 
 
2 REPLIES 2
v-diye-msft
Community Support
Community Support

Hi @portilho 

 

You might consider creating pbix file that will contain some sample data, upload the pbix to onedrive or dropbox and share the link to the file. Please do not forget to describe the expected results based on this sample data.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
parry2k
Super User
Super User

@portilho there is in-depth article on rankx here. Hope this helps.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.