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
Anonymous
Not applicable

Dynamic title on card visual card

Hi,

I am trying to make the title of the card visual dynamic based of the slicer selectoin. In the property section of the card visual under Title I select fx, but it does not allow me to select the Title measure I have created under Based on field as in below screenshot

does anyone know why?

I did similar steps in this article:

https://pbivisuals.com/2021/04/04/power-bi-dynamic-title-based-on-slicer/

 

2021-09-15_8-24-04.png

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Check if the data type is text on not. Try a measure with text data type and check

 

You can add

& ""

 

to convert measure to text

Anonymous
Not applicable

@amitchandak , it is a measure not a field.

the meausre is:

 

Title Insurance =
SWITCH(TRUE(),
SELECTEDVALUE(Location[Country Code]) ="AU","AAA",
SELECTEDVALUE(Location[Country Code]) ="NZ", "BBBB",
"ABB")

I tried what you said and didn't reproduce your issue.

Vlianlmsft_0-1631863353157.pngVlianlmsft_1-1631863385812.png

 

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.