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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
rajkumarb
Creator II
Creator II

Creating Flag for Time

Hi All

i have  a time field SoldTime(dd-mm-yyyy hh:ss:fff), i need to create a flag for that field in the load script

if sales made before 12:00 = Y

and sales made after that =N

Please suggest how to do that

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Set TimestampFormat = 'DD-MM-YYYY hh:mm:ss:fff'; // or whatever your real format is

LOAD

     SoldTime,

     If( Frac(SoldTime) <0.5, 'Y','N') as Flag,

     ...

View solution in original post

2 Replies
swuehl
MVP
MVP

Set TimestampFormat = 'DD-MM-YYYY hh:mm:ss:fff'; // or whatever your real format is

LOAD

     SoldTime,

     If( Frac(SoldTime) <0.5, 'Y','N') as Flag,

     ...

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Perhaps like this: If(Frac(SoldTime)<0.5,'Y','N') as Flag


talk is cheap, supply exceeds demand