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

Repeated Customers

Hi,

How to write the Set expression for Repeated customers with Sales and Sales Return based on PhoneNo and DocDate.

For Example,

ObjTypeDocEntryDocNumDocDateCardCodeCardNameDocTotalPhoneNo
13104505191080155406-05-19C7010926055DEAN300007010926055
13105400191080174009-05-19C7010926055DEAN300007010926055
143142191080004409-05-19C7010926055DEAN-300007010926055
13106228191080194113-05-19C7010926055DEAN380007010926055
13108133191080236120-05-19C7010926055DEAN300007010926055
13103610191080137002-05-19C8608666640KARTHI M OPPO1008608666640
13105066191080166307-05-19C8608666640KARTHI M OPPO4008608666640
13108331191080240921-05-19C8608666640KARTHI M OPPO3008608666640
13108599191080246222-05-19C8608666640KARTHI M OPPO1008608666640
13103849191050161703-05-19C9442387303ABDUL KALAMAZATH A250009442387303
13104267191050171405-05-19C9442387303ABDUL KALAMAZATH A341999442387303
13104485191050176506-05-19C9442387303ABDUL KALAMAZATH A339999442387303
143117191050004405-05-19C9442387303ABDUL KALAMAZATH A-349999442387303
143121191050004606-05-19C9442387303ABDUL KALAMAZATH A-339999442387303

 

In above table,

ObjType 13 means Sales and 14 means SalesReturn.

DEAN Customer has visited 4 times with different dates. and he has return to one time. So, I want to except the results No.of visited times 3 and Last visited Sales (20-05-19) Rs.30000.

KARTHI Customer has visited 4 times with different dates. and he has no return . So, I want to except the results No.of visited times 4 and Last visited Sales (22-05-19) Rs.100.

ABDUL Customer has visited 3 times with different dates. and he has return  2 times. So, I want to except the results No.of visited times 1 and Last visited Sales (03-05-19) Rs.25000. But this Customer not consider the repeated customer.

At this time, I need

1. No.of visited times based on DocDate and PhoneNo.

2. 2 times visited customers total sales. Similarly 3 times and 4 times visited Customers Sales.

3. How to write Calculated Dimension for 2 times,3 times,4 times and Above 4 times sales.

So, Please help me set expressions the above scenario.

 

 

 

Labels (1)
1 Solution

Accepted Solutions
Sue_Macaluso
Community Manager
Community Manager

@Ram83  Are you using QlikView or Qlik Sense? I would like to move this into the correct product forum. 

Sue Macaluso

View solution in original post

2 Replies
Sue_Macaluso
Community Manager
Community Manager

@Ram83  Are you using QlikView or Qlik Sense? I would like to move this into the correct product forum. 

Sue Macaluso
Ram83
Contributor II
Contributor II
Author

Thank you for giving reply. I am using Qlik Sense. Please help me.