Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
1. I'd like to display rankings (1,2,3,4, etc) across the x-axis of a line chart, with the volume (e.g. Sales) on the y-axis.
2. I'd like to retain the sort of dynamic ranking allowed by RANKX. E.g. slice by customer, location etc and still get 1,2,3,4 etc. Using a claculated column does not allow for this.
3. I'd like it to perform reasonably well across a large amount of data. My specific goal is ranking hourly volume on a yearly basis (ranks 1 to 8,760) across 15 years.
Below is the output I want, using a calculated column, but I would like to be able to slice it by other attributes and have the rankings update.
I have attempted this using a disconnected table and it appears to work with small sets of data, but will not work efficiently with 15x8,760 data points. The concept here was that I needed a column to get a value on the axis and I neded the disconnected tbale to make it dynamic. Hoping there is a better option than this.
CALCULATE (
[Sales Per Hour],
FILTER (
ALL ( 'Hour of Year Summary'[Day & Hour] ),
[Rank by Hour of Year] = [MaxRank]
)
Where:
[Sales per hour] - just a SUM
'Hour of Year Summary'[Day & Hour] - is a column of every hour in a year e.g. 1 Jan 1am, 1 Jan 2am
Rank by Hour of Year is =RANKX ( ALL('Hour of Year Summary'[Day & Hour]), [Sales],,,Dense)
Max Rank is =MaxRank = MAX(Ranking[Rank]) on a table that just lists numbers 1 to 8,760. This table has no relationship to anything else. Then I drag the column Ranking[Rank] from the disconnected table onto the axis.
Hi @mherring,
Based on my test, it is not available to display dynamic ranking values on X-axis. Since the ranking value we added to X-axis must be a calculated column rather than measure, however, calculated column is initialized once created. It won't be re-calculated when we change the selection of slicer.
You said you could achieve this using a disconnected table with small sets of data, but I still could not work it out based on the formulas you provided. Could you please share the sample data and more deatils about the measures in your scenario? I need to know the table structure.
Regards,
Yuliana Gu
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 19 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 37 | |
| 31 | |
| 27 |