Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Sagejah9
Helper III
Helper III

Dynamic year legend based on a measure.

Hi , 

hope there is a solution or work around to this:

I have 3 measures that calculate the sales for last 3 years

 this is dependent on the year selected. 

I want to show these 3 measures in a chart but in the legend state the years and not the measure name. Is this possible? 

for example. Year 2022 is selected 

 

I would like the legend to show for the 3 metrics respectively : FY 22, FY21 and FY20

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @Sagejah9 

it might not be possible to dynamically change the measure name. How about keeping the measure name same, but changing the measure value dynamically based on the year.

For eg:

Title = Year(Now()) & " Sales"

If you are using this for a chart title then it would be "2022 Sales" in the year 2022.

 

Best Regards,

Aniya Zhang

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

View solution in original post

1 REPLY 1
v-yueyunzh-msft
Community Support
Community Support

Hi , @Sagejah9 

it might not be possible to dynamically change the measure name. How about keeping the measure name same, but changing the measure value dynamically based on the year.

For eg:

Title = Year(Now()) & " Sales"

If you are using this for a chart title then it would be "2022 Sales" in the year 2022.

 

Best Regards,

Aniya Zhang

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.