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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
manojkulkarni
Partner - Specialist II
Partner - Specialist II

Help required : get count of products

Hi Friends,

I have 2 tables consists of system & product information. system has multiple software installed and each will have its own expiry date.

I need to calculate the no. of systems expired or going to expire during selected period. Even if one of the product expired then we should consider that system as expired else it should be counted as per its date.

Below is the sample data

  

St Date:01-01-2015
En Date:30-01-2015

   

ExpiredGoing to expireRest
112

 

SystemID
1
2
3
4
5

  

SystemIDProductIDEndOfLic
1101-01-2014
1201-02-2015
1301-02-2016
2101-01-2016
2201-01-2016
2301-01-2016
3101-10-2016
3201-10-2016
3301-10-2016
4125-01-2015
4201-10-2016
4301-10-2016
4 Replies
sunny_talwar

How do you determine if something is expired or not?

Qrishna
Master
Master

More clarifications needed here.

Try providing your selections and something like below screenshot would also be hlpful for us to resolve the problem.Capture.PNG

manojkulkarni
Partner - Specialist II
Partner - Specialist II
Author

Background:

Each system is configured with different software (nothing but product) and it can have multiple softwares. We are trying to identify which of the system is expired for the given date range. System considered as expired when any one of the software is expired. In the below sample, SystemID 1 is expired, since one of the product is expired in Jan'14, which is old date compared to the user selection (Jan'15)

if EndOfLic date is less than the selected date range, then particular product is expired for the system.

Date Selections:

St Date:01-01-2015
En Date:30-01-2015

Expected output :

ExpiredGoing to expireRest
112

Table1:

SystemID
1
2
3
4
5

 

Table2:

SystemIDProductIDEndOfLic
1101-01-2014
1201-02-2015
1301-02-2016
2101-01-2016
2201-01-2016
2301-01-2016
3101-10-2016
3201-10-2016
3301-10-2016
4125-01-2015
4201-10-2016
4301-10-2016
manojkulkarni
Partner - Specialist II
Partner - Specialist II
Author

Hi Krishna,

Below is date selections & expected result from tables. When i take count of expired systems, i should be getting one count of SystemID 1 and same system should not appear in Going to expire/Rest case. Since one of the product is going to expire in Jan'15, SystemID count is appearing in Going to Expire case as well, which i want to avoid. How to handle this ?

Date Selections:

St Date:01-01-2015
En Date:30-01-2015

Expected output :

ExpiredGoing to expireRest
112