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.
Hello,
I am using two fields parameter with some categories, markets etc, because i want to give user to change between dimensions using slicers to investigate different values. One of them is used on X-axis, second is used in legend. I have a problem with measure top10, because its working but only when i dont have added field legend.
Measure for Top10:
Hi @Jakub_Poweska11 ,
Could you please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples here? It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Thanks for your understanding. Your time and cooperation are much valued by us. We are looking forward to hearing from you to assist further.
Best regards,
Lucy Chen
@Jakub_Poweska11 , Try using
DAX
RANK10Values =
SWITCH(
TRUE(),
SELECTEDVALUE('Dim Inc - X axis for Top Values'[Dim Inc - X axis for Top Values Fields]) = "'Incidents'[Configuration Item]",
RANKX(
ALLSELECTED('Incidents'[Configuration Item], 'Incidents'[LegendField]),
[Top 5 Categories inside Created Tickets],
,
DESC
)
)
Proud to be a Super User! |
|
Hey i am adding to legend field from second field parameter:
'Dim Incidents'[Dim Incidents Fields]
i dont have this field in my table 'Incidents'[LegendField]. I change fields on chart using slicers
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |