Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Dynamically control legend on a chart

Hi!

 

I have over 45 items on my legend on a clustered bar chart, and all of them show up when the chart if displayed. Wehn I use a Year/Month filter to filter down the rcords , is it possible to show the legends for only those items that appear on the bar, right now it shows up  all the lengends and that too not full information .

9 Replies

  • AllisonKennedy's avatar
    AllisonKennedy
    Community Champion

    I'm not sure what you mean, are you please able to provide more details and maybe photos? 

     

    The legend should dynamically update with the chart unless you have asked it not to. 

     

    Are you using a Year Filter or a Year Drilldown?

     

    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. 

    https://sites.google.com/site/allisonkennedycv

    • Anonymous's avatar
      Anonymous
      Not applicable

      I am using a clustered chart which displays number of items, by Year/month and category of item. The Category of items are around 45  categories and that is the legend. In the legend it shows which color code the item is , since there re more than 45 categories , it does not fit all in one screen , so what I want to do is , when I use my Year/month filter on the report not drill down, basically it should remove all the categories that does not fall in that month /year , so only the legends corresponding displays on the report.

       
      • AllisonKennedy's avatar
        AllisonKennedy
        Community Champion

        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. 

        https://sites.google.com/site/allisonkennedycv