Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save an extra $150 Dec 1–7 with code CYBERWEEK - stackable with early bird savings: Register
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 ))