Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
DSRScape
Contributor II
Contributor II

Count number of clients by number of products used, stacked by status

My dataset records a status of Complete or Active against a Product for each Client. Clients can have none or multiple products recorded.

ClientRefProductStatusReportDate
CL005  31/12/2018
CL006AAAComplete31/12/2018
CL006BBBComplete31/12/2018
CL006CCCActive31/12/2018
CL007  31/12/2018
CL008DDDActive31/12/2018
CL009  31/12/2018
CL011BBBComplete31/12/2018
CL011DDDActive31/12/2018
CL014  31/12/2018
CL015AAAActive31/12/2018
CL015DDDActive31/12/2018
CL015BBBComplete31/12/2018
CL017EEEActive31/12/2018


I need to represent in a stacked bar chart how many products clients have, split by Status, with the dimension ranging from 0 to the number of products that exist. I got it working (see attached) but had to restructure my dataset and am unable to recreate it.

Hope someone can help!

Thank you,

David

1 Solution

Accepted Solutions
JustinDallas
Specialist III
Specialist III

Better yet, do you know what the test data SHOULD look like?  When I make my dimension "Aggr(COUNT( DISTINCT Product), ClientRef )" and add another dimension of "Status" I get this.

QlikAggr.png

But to be honest, me and AGGR aren't very good friends so I'm not 100% on this.

View solution in original post

4 Replies
JustinDallas
Specialist III
Specialist III

Do you mean something like this?  I tried attaching the qvf, but it keeps saying "The contents of the attachment doesn't match its file type."

 

QlikQuestion1.png

DSRScape
Contributor II
Contributor II
Author

Not quite - this is what I'm attempting to recreate, so e.g. a total of 12 clients have engaged with 6 products giving 72 statuses of Active or Complete. Just over 300 have not engaged with any products:

Status Count by Products.JPG

Hope that makes sense and thank you for your time.

David

JustinDallas
Specialist III
Specialist III

Better yet, do you know what the test data SHOULD look like?  When I make my dimension "Aggr(COUNT( DISTINCT Product), ClientRef )" and add another dimension of "Status" I get this.

QlikAggr.png

But to be honest, me and AGGR aren't very good friends so I'm not 100% on this.

DSRScape
Contributor II
Contributor II
Author

That is spot on for that sample and spot on for my actual app. I clearly need to make friends with AGGR!

Thank you so much for your help Justin.

David