Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Data Prep & Transpose

$
0
0

Hello All,

 

I have a file where each customer has different dates. There are other columns having Aging status with amount. 

We are trying to represent for each customer the date of disconnect status in transpose/crosstab, and the os amount for each disconnect date has to be taken from the aging column. If the number of days are 219, the aging amount for the disconnect date will be from 180-365 days column.

 

 

CustPortDate1StatusDateCutOffDays30-60 days60-90 days90-120 days120-180 days180-365 daysAbove 365 days
1148TG23-Feb-17Disc30-09-20172198689.013548.954306.7521395.462574.470
1148TG26-Jul-17Disc30-09-2017668689.013548.954306.7521395.462574.470
1148TG03-Aug-17Disc30-09-2017588689.013548.954306.7521395.462574.470
1148TG01-Sep-17Disc30-09-2017298689.013548.954306.7521395.462574.470
67600TG21-Jun-17Disc30-09-2017101972.981863.953241.613104.241050.871.97
67600TG08-Jul-17Disc30-09-201784972.981863.953241.613104.241050.871.97
67787TA02-Aug-17Disc30-09-201759400890767267456312

 

Output

 

CustDisc1Os/ amountDisc2Os/ amountDisc3Os/ amountDisc4Os/ amountDisc5Os/ amountDisc6Os/ amount
114823-Feb-172574.4726-Jul-173548.9503-Aug-178689.0101-Sep-178689.01    
6760021-Jun-173241.6108-Jul-171863.95        
6778702-Aug-17400          

 

Attached the sample data. Please help. 


Viewing all articles
Browse latest Browse all 4999

Trending Articles