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

count with no activity

hi,

for simplisty i have 2 tabels orders and customers. linked by field custid.

order table columns: orderid, custid, orderdate, orderyear, ordernum

customers table columns: custid, create_date, name

the needed oupput is

orderyear
count orderscount customers

count customers

with no order

















the problem is the last column.

It count all customers  created until the orderyear but doesnt have any order in this year.

thanks,

dt

1 Reply
Not applicable
Author

Hi

try this for the last column

Count(  TOTAL Distinct  Custid)  -   Count( Distinct Custid)

jj