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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors