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: 
pyrodirk
Contributor
Contributor

Count Customesr only when ...

Hi

i can reduce my problem to a table with three fields , Customernumber, ordernumber, total_sum.

Now i want to know in a text field, how many customers (count) i have, who's total amount is greater than 1500.

I tryied something like this

=Count(  {$< TOTAL_SUM = {">1500.0"} >} DISTINCT CUSTOMER_NR  )

but the result is still 0. What i am doing wrong here.

Regards

Dirk

1 Solution

Accepted Solutions
Not applicable

Try:

=Count({$<TOTAL_SUM={'>1500'}>} DISTINCT CUSTOMER_NR)

Check that all your fields match exactly.

View solution in original post

6 Replies
Not applicable

Try:

=Count({$<TOTAL_SUM={'>1500'}>} DISTINCT CUSTOMER_NR)

Check that all your fields match exactly.

pyrodirk
Contributor
Contributor
Author

Thanks for the very fast reply, but still the result is 0.

MayilVahanan

Hi

Try like this

=Count(  {$< TOTAL_SUM = {">1500"} >} DISTINCT CUSTOMER_NR  )

or

If(Total_Sum > 1500, count(Distinct Customer_Nr)

Hope that helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
pyrodirk
Contributor
Contributor
Author

No , it is still not working....

MayilVahanan

Hi

Can you provide a sample file?

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
pyrodirk
Contributor
Contributor
Author

Hi ,

as i build the example application i found the error. The reason why it was not woring was, that i format the TOTLA_SUM as Money so the part of the look like =Count({$<TOTAL_SUM={'>1500,00 €'}>} DISTINCT CUSTOMER_NR).  So thanks again for the help.

Dirk