Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Dynamic label

Hello; 

 

can someone help me please?:

i'm working on this diagram and what i want to make a dianymic legend, like when my slicer is on 2018 as current year the year - 1 should display 2017 and if i select 2019 my previous year should display 2018 
can someone has an idea of how to implement it?
i'm using SSAS :) =D

2 Replies

  • dax's avatar
    dax
    Community Support

    Hi rayloubayi,

    As I know, there is no method to change legend label dynamically. So one workaround is that you could try to use bookmark to achieve this goal. You could refrt to my sample(page 2)  and Bookmarks and Buttons: Making Power BI Charts Even More Interactive for details.

    Best Regards,
    Zoe Zhi

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • Anonymous's avatar
      Anonymous
      Not applicable
      Hello thank you for your help I'm going to use ur idea