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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.