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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
WelterM
Helper I
Helper I

Conditional Formatting based on a formula

I know it's not possible to apply conditional formatting to a column in a table, based on a formula, or the value of another column. But is it possible to this with R?

1 ACCEPTED SOLUTION
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@WelterM,

It is possible to apply conditional formatting with R, please review the following blogs. Also you can use  UNICHAR() function as a workaround which is described in this similar thread.

More Examples on Styling Cells, Rows, and Tables
Conditional Formatting of a Table in R

There is also a similar thread about using R for  your reference.
https://stackoverflow.com/questions/31323885/how-to-color-specific-cells-in-a-data-frame-table-in-r

Regards,
Lydia

Community Support Team _ Lydia Zhang
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-yuezhe-msft
Microsoft Employee
Microsoft Employee

@WelterM,

It is possible to apply conditional formatting with R, please review the following blogs. Also you can use  UNICHAR() function as a workaround which is described in this similar thread.

More Examples on Styling Cells, Rows, and Tables
Conditional Formatting of a Table in R

There is also a similar thread about using R for  your reference.
https://stackoverflow.com/questions/31323885/how-to-color-specific-cells-in-a-data-frame-table-in-r

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you, Lydia. That gives me some hope.

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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