损失开发三角形 - 是否有MDX查询将其构建为多维数据集?

时间:2014-04-17 14:05:59

标签: mdx claims loss

背景 在保险业中,亏损发展三角形在一致的发展期内分解累计成本(IE:索赔支付的美元)。目的是帮助您在成本开发的同一时期逐年查看索赔成本的进展情况。

例如,如果我声称发生在2008年&在2009年发生的声明,一个三角形将有助于看到12个月,然后24个月等两组索赔的累积成本。

三角形看起来像这样。

http://www.reserveprism.com/images/reportCountTriangle.jpg

问题 我的问题是,是否存在创建此MDX查询,或者甚至可以在OLAP多维数据集的框架内进行查询? (我无法在谷歌上找到任何东西,这是令人惊讶的,因为这是一个标准的保险功能)。

1 个答案:

答案 0 :(得分:0)

不确定你的立方体的结构,但仍然给它一个镜头。

with set [12 Months back] as --Gets you the year 12 months(1 year) from now
parallelperiod(
[Date].[Year].[Year]
,-1
,[Date].[Year].currentmember)

member [Measures].[12 Months] as --Calculates the "Dollars paid for claims" for the year calculated above.
AGGREGATE([12 Months back], [Measures].[Dollars paid for claims])

member [12] as --Gets the difference
[Measures].[12 Months] - [Measures].[Dollars paid for claims]

 set [24 Months back] as
parallelperiod(
[Date].[Year].[Year]
,-2
,[Date].[Year].currentmember)

member [Measures].[24 Months] as
AGGREGATE([24 Months back], [Measures].[Dollars paid for claims])

member [24] as
[Measures].[24 Months] - [Measures].[Dollars paid for claims]

 set [36 Months back] as
parallelperiod(
[Date].[Year].[Year]
,-3
,[Date].[Year].currentmember)

member [Measures].[36 Months] as
AGGREGATE([36 Months back], [Measures].[Dollars paid for claims])

member [36] as
[Measures].[36 Months] - [Measures].[Dollars paid for claims]

 set [48 Months back] as
parallelperiod(
[Date].[Year].[Year]
,-4
,[Date].[Year].currentmember)

member [Measures].[48 Months] as
AGGREGATE([48 Months back], [Measures].[Dollars paid for claims])

member [48] as
[Measures].[48 Months] - [Measures].[Dollars paid for claims]

 set [60 Months back] as
parallelperiod(
[Date].[Year].[Year]
,-5
,[Date].[Year].currentmember)

member [Measures].[60 Months] as
AGGREGATE([60 Months back], [Measures].[Dollars paid for claims])

member [60] as
[Measures].[60 Months] - [Measures].[Dollars paid for claims]

select {[Measures].[12], [Measures].[24], [Measures].[36], [Measures].[48], [Measures].[60]}  on 0,
[Date].[Year].members on 1
from [Your Cube]