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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Kumar6872
Contributor
Contributor

QVD Load

Hello Community members,

I have the following requirement where i want to calculate the days it took  in different status.

I am receiving the following file 

ID             Status             CreateDate             WorkInProgressDate              CompletedDate
ABC           Initial             Jan 1 2019                      -                                                             -
ABC           WIP                       -                                 Jan 20 2019                                         -
ABC          Complete           -                                          -                                             Jan 31 2019

 

Is there anyway where i can load the QVD and have the data in the following manner.. that way i can easily calculate the duration between the status.


ID             Status             CreateDate             WorkInProgressDate              CompletedDate
ABC          Complete        Jan 1 2019              Jan 20 2019                                 Jan 31 2019 

 

Labels (1)
2 Replies
Alicja
Contributor
Contributor

Hi,

You can try aggregating your dates by ID and calculating the status field, something along these lines:

LOAD
ID,
if(isnull(max(WorkInProgressDate)), 'Initial', if(isnull(max(CompletedDate)), 'WIP', 'Completed')) as Status,
max(CreateDate) as CreateDate,
max(WorkInProgressDate) as WorkInProgressDate,
max(CompletedDate) as CompletedDate
FROM (...)
group by ID
;

 

Kumar6872
Contributor
Contributor
Author

Thanks. There are other text feilds that i need to bring in. How can i do that?

like

Title,

Owner,

Changed Date

 

etc