cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
jmolson2013
Frequent Visitor

Color scale for dates in table

Hi - 

Is there a way to apply Conditional colors by creating a table based on the age of a record?

 

Example:  a record was:

 

Updated last 7 days - green

Last update 8-30 days - yellow

Last update >=30 days - red 

 

In this case - I have a column actually titled "last updated" which refers to a the current status of a record / line item of a table.

Thanks!

2 ACCEPTED SOLUTIONS
jthomson
Solution Sage
Solution Sage

I'm not sure if it's possible to conditionally format on the date field itself, but if you create a custom column Age = INT(TODAY()-[your last update column]), it should give you a value as an integer which you can then conditionally format based on the rules you have

View solution in original post

pxg08680
Resolver III
Resolver III

@jmolson2013

You cannot apply conditional formatting on Date fields. It only applys for calculated values. You may better follow the post by @jthomson and then apply color formatting.

 

https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-november-2017-feature-summary/

You may use this link on how to use Color fomatting based on rules.

 

Regards,

pxg08680

View solution in original post

2 REPLIES 2
pxg08680
Resolver III
Resolver III

@jmolson2013

You cannot apply conditional formatting on Date fields. It only applys for calculated values. You may better follow the post by @jthomson and then apply color formatting.

 

https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-november-2017-feature-summary/

You may use this link on how to use Color fomatting based on rules.

 

Regards,

pxg08680

jthomson
Solution Sage
Solution Sage

I'm not sure if it's possible to conditionally format on the date field itself, but if you create a custom column Age = INT(TODAY()-[your last update column]), it should give you a value as an integer which you can then conditionally format based on the rules you have

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors