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 have a matrix visual showing costs and turnover for different products for 2020 and 2021.
I also created measure to get the rank of a product in terms of costs and turnover.
I'm trying to find a way to display only those rows of products where costs in 2021 are within the top3 (without using the filter pane).
Can anybody give a hint how to do it?
Cheers
Simkay
Solved! Go to Solution.
@Jihwan_Kim I added an intermediate step to summarize the costs per product per year.
Now it works. Thanks for your help!
Here is the full solution:
Cheers, Simkay
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
All measures are in the attached pbix file.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Thanks @Jihwan_Kim, that's almost what I wanted. However when I apply it to my dataset it doesn't show the top3 consistently. I assume this is because in my dataset there can be multiple rows with the same product per year. I don't seem to be able to attach .pbix here, so here is a picture of my data:
How can I modify your code to make it work on this data as well?
Best Regards
Simkay
@Jihwan_Kim I added an intermediate step to summarize the costs per product per year.
Now it works. Thanks for your help!
Here is the full solution:
Cheers, Simkay
Hi @sim_kay7
You can create another table with DAX and use that or create measure for those items and filter them to just show the top 3, then add measure as a value.
Share you PBIX file or Sample of data to be able to work on it.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
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 |
---|---|
47 | |
26 | |
19 | |
15 | |
10 |
User | Count |
---|---|
57 | |
50 | |
44 | |
21 | |
19 |