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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
rwcampbell
Helper II
Helper II

Conditional Format Timings

Hello,

 

I have a few cards that show the last updated time and date for each of the tables on the system.

 

At the moment we have them set with this measure:

Collation Header Conditional Formatting = IF(MAX(CollationHeader[Updated])>=TODAY(),1,0) which looks at only the date.
 
Is there a way to look at the time which is included with the date and set it that if it passes 10 minutes after the current time, it highlights red otherwise it stays green?
 
Thanks.
1 ACCEPTED SOLUTION

@rwcampbell  you can use the values from the above measure to set the background color

 such as 1=Green, 2=Red

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

View solution in original post

3 REPLIES 3
smpa01
Super User
Super User

@rwcampbell  can you try this measure

Measure = IF(MINUTE(NOW()-calculate(max('Table'[time])))<=10,1,2)
Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

It is working but what should i set the background colours to?

@rwcampbell  you can use the values from the above measure to set the background color

 such as 1=Green, 2=Red

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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