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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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