The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I currently have a stacked bar chart visual that I'm trying to apply Top N to. This in itself is pretty simple, as all I would have to do is create the what-IF parameter and use RANKX() in the displayed measure. However, I have also applied another technique, detailed in this video by Guy in a Cube: https://www.youtube.com/watch?v=jcxJzh1TYWg, to create a dynamic Legend. So, I can choose to show my Legend by Business Sector, Business Division, and Business Segment.
How do I create a Top N with a dynamic maximum amount? I have 10 Business Sectors, 25 Business Divisions, and 40 Business Segments. When I create the what-If Top N parameter, I only have the option to set a fixed minimum and maximum. I would like the Top N range to be 0-10 if the user selects Business Sector as the legend, 0-25 if they select Business Division, and 0-40 if they select Business Segement. Is this possible?
User | Count |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |