Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Help for Triangulation Report

Author  Topic 

NickC
Yak Posting Veteran

68 Posts

Posted - 2012-01-09 : 04:42:05
Hello

Does anyone have a guide on how to write a triangulation report for insurance - I'm getting worried as can't find any information and still having problems with the dates.

My report works fine in the sense when theres date it shows a value but I need it to show the same values in quarters where there were no premiums

What I mean is

basically report looks similar to this

AY Qtr Premium Running Total
2007 Q1 2000 2000

2007 Q2 1000 3000

2007 Q3 4000 7000

2008 Q2 1000 8000



What I need it to look like (and 2007 Q4, and 2008 Q1 dont exist anywhere :( )

AY Qtr Premium Running Total
2007 Q1 2000 2000

2007 Q2 1000 3000

2007 Q3 4000 7000

2007 Q4 0 7000

2008 Q1 0 7000

2008 Q2 1000 8000


Really struggling to find out any information, and worried I'm not going to be able to complete this now :/

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-01-09 : 04:57:31
you need a calendar table for that. see

http://visakhm.blogspot.com/2010/02/generating-calendar-table.html

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -