Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
David_K
Contributor III
Contributor III

Creating A KPI based on volume

Good afternoon fellow Qlik Sense Users,

I would like to create a KPI based on the count of a product sales to customers based on a distinct customer reference.  Effectively I want to see the number of customers purchasing the products

I have 2000 product lines, with 375 customers from which only 250 customers have purchased products in a given period, and the number i want to display is 250. This will obviously vary based on the time period selected.

I have tried various configurations of the following but keep coming up with errors

IF(count(ProductName > 0), count(distinct CustomerNo)) 

Is there anyone who can provide some guidance on this.

Thanks in advance,

David

 

4 Replies
anat
Master
Master

IF(count(ProductName) > 0, count(distinct CustomerNo))

 

TauseefKhan
Creator III
Creator III

Hi @David_K,

Check this:
count(distinct {<QuantitySold={">0"}>} CustomerNo)

David_K
Contributor III
Contributor III
Author

Hi Anat,  Thanks for the reply, unfortunately is still returning the total number of customers  including those with 0  - I have tried changing '>0' to '>=1' but still get the same response.  Any additiona lideas?

 

Thanks, David 

David_K
Contributor III
Contributor III
Author

Hi TauseefKhan,  Thanks for the rely, unfortunately the above returns a customer count of '0'.

 I have tried changing '>0' to '>=1' but still get the same response.  Any additiona lideas?

Thanks, David