Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
rocky147khan
Contributor
Contributor

aggr function in qlikview

Hi All,

The below statement gives me the hyphenated list of all the Customers with Sales greater than 200

=concat(if(aggr(sum(SalesValue),Customer) >200,Customer),'-')

 

What should I do to get the count of the customers rather than the list.

Thanks in advance.

Regards,

Amjad

1 Solution

Accepted Solutions
sunny_talwar

Try this

=Count(DISTINCT {<Customer = {"=Sum(SalesValue) > 200"}>} Customer)

View solution in original post

4 Replies
sunny_talwar

Try this

=Count(DISTINCT {<Customer = {"=Sum(SalesValue) > 200"}>} Customer)
sunny_talwar

or this

=Count(DISTINCT Aggr(If(Sum(SalesValue) > 200, Customer), Customer))
rocky147khan
Contributor
Contributor
Author

Thank you, both the solutions work.

 

Infact, the below works as well.

=count(if(aggr(sum(SalesValue),Customer) >200,Customer))

Claudiu_Anghelescu
Specialist
Specialist

=Count(IF(Aggr(sum(SalesValue),Customer)>200, DISTINCT Customer))

To help community find solutions, please don't forget to mark as correct.