Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
JoseGarcia
Creator III
Creator III

Table formatting

Hi there, 
Can anyone assist with the following?

I have to dimensions that display time.
Dimension1 displays start time.

Dimension2 displays end time.

I am drafting a summary table for activity time.
I would like format a table in such a way that if Dimension2 is equal or less that 10minutes, it highlights in red.

Can anyone help? 

Thanks a million!

Jose

2 Solutions

Accepted Solutions
inspari_dfg
Partner - Contributor III
Partner - Contributor III

Hi Jose

What is the format of the times? Just standard hh:mm:ss?

In that case, you can just make a expression like this: if(time(Endtime-Starttime)<=maketime(0,10)
,red())

Then you can use that expression in either the "Background color expression" or the "Text color expression" of the endtime, in your case the Dimension2.

If you want an other color that the standard red color that the function red() gives you, then you might use the RGB() function instead

 

/Dennis

View solution in original post

inspari_dfg
Partner - Contributor III
Partner - Contributor III

Sorry Jose, but I see that I forgot somethin.

It should be IF(Endtime-Starttime<=MakeTime(0,10),red()) instead

View solution in original post

3 Replies
inspari_dfg
Partner - Contributor III
Partner - Contributor III

Hi Jose

What is the format of the times? Just standard hh:mm:ss?

In that case, you can just make a expression like this: if(time(Endtime-Starttime)<=maketime(0,10)
,red())

Then you can use that expression in either the "Background color expression" or the "Text color expression" of the endtime, in your case the Dimension2.

If you want an other color that the standard red color that the function red() gives you, then you might use the RGB() function instead

 

/Dennis

JoseGarcia
Creator III
Creator III
Author

Dennis, 

thanks a million! It worked!

inspari_dfg
Partner - Contributor III
Partner - Contributor III

Sorry Jose, but I see that I forgot somethin.

It should be IF(Endtime-Starttime<=MakeTime(0,10),red()) instead