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

Old,new customers in qlik sense

Hi All,

 

please can any one help me how to identify the old , new customers as i have 2 months data in qlik sense

i want to do in the script

 

4 Replies
nareshthavidishetty
Creator III
Creator III
Author

hi sunny ,jagan,swuehl

can help me on this

Kushal_Chawda

@nareshthavidishetty please share sample dat with expected output?

nareshthavidishetty
Creator III
Creator III
Author

hi Kush

cannot share the data due to restrictions

im doing this in script 

Old_Customer:

LOAD DISTINCT Customer,

Customer as Old_Customer,

1 as Old_Cust

Resident Table

Where businessdt<= '2020-08-31';

 

New_Customer:

LOAD DISTINCT Customer,

Customer as New_Customer,

1 as New_Cust

Resident Table

Where not Exists(Old_Customer, Customer) and businessdt<= '2020-09-30';

 

Temp:

LOAD DISTINCT Customer as Temp_Customer,

1 as New_Cust

Resident Table

Where Exists(Old_Customer, Customer) and businessdt<= '2020-09-30';

 

Lost_Customer:

LOAD Distinct Customer,

1 as Lost_Cust

Resident Table

Where not Exists(Temp_Customer, Customer) and businessdt<= '2020-08-30';

 

not able to get figure out 

 

DROP Table Temp;

Kushal_Chawda

@nareshthavidishetty  what is the logic of identify old and new customers?