Forum Discussion
Dynamically control legend on a chart
How many categories fall in a given month? I'm still unclear why it's not working. Are you able to share a sample file via OneDrive link please?
Has this post solved your problem? Please mark it as a solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos.
I work as a trainer and consultant for Microsoft 365, specialising in Power BI and Power Query.
I was talking about the legend at the bottom of the screen, which shows all of them even when I use my Year/month filter, I want it to show only the ones that fall within that range.
- AllisonKennedy6 years agoCommunity Champion
So for example if you narrow down to 2021 October, what does it look like?
- Anonymous6 years agoNot applicable
The legend at the bottom still displays all the items .
- AllisonKennedy6 years agoCommunity Champion
Sorry Anonymous but we'll need a lot more information to help you out in this case, as this is not standard behaviour.
If the total graph has been filtered, the legend should filter also as per my screenshot here. You can see the chart on top with no filter, and the chart below with filter. Legend has automatically updated.