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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
tnad
Regular Visitor

Table visual color font if contains text

Hi,

 

I'm new to power bi. For the table visual, any step-by-step info on how I can color cell font if it contains the text "Note" for example? Thanks.

1 ACCEPTED SOLUTION
AllisonKennedy
Super User
Super User

See this link: https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting#:~:tex....

So basically, you need to create a Measure or Column that has a color name or numerical value that you can use to format the font color.

Try using
FormatColumn= IF(CONTAINSSTRING(Table[Column], "Note"), 1, 0)

Then use the link I provided above to apply conditional formatting for the FormatColumn when value >0.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

2 REPLIES 2
AllisonKennedy
Super User
Super User

See this link: https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting#:~:tex....

So basically, you need to create a Measure or Column that has a color name or numerical value that you can use to format the font color.

Try using
FormatColumn= IF(CONTAINSSTRING(Table[Column], "Note"), 1, 0)

Then use the link I provided above to apply conditional formatting for the FormatColumn when value >0.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.