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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
LD1
Helper III
Helper III

Dynamic title

Hi, 

 

I would like to create a dynamic title with several IF function. 

I tried with many formulas like below but they don't work 

 

LD1_0-1660655644791.png

 

or 

 

LD1_3-1660655877928.png

 

 

The aim is to integrate this formula just here but the data field is grey (i don't know why)

 

LD1_1-1660655746149.png

LD1_2-1660655818645.png

 

Thank you in advance, 

 

1 ACCEPTED SOLUTION
daXtreme
Solution Sage
Solution Sage

Hi there.

 

No idea why it's grayed out but I can give you a hint regarding writing formulas. Instead of nesting IF's, please use SWITCH. It's easier to read, easier to write and harder to make a mistake.

View solution in original post

2 REPLIES 2
LD1
Helper III
Helper III

Thank you ! 

All is worked ! 

(Formula + grayed out). 

Here is the solution for user :

 

SWITCH(SELECTEDVALUE(Temps[Année]),2023,"∆€ 2022",2022,"∆€ 2021",2021,"∆€ 2020",2019,"∆€ 2018","")

 

 

 

daXtreme
Solution Sage
Solution Sage

Hi there.

 

No idea why it's grayed out but I can give you a hint regarding writing formulas. Instead of nesting IF's, please use SWITCH. It's easier to read, easier to write and harder to make a mistake.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.