Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Aktuell muss ich für jedes einzelne Measures eine eigene Rankx Measure schreiben, um mir die Top10 Dimensionen anzeigen zu lassen. Gibt es auch die Möglichkeit diese Formel so anzupassen, dass der Rank immer auf das aktuelle Value was im Visual angezeigt wird zu berechnet?
Als bessere Erläuterung hier ein Beispiel:
| Dimension | Measure: Price | Rank |
Apfel | 10€ | 3 |
| Orange | 25€ | 2 |
| Kirschen | 50€ | 1 |
| Birne | 5€ | 4 |
Hier habe ich die Rankx Formel auf Price festgelegt und wenn ich jetzt die Menge Anzeigen würde müsste ich ja eine neue Measure berechnung erstellen
| Dimension | Measure: Menge | Rank |
Apfel | 100 | 1 |
| Orange | 36 | 2 |
| Kirschen | 17 | 3 |
| Birne | 8 | 4 |
Solved! Go to Solution.
Hi @Anonymous
You can create the measure [Currently Selected Measure?] such that it reads from a slicer the name of the measure to be applied and invokes one of the measures you already have (Preice, Menge, etc.) Create a one-column table with the names of the measures and set it as a slicer
SlicerTable[Metric]
Measure Preis
Measure Menge
Measure 3
Measure 4
The user can then select the measure to apply by picking its name in the slicer. The main measure code is then something like:
Currently Selected Measure? =
SWITCH (
SELECTEDVALUE ( SlicerTable[Metric] ),
"Measure Preis", [Measure Preis],
"Measure Menge", [Measure Menge],
"Measure 3", [Measure 3],
"Measure 4", [Measure 4] //etc Include more measures after this if required
)
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hey @AIB,
it worked with your Solution. I put the SlicerTable as a Filter and selected there the KPI i wanted to show. Could also do conditinal formating. Thanks a lot❤ 🙂
@Anonymous
You mean you want to read that in your code? If so, not that I know. What are you trying to do? Perhaps there's a different approach we can use
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
@Anonymous
Perhaps a workaround can be found with calculation groups.
However, the name of the measure used inthe chart will already show in the title of the chart
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi @Anonymous
You can create the measure [Currently Selected Measure?] such that it reads from a slicer the name of the measure to be applied and invokes one of the measures you already have (Preice, Menge, etc.) Create a one-column table with the names of the measures and set it as a slicer
SlicerTable[Metric]
Measure Preis
Measure Menge
Measure 3
Measure 4
The user can then select the measure to apply by picking its name in the slicer. The main measure code is then something like:
Currently Selected Measure? =
SWITCH (
SELECTEDVALUE ( SlicerTable[Metric] ),
"Measure Preis", [Measure Preis],
"Measure Menge", [Measure Menge],
"Measure 3", [Measure 3],
"Measure 4", [Measure 4] //etc Include more measures after this if required
)
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 13 | |
| 10 |