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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis with subset?

I am using a table containing various states for each id:

ID, status, status_start_date, status_end_date

Now I want to make a straight table with an expression that shows all ID's with status = a and status_start_date = reporting_date.

This works fine, but I want to add a column (called status_start_date2) that contains the min(status_start_date) of status=b in the same row, like depicted below:

IDstatusstatus_start_datestatus_start_date2
1a1-2-20094-4-2009
2a5-2-20096-3-2009

Hopefully you can help me.

Update: I just added the .qvw with (limited) sample data.

1 Solution

Accepted Solutions
IAMDV
Master II
Master II

Hi Mate,

Please see the attachement and let me know if you this is what you need. I had used the variables to get this working and I will explain you in detail if this is right for you.

Cheers - DV

View solution in original post

5 Replies
IAMDV
Master II
Master II

Hi,

Please can you upload the QV document with sample data? I can work an example for you.

Cheers - DV

Not applicable
Author

Hi DV,

Sure I can, see the file above.

Cheers

IAMDV
Master II
Master II

Hi Mate,

Please see the attachement and let me know if you this is what you need. I had used the variables to get this working and I will explain you in detail if this is right for you.

Cheers - DV

IAMDV
Master II
Master II

Hi Mate,

Have you got chance to check this one? Have you got this working...?

If yes, please mark the post answered or we can go further.

Cheers - DV

Not applicable
Author

Not completely what I meant, but your solution works fine and my question is answered sufficiently. Thanks!