Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Setting up a 60 day flag - System MonitorLoad

Hi

I have a field in an application to which I need to add a FLAG (1/0) that checks is a Session Date is less or greater than 60 days since the last access.

The rule for the flag is if(Session_Date) >= 60 than Flag = 1 and if(Session_Date) <60 than Flag = 1.

My Session_Date is declared as -
MakeDate(Year([Session Start]),Month([Session Start]),Day([Session Start]))              AS Session_Date

Thanks

S

1 Solution

Accepted Solutions
maxgro
MVP
MVP

// maybe you have to swap 0 and 1

if( [Session Start] > (Today(0)-60) and [Session Start] < (Today(0)+60),1,0) as FlagDate,

View solution in original post

2 Replies
maxgro
MVP
MVP

// maybe you have to swap 0 and 1

if( [Session Start] > (Today(0)-60) and [Session Start] < (Today(0)+60),1,0) as FlagDate,

Not applicable
Author

Thanks that flag seems to give a 60 day flag of user access