Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
chriscools
Creator II
Creator II

calculate how many new clients

Hello,

i want to count the number of new customers that were created.

the amount of orders they place i can derive like this:

sum (if ( WholesaleCustomerCode > [vNieuwe klantennummers] , ( OrderPriceUnitNet * OrderQty)))

where [vNieuwe klantennummers] equals the last created customer i don't want to calculate as new.

this works fine but i also want to calculate the number of new customers and i try to do it like this, but this gives me no result.

is the expression wrong?

if ( WholesaleCustomerCode > [vNieuwe klantennummers] , Count (DISTINCT WholesaleCustomerCode ) )

thanx!

chris

1 Reply
m_woolf
Master II
Master II

Why not try the same syntax you are using for Order Amount?

count(distinct if ( WholesaleCustomerCode > [vNieuwe klantennummers] ,WholesaleCustomerCode ))