Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |