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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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