从不同层面衡量价值

时间:2015-03-30 10:08:09

标签: reporting-services ssas mdx cube olap-cube

我有这样的事情:

范围1:

Facility desc | Line Quantity In
a | 5
b | 6
c | 7

范围2:

Facility desc | Production Line Desc | Line Quantity In
a | ax | 5
a | ay | null
a | az | null
b | bb | 6
c | c  | 7


CREATE MEMBER CURRENTCUBE.[Measures].[Facility QIn]
AS(  
([Measures].[Line Quantity In],  [DIM RESOURCE].[Production Line Desc]. [All])
)
,
FORMAT_STRING = "# ##0,00%;-# ##0,00%",
VISIBLE = 1 , ASSOCIATED_MEASURE_GROUP = 'x';   

我建立了线数量在使用范围时,空值是正确的,因为生产线ax,ay,az没有将某些标志设置为True 但在几种情况下,我必须从设施级别获得线路数量 它应该是这样的:

a | ax | 5
a | ay | 5
a | az | 5
b | bb | 6
c | c  | 7

这可能吗?

0 个答案:

没有答案