March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I need realize a RANKX for all years (2020-2022) and a RANKX only for a selected year. I have two tables: fatVendas and dCalendario.
I create a measure Total das Vendas = SUM(fatVendas[Total da Venda]).
Create too a calculated table with:
And sounds good! But, I need calculate a rank in the year, when a user select a one year, show a rank in a year. How to realize this?
Solved! Go to Solution.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
Share the download link of the PBI file and show the expected result.
Hi,
You may download my PBI file from here.
Hope this helps.
Ashish, thanks!!!
What the problem in using a Month/Year or Month/Year and Year columns in table?
You are welcome. Should not be. Since year is already selected in the slicer, showing it in the Table is superfluous.
You may please try the following:
Rank = RANKX(ALLSELECTED([Ano]), [Total das Vendas],,DESC,DENSE)
If you are using a Matrix visual, this vdeo can help:
I try, but not working, all values are 1.
Thank you, but this video does not answer my problem. What happens is that I need the general ranking, where each month was over the three years, and a second ranking to know the position of the month within the year selected by the user.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
89 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |