Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
flyhigh15
Contributor III
Contributor III

Count, Set Analysis

  1. Calculate the count of customers who purchased a product in the specified year.
  2. year = 2015,2016,2017
5 Replies
abhijitnalekar
Specialist II
Specialist II

Hi @flyhigh15 ,

Use below.

count({<year={'2015','2016','2017'}>}distinct customer)

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!
flyhigh15
Contributor III
Contributor III
Author

not working .....  year can any from given orderdate.

 

abhijitnalekar
Specialist II
Specialist II

@flyhigh15 ,

 

do you have year filed in the data model then you can use that field or try belo

 

count({<year(Orderdate)={'2015','2016','2017'}>}distinct customer)

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!
flyhigh15
Contributor III
Contributor III
Author

i have tried this.. is this write???    =

count({<year= GetFieldSelections>}distinct CustomerID)...

 

abhijitnalekar
Specialist II
Specialist II

@flyhigh15 

 

if you want to change your expression value on the selection you can use below

Count(distinct Customer)

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!