Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to change font color for only a part of the string in card power bi?

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:

enter image description here

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:

![enter image description here

Maybe there are special visuals for that that I am not aware of?

Thank you

like image 358
Serdia Avatar asked Nov 26 '25 04:11

Serdia


1 Answers

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)

enter image description here

like image 140
Giovanni Luisotto Avatar answered Nov 28 '25 02:11

Giovanni Luisotto



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!