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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mariaLP1610
New Member

Calculated column conditional formatting

Hello!

 

i am trying to change the font color of values in a table based on a condition.

I have a table that has a column named 'SubmitDate'

I have created a calculated column using the following

 

Days Since Submission = DATEDIFF(myRequests[SubmitDate],Now(),DAY).
 
This is the column i use in the table visual.
When this number is greater than 5 i want the font to be Red.
I tried selecting the column and add conditional formating using a rule. I am getting the count but i dont want a summarization. 
I also get an error.
 
mariaLP1610_0-1692692657252.png

I also tried to create a measure that simulates the logic, for example

MeasureName = IF([YourColumnName] > 5, 1, 0)

 if value is 1 then color is red. 

I cannot seem to be able to select the column.

 

Any help will be appreciated.

1 ACCEPTED SOLUTION
JoeBarry
Solution Sage
Solution Sage

Hi @mariaLP1610 

 

Instead of Count of Days Since Submission, try Max. Also in the second part of the criteria, you need to add a number larger than 5 and not < 0 as in your screenshot

 

Thanks

Joe

View solution in original post

2 REPLIES 2
JoeBarry
Solution Sage
Solution Sage

Hi @mariaLP1610 

 

Instead of Count of Days Since Submission, try Max. Also in the second part of the criteria, you need to add a number larger than 5 and not < 0 as in your screenshot

 

Thanks

Joe

Thanks for this information

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.