Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Count customers with sales between $1000 and $3000 using Set Analysis

Hi everyone,

There is a need to count distinct customers who have sales in defined range for selected period.

In help I found this example:

sum( {$<Customer = {"=Sum({1<Year = {2007}>} Sales ) > 1000000"}>} Sales )

transforming in to my case it looks like

=count( {$<Customer={"=Sum(Price*Qty) > 1000"}>} distinct Customer)

But how to add the top value of sales, so I'd have count of Customers, who have sales more than 1000 and less than 3000?

Thanx in advance

Rds,
AT

1 Solution

Accepted Solutions
sparur
Specialist II
Specialist II

Hello, Artjoms.

may be like this:

=count( {$<Customer={"=Sum(Price*Qty) > 1000"} * {"=Sum(Price*Qty) < 3000"}>} distinct Customer)

View solution in original post

5 Replies
sparur
Specialist II
Specialist II

Hello, Artjoms.

may be like this:

=count( {$<Customer={"=Sum(Price*Qty) > 1000"} * {"=Sum(Price*Qty) < 3000"}>} distinct Customer)

Anonymous
Not applicable
Author

Cool, it worked

I din't knew about using star in set Analysis sintax

Thanx a log

Rds,
AT

sparur
Specialist II
Specialist II

yes, we could. as well as +, - and /

Anonymous
Not applicable
Author

Is there some additional information available about using these symbols in Set Analysis?

sparur
Specialist II
Specialist II

you can download one useful pdf:

http://community.qlik.com/Search/search.aspx?q=QlikLearn-Set-Analysis-Presentation