Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I created a measure for a dynamic Index for a ranking:
I would like to have slicer for this, to select the top N with it.
Can someone help me? I cant put this measure in a slicer 😕
Thank you in advance
Solved! Go to Solution.
Here are more details
1. Make a What If Parameter (you've already done that for your Rank slicer
2. Make a measure like this one (using your tables, columns, measures
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Since you can't use a measure in a slicer, would you get the same effect by having a What If parameter/slicer and using a dynamic TopN approach instead (using the value selected on the slicer as the N in your TopN()? That way, only the countries with a rank below the selected value would show up in your visual.
This article show one good way to do it - https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/3...
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Would it work to use a measure filter on your visual(s) and/or page? See this article for more details - https://www.sqlbi.com/articles/applying-a-measure-filter-in-power-bi/
In the measure you use as the filter, it could dynamically reference a slicer or whatif parameter on your page.
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@mahoneypat I dont understand that 😕
I want to have slicer like this one:
Maybe I could create a column with an dynamic Index and not a mesaure, but I dont know how. If try to use the some code for custom column it doesnt work. It shows, that "minx" is not recognised.
Here are more details
1. Make a What If Parameter (you've already done that for your Rank slicer
2. Make a measure like this one (using your tables, columns, measures
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi @mahoneypat,
I tried this already. The problem with this aproach is, that the table doesnt interact with my other visuals from other tables. When I create a parameter, its the same like a new table and I dont have any relationship to the other one. I already tried this. =/
For me personaly it would be the best way to create a slicer with my created measure.
Is that possible?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
100 | |
88 | |
69 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |