cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
giramswa
Helper II
Helper II

Is it possible to change font color for only a part of the string in Matrix value cell of 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:
giramswa_0-1657707835305.png

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:

 
giramswa_2-1657707901149.png

 

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @giramswa 

 

Not yet. This is because the font format is valid for the entire measure.

vzhangti_0-1658131228005.png

The same color format applied to the whole would look like this.

vzhangti_1-1658131262939.png

 

Unfortunately, power BI is now unable to achieve what you need . You can submit an idea for it at https://ideas.powerbi.com/forums and wait for users with the same needs as you to vote for you to help make it happen as soon as possible.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @giramswa 

 

Not yet. This is because the font format is valid for the entire measure.

vzhangti_0-1658131228005.png

The same color format applied to the whole would look like this.

vzhangti_1-1658131262939.png

 

Unfortunately, power BI is now unable to achieve what you need . You can submit an idea for it at https://ideas.powerbi.com/forums and wait for users with the same needs as you to vote for you to help make it happen as soon as possible.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@giramswa , You can do that only when you write it in the text box (Enable Q&A) and then try.

 

In title, card, etc you can not



Learn Power BI - Full Course with Dec-2022, with new DAX functions like Window, Index, Offset !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Formatted Profit and Loss Statement with empty lines

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.

Top Solution Authors
Top Kudoed Authors