Skip to main content

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Skip the ticket, Chat with Qlik Support instead for instant assistance.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

HOw to solve this with SET ANALYSIS

There are multiple cell phone plans(contracts) issued to a productID (cell phone). A cell phone is considered as having a plan if it has an Active contract starting after previous contract's expiration. In the example below, XYZ001 is counted as having a contract because Contract#003 expired on 4/17/2015 but it was followed by an Active contract#005 on 4/18/2015. The remaining ProductIDs do not have active contracts following its expired contracts and should not be counted. Hold status should be ignored. How can it be achieved with a count function in a straight table using Set Analysis or AGGR.

AGGR_contracts.PNG

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

Count({<Status={'Active'}>} Distinct ProductID)

Regards,

Jagan.

View solution in original post

2 Replies
awhitfield
Partner - Champion
Partner - Champion

Hi Qlikdash,

so are you just wanting to count those with a status of Active?

Andy

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

Count({<Status={'Active'}>} Distinct ProductID)

Regards,

Jagan.