Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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.
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.
@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.
User | Count |
---|---|
94 | |
83 | |
78 | |
75 | |
66 |
User | Count |
---|---|
115 | |
105 | |
93 | |
65 | |
62 |