Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
jerryr125
Helper III
Helper III

Custom Column - add font color

Hi - 

In a table I created a Custom Column (TOPERCENT).

The Custom Column Formula is as follows:

 

[StoreName] &
(if [OverDuePercent]> 0 then
" (Overdue: " & Number.ToText([OverDuePercent]) & "%)" else "")

 

Which works, But is there a way you can set the " (Overdue: " & Number.ToText([OverDuePercent]) & "%)" to a specific font  and/or color so that it appears in the visualization (such as #ff0000")  ?

 

Thanks - Jerry

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @jerryr125 

 

You can create a measure that checks the curent row value of your custom column and return a specific font color.  I'm not sure what the exact condition is, may be if it contains the word overdue

conditional formatting color =
IF ( CONTAINSSTRING ( 'table'[custom column], "overdue" ), "#ff0000" )

Now add your custom column to a table viz and then conditionally format it. Select field value from the options use the measure from above.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

1 REPLY 1
danextian
Super User
Super User

Hi @jerryr125 

 

You can create a measure that checks the curent row value of your custom column and return a specific font color.  I'm not sure what the exact condition is, may be if it contains the word overdue

conditional formatting color =
IF ( CONTAINSSTRING ( 'table'[custom column], "overdue" ), "#ff0000" )

Now add your custom column to a table viz and then conditionally format it. Select field value from the options use the measure from above.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors