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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.