Reporting services 从不同层面衡量价值

Reporting services 从不同层面衡量价值,reporting-services,ssas,mdx,cube,olap-cube,Reporting Services,Ssas,Mdx,Cube,Olap Cube,我有这样的想法: a | ax | 5 a | ay | 5 a | az | 5 b | bb | 6 c | c | 7 范围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 CREA

我有这样的想法:

a | ax | 5
a | ay | 5
a | az | 5
b | bb | 6
c | c  | 7
范围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';   
我在using scopes中构建了Line Quantity,空值是正确的,因为生产线ax、ay、az没有将某些标志设置为True 但在某些情况下,我必须从设备级别获取生产线数量 应该是这样的:

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

这可能吗?

目前我正在使用Parant函数,但在浏览其他列时,我得到了空值:(您是否有使用
.Parent
函数的代码?好的,我找到了使用scopesGood的解决方案。如果您愿意,可以为您自己的问题添加答案。