Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

End/Start of Period volumes

Hi,

I have a raw file showing policy numbers, their start dates and end dates. Someting like this:

Policy Number

StartDate

(dd/mm/yyyy)

EndDate (dd/mm/yyyy)
P101/01/201030/06/2010
P201/01/201031/12/2010
P301/01/201031/12/2010
P401/02/201031/12/2010
P501/06/201030/06/2010
P601/06/201030/06/2010
P701/06/201031/07/2010
P801/06/201031/12/2010
P901/06/201031/12/2010
P1001/06/201031/12/2010

What i want to get is a table that will calculate the volumes of in-force policies at month start for the 12 months of 2010. Something like this:

MonthJan-10Feb-10Mar-10Apr-10May-10Jun-10Jul-10Aug-10Sep-10Oct-10Nov-10Dec-10
In-Force policies3444410777777

How to script this - any suggestions are most welcome?

I only managed to get this view but i find it hard to present it the way shown above:

MonthStartedEnded
Jan 201030
Feb 201010
Jun 201063
Jul 201001
Dec 201006

Best Regards & Thanks,

Artur

12 Replies
Anonymous
Not applicable
Author


Hello Nicole,

attached is the app with intervalmatch done on calendar date that helped to avoid the loops.

Now in this table Live Policies volumes look good but I also need to show volumes that Started and Ended and i cannot figure out how to do this in this data model. Hope you can help again!

That's a pity that it is not possible to export the results of intervalmatch into a qvd - it would make the whole thing much easier.

Capture.JPG

Regards & Thanks,

Artur

Nicole-Smith

Have a look at the attached.

Anonymous
Not applicable
Author

Many thanks Nicole. Your solution does the trick perfectly.

Regards,

Artur