Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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 ))