Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Accessing Supproting records in a qvd


Hi All;

I am trying to work with a qvd to find the number of Days between the two dates.  However, the first date is the DateOpened on the first record.  The CaseAssignmentDate date is on the next record (along with the Assignee and PrimaryAssignee and their names).  Is there a way to have the "master" record (first record) and see all other records that match the CaseID.  My example shows CaseID # 33 & 34.  I need to compute the number of days between 2010-01-20 (CaseAssignmentDate) and 2010-01-11 (DateOpened).

Any ideas out there?

Thanks!

Mike

1 Solution

Accepted Solutions
Not applicable
Author

Lets call the table you have Case.

Case:

Load * From Case.qvd;

[# of Days table]:

Load CaseID, End-Start as [# of Days];

Load Distinct CaseID, Min(DateOpened) as Start, Min(CaseAssignmentDate) as End

Resident Case

Group By CaseID;

View solution in original post

2 Replies
Not applicable
Author

Lets call the table you have Case.

Case:

Load * From Case.qvd;

[# of Days table]:

Load CaseID, End-Start as [# of Days];

Load Distinct CaseID, Min(DateOpened) as Start, Min(CaseAssignmentDate) as End

Resident Case

Group By CaseID;

Not applicable
Author

Thank you so much!  A little adjustment and it works!