Forum Discussion
Dynamically control legend on a chart
The legend at the bottom still displays all the items .
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.
- Anonymous6 years agoNot applicable
Thanks Allison. I agree it should should filter out the legends as well and it does in my case as well when I use the Category filter, it does filter the lengends as well at the bottom , but when I filter by Year/month, that is when it stays the same.I get the entire list showing up on the legend.
Thanks
- v-chuncz-msft6 years ago
Community Support
Anonymous
Right click Legend and deselect "Show items with no data". Besides, use measure below to deal with zero.
Measure 2 = IF ( [Measure] = 0, BLANK (), [Measure] )