Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to calculate days in between dates in straight table? urgent help please


Hi,

I have data as below. I need to calculate days between highlighted dates. please can anyone suggest me how to do this?

the condition is when STAGE2 =CC and STAGE2=MR then need to calculate days between DATE 28/01/2015 12:00 and 01/04/2015 18:28                                                                                                 

IDSTAGE1STAGE2DATE
43998CMAP18/05/2015 15:32
43998PDCM24/04/2015 14:24
43998DTDPD08/04/2015 14:11
43998MRC08/04/2015 14:10
43998DMR01/04/2015 18:28
43998DAD01/04/2015 18:01
43998REDA28/03/2015 17:14
43998RARE28/03/2015 16:38
43998CPRA13/03/2015 16:49
43998CSCP27/02/2015 13:30
43998QRCS27/02/2015 13:29
43998ELQR27/02/2015 13:28
43998TAEL11/02/2015 14:51
43998CCTA11/02/2015 14:51
43998CCCC28/01/2015 13:30
43998LGCC28/01/2015 12:00

Thanks.

23 Replies
Not applicable
Author

Please can anyone help

sunny_talwar

You want this in a text box object?

Not applicable
Author

not in text object. I need in straight table as original file have lots of IDs. would it be possible?

sunny_talwar

So against all the same ID rows you want to see one number which would be the difference between STAGE2 =CC and STAGE2=MR?

Not applicable
Author

yes exactly. is it possible?

sunny_talwar

Looking for this?

Capture.PNG

Not applicable
Author

this is not working.

Digvijay_Singh

check this, Not sure though if this is what exactly needed -

Not applicable
Author

I have used this. I will check with user regarding data and will get back you. Thanks.