The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I am trying to create a ranking measure in Power BI based on a specific variable while ensuring that the ranking remains consistent regardless of any slicers applied on the page. But the ranking changes when the slicer is applied. The ranking should remain the same irrespective of any slicers applied on the page (specifically, slicers for Category). I have tried ALL and ALLSELECTED but the rankings change when I applied the slicers. Here is the measure I used:
Hi @mbanchik ,
Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster? Thank you very much for your kind cooperation!
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @mbanchik ,
Thanks for the reply from @samratpbi , please allow me to provide another insight:
Instead of measure, you could try using a calculated column.
Develop measure values for dynamic calculations that change based on user actions such as filtering or slicing. This way, you can use the same measure values for different visual objects and data sections.
Unlike measure values, calculated columns are not dynamic; they are calculated only once when the table is first loaded or refreshed; this occurs during a query. As a result, calculated columns provide static values that don't change based on the filter context, making them more predictable and easier to understand in some cases.
Therefore, you can try to use calculated columns to avoid the result of an expression changing because of a change in the slicer.
More detailed information can be found at the link:
Understanding Measures vs Calculated Columns in Power BI (gorilla.bi)
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
If it is about only 1 slicer, then the easy way is, may use Edit Interaction option and remove the Interaction of that specific slicer on that visual where you used Ranking.
Select the slicer visual, Go to Format tab and Edit Interaction. Remove interaction on target visual.
If this helps to remove your problem, then please mark it as solution, Thanks!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
18 | |
18 | |
17 | |
15 | |
13 |
User | Count |
---|---|
36 | |
35 | |
19 | |
18 | |
18 |