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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
matalb
New Member

How to get a dynamic label using a language filter?

I have this table with graphics titles, cards and filters for each language (Spanish and Portuguese).

 

matalb_0-1635536822041.png

 

I'm new to DAX how can I create a measure that dynamically changes the title of this chart as I filter the page by "ES" or "PT" (Spanish or Portuguese, respectively?

 

matalb_1-1635536939429.png

 

 

 

1 ACCEPTED SOLUTION
Watsky
Solution Sage
Solution Sage

Hey @matalb,

You can create a Calculated Column using the SWITCH function:

Dynamic Title = 
SWITCH (
    'Graphics Table'[variable],
    "1st graph title", 'Graphics Table'[text]
)

Then click on your visual, go to Title text, and click the function key.

Watsky_0-1635782320402.png

Find the new calculated column and click it. 

Watsky_1-1635782375075.png

Watsky_2-1635782417206.png

Watsky_3-1635782441765.png

Hope this helps.


Did my answer(s) help you? Give it a kudos by clicking the Thumbs Up!
Did my post answer your question(s)? Mark my post as a solution. This will help others find the solution.

Proud to be a Super User!

View solution in original post

2 REPLIES 2
Watsky
Solution Sage
Solution Sage

Hey @matalb,

You can create a Calculated Column using the SWITCH function:

Dynamic Title = 
SWITCH (
    'Graphics Table'[variable],
    "1st graph title", 'Graphics Table'[text]
)

Then click on your visual, go to Title text, and click the function key.

Watsky_0-1635782320402.png

Find the new calculated column and click it. 

Watsky_1-1635782375075.png

Watsky_2-1635782417206.png

Watsky_3-1635782441765.png

Hope this helps.


Did my answer(s) help you? Give it a kudos by clicking the Thumbs Up!
Did my post answer your question(s)? Mark my post as a solution. This will help others find the solution.

Proud to be a Super User!

matalb
New Member

any idea? help!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.