Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
Can someone please help me in creating a Common Calendar based on the 2 fields: Cust_Start_Date and Cust_End_Date?
The sample data has been provided below:
rank | cnt | scv_customer_id | product_system_code | contract_sk | contract_key | contract_id | display_contract_id | account_class_code | account_class_desc | product_key | product_code | cust_start_date | cust_end_date | contract_start_date | contract_end_date | contract_status_code | smsf_ind | practice_id | adviser_id | cust_seg_code | cust_seg_desc | dob | new_cust_flag | existing_cust_flag | lost_cust_flag |
1 | 3 | 1288 | FDA | 23744689 | 33603353 | D310193081 | D310193081 | ATP | Super Allocated pension | 112 | FTL | 8/10/2012 | 12/31/3000 | 10/10/2012 | 12/31/3000 | A | High Net Worth | High Net Worth | 7/18/1960 | 1 | 0 | 0 | |||
2 | 3 | 1288 | FDA | 23744689 | 33603353 | D310193081 | D310193081 | ATP | Super Allocated pension | 112 | FTL | 8/10/2012 | 12/31/3000 | 10/10/2012 | 12/31/3000 | A | High Net Worth | High Net Worth | 7/18/1960 | 0 | 1 | 0 | |||
3 | 3 | 1288 | BK | 26890471 | 43235323 | 101087880 | 101087880 | NA | NA | 105 | ER | 8/10/2012 | 12/31/3000 | 1/4/2013 | 12/31/3000 | A | High Net Worth | High Net Worth | 7/18/1960 | 0 | 1 | 0 | |||
1 | 2 | 1731 | US | 34283985 | 141727412 | 957330065 | 957330065 | NA | NA | 105 | ER | 4/7/2011 | 12/31/3000 | 4/4/2014 | 12/31/3000 | A | Affluent | Affluent | 11/26/1948 | 1 | 0 | 0 | |||
2 | 2 | 1731 | US | 34283985 | 141727412 | 957330065 | 957330065 | NA | NA | 125 | IBP | 4/7/2011 | 12/31/3000 | 4/4/2014 | 12/31/3000 | P | N | Affluent | Affluent | 11/26/1948 | 0 | 1 | 0 | ||
1 | 2 | 1858 | US | 33753575 | 114213954 | d358621 | d358621 | SAU | Accumilation Unitised | 206419 | IBP | 11/27/2013 | 12/31/3000 | 12/1/2013 | 5/31/2014 | C | Affluent | Affluent | 5/5/1954 | 1 | 0 | 0 | |||
2 | 2 | 1858 | US | 33753575 | 114213954 | d358621 | d358621 | SAU | Accumilation Unitised | 206419 | FCI | 11/27/2013 | 12/31/3000 | 12/1/2013 | 12/31/3000 | A | Affluent | Affluent | 5/5/1954 | 0 | 1 | 0 | |||
1 | 2 | 1734 | CM | 30544226 | 23467888 | D3FDHJ86544 | D3FDHJ86544 | SAU | Accumilation Unitised | 3456123 | DSC | 6/29/2000 | 10/4/2011 | 8/15/2003 | 5/5/2004 | C | MASS CUSTOMER | MASS CUSTOMER | 12/27/1975 | 1 | 0 | 0 | |||
2 | 2 | 1734 | CM | 31067654 | 64328889 | LMPDH543 | LMPDH543 | SAU | Accumilation Unitised | 3456123 | DWR | 6/29/2000 | 10/4/2011 | 5/5/2004 | 6/5/2006 | C | MASS CUSTOMER | MASS CUSTOMER | 12/27/1975 | 0 | 0 | 1 |
Hi,
Create a calender based on cust_startdate only bcoz end date is after start date only.here you can create a master calender with the following cust_startdate
Thank you Rakesh.
Infact I need the End Date into considerations as well. Why because, I have some KPIs like Total New Customers (from start date field), Total Lost Customers (from end date field) etc.
So the end date is needed to create master calendar to have them used in the KPIs.
Any more suggestions please in the scripting?
Regards!