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.
Solved! Go to Solution.
Hi @zenbabasha33
Source Data
Rank Function
Select any date from the slicer, the rank will adjust within itself
Hi @zenbabasha33
Source Data
Rank Function
Select any date from the slicer, the rank will adjust within itself
Thank you
ALLSELECTED function gives you all the rows in a table, ignoring the current context filter, which might be causing the unexpected ranking result when multiple dates are selected. You can use the DAX formula below to respect the current filter context for the date.
Rank =
RANKX(
ALLSELECTED('Royalty'[Date], 'Royalty'[Region]),
'Royalty'[Adjusted Gross Revenue],
,
DESC,
Skip
)
Another approach is to use ALL on the date column specifically, rather than the entire table, which ensures that other filters like Region are still respected.
Try this measure. If you want to rank across all selected dates without splitting by date, you can ignore the date filter in the ranking context.
Rank =
RANKX(
ALLSELECTED('Royalty'[Region]),
'Royalty'[Adjusted Gross Revenue],
,
DESC,
Skip
)
Thank you but I alreaddy Tried this one
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 |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |