Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Within last 7 days

I need some text changed to red if the Ideas.CalendarDate is within the last 7 days

I don't think this is right though. Any ideas?

IF(Today()-Ideas.CalendarDate<'8',RGB(255,0,0),)

Labels (1)
1 Solution

Accepted Solutions
rubenmarin

Hi Alex, you should remove the last comma, and numbers doesn't need to be between simple quotes:

IF(Today()-Ideas.CalendarDate<8,RGB(255,0,0))

It will only work where there is only one value for Ideas.CalendarDate, if ther are more than one value you'll need some kind of aggregation to return only one value, ie:

IF(Today()-Max(Ideas.CalendarDate)<8,RGB(255,0,0))

View solution in original post

2 Replies
rubenmarin

Hi Alex, you should remove the last comma, and numbers doesn't need to be between simple quotes:

IF(Today()-Ideas.CalendarDate<8,RGB(255,0,0))

It will only work where there is only one value for Ideas.CalendarDate, if ther are more than one value you'll need some kind of aggregation to return only one value, ie:

IF(Today()-Max(Ideas.CalendarDate)<8,RGB(255,0,0))

Not applicable
Author


if(Ideas.CalendarDate >=Date(Today()-7) and Ideas.CalendarDate <=Date(Today()),RGB(255,0,0))