Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
srinivasa1
Creator II
Creator II

ageing analysis

I would  like to do
ageing analysis  for time and
duration for message  like [0-2][2-10][5-20][>20 hrs]

Time duration  will be like below

10:06:32 ,

82:05:30 etc

Pls share with me if you  ageing analysis like this. Thanks in advance.

12 Replies
MayilVahanan

HI

Try like this

Load


   
if([ Time] <= 1  , '[0-1]',

    
if([Time] <= 3  AND [Time] > 1 ,'[2-3]',

   
if([Time] <= 5  and [Time] > 4, '[4-5]', '[5-20]'))) as aging

FROM TAB1;

or

Load *,


   
if([ Time] <= 1  , '[0-1]',

    
if([Time] <= 3 ,'[2-3]',

   
if([Time] <= 5 '[4-5]', '[6-20]'))) as aging

FROM TAB1;

Both are same..


Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
whiteline
Master II
Master II

Remove the space in first If():

[ Time]

almamy_diaby
Creator
Creator

this expression seems to me proper:

Load

    if([Time] <= 1  , '[0-1]',

    
if([Time] <= 3  AND [Time] > 1 ,'[2-3]',

   
if([Time] <= 5  and [Time] > 4, '[4-5]', '[5-20]'))) as aging

FROM TAB1;