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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out 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

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

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
Champion III
Champion III

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