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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

Top Solution Authors