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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Usha_pk
Helper II
Helper II

How to get the corresponding dynamic title based on the year selection

Hi team,
@Greg_Deckler @amitchandak @Ritaf1983 @johnt75 @PaulDBrown @sevenhills @Ahmedx 
I'm working on requirement where it has two years year1 and year2

Usha_pk_0-1701156859138.png

Now if I select year 2023, then the corresponding year2 will appear i.e., 2023,2024,2025,2026,2027.

Usha_pk_2-1701156939677.png

So my requriement is like, for example If I select 2023 in year1 slicer then my title should change dynamically based on year2. In short my dyamic title for the visual should be "Assumption years are 2023-2027"

Can anyone helpme out with this. Thanks a lot!!

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Usha_pk 
You can create a measure 
Title = "Assumption years are "  & min('year1'([year])) & "-" & max('year2'[year]))

and put it on the title with conditional formatting

Ritaf1983_0-1701157732725.png

If this post helps, then please consider Accepting it as the solution to help the other

members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @Usha_pk 
You can create a measure 
Title = "Assumption years are "  & min('year1'([year])) & "-" & max('year2'[year]))

and put it on the title with conditional formatting

Ritaf1983_0-1701157732725.png

If this post helps, then please consider Accepting it as the solution to help the other

members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

@Ritaf1983 Thank you, It helped to solve my issue.

@Usha_pk 
Glad to help 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.