Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Dear Community,
I tried to get the ranking displayed in column "Rank" by using Rankx - without success.
The idea is to rank the amounts in column "€" for each month. When there are duplicate values (e. g. 2.950 € in March) the first apperance should be 3 for instance and all following rankings for the the values should get the next higher number - in this case 4.
Is there any solution for this? Thanks in advance!
Solved! Go to Solution.
We can take help from an Index column to manage duplicates
First add an index columm from Query Editor. Then this DAX calculated column
Rank Column = RANKX ( FILTER ( Table1, Table1[date].[Month] = EARLIER ( Table1[date].[Month] ) && Table1[date].[Year] = EARLIER ( Table1[date].[Year] ) ), [Euro] - [Index] / POWER ( 10, 9 ), , DESC, DENSE )
We can take help from an Index column to manage duplicates
First add an index columm from Query Editor. Then this DAX calculated column
Rank Column = RANKX ( FILTER ( Table1, Table1[date].[Month] = EARLIER ( Table1[date].[Month] ) && Table1[date].[Year] = EARLIER ( Table1[date].[Year] ) ), [Euro] - [Index] / POWER ( 10, 9 ), , DESC, DENSE )
Hello,
How to avoid duplication on a measure?
With your technique, "it is impossible to determine a unique value for the INDEX column".
Thanks
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
60 | |
58 | |
54 | |
36 | |
33 |
User | Count |
---|---|
79 | |
66 | |
45 | |
44 | |
42 |