Reputation: 4428
I have a dax expression where I am concatenating strings with other dax measures
Net WP =
"Net Written Premium "
& FORMAT([CY YTD],"$#,##,,.0M")
& " vs. " & FORMAT([PY YTD],"$#,##,,.0M")
& " " & MAX(dim_Date[Year]) -1
& " "& [Net Wr Premium YOY Title]
Result look like this:
Is any way I can change the font color for only the last part of the string? ([Net Wr Premium YOY Title])
so it should look like this:
Maybe there are special visuals for that that I am not aware of?
Thank you
Upvotes: 3
Views: 9092
Reputation: 3665
You can cheat your way around this by using two cards Put the conditional formatting on one card, turn off all the borders and labels, and set it to just the measure. Then put it right on top of the other card that has your desired text.
Upvotes: 1
Reputation: 1400
You can apply conditional formatting to almost any visual now, you can find it in a "hidded" menu, but what you ask is not possible, the whole string will be colored. Have a look at the custom visuals in the marketplace, maybe you will find something that helps you.
For the conditional formatting of the card visual: Formatting -> Data label -> Color (hover it, and 3 dots will appear on the right, there you will find the conditional formatting)
Upvotes: 1