cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors