Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
So right now, i have a bar chart, a dropdown for top N, field parameters for the aggregated value and legend (seen in the first image).
Without adding legends, the top N works fine. But once I add a legend into the Legends field of the bar chart, the top N breaks. In this example, I selected top 5 bars. After adding the legend, it shows more than 5 bars.
I created 3 parameters:
- value_filter: contains the aggregation values (ie agg1, agg2)
- legend_filter: contains the aggregation values (ie legend1, legend2)
- top: a series from 1 to 10
I created 2 measures,
- "rank": sort the bars by the selected aggregated value.
- "topN": show the top N values
Below are the DAX codes for my measures
Solved! Go to Solution.
You can consider using a purely graphical solution. The filter pane already has a TOPN filter premade for you.
You can consider using a purely graphical solution. The filter pane already has a TOPN filter premade for you.
but if i use the filter pane and set top N by agg1,the top N wouldn't change when I use the parameter filter to change to agg2
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
15 | |
15 | |
13 | |
11 | |
10 |
User | Count |
---|---|
11 | |
10 | |
6 | |
6 | |
6 |