我创建了两个成员:
MEMBER [Measures].[SegKey] as
[Segment].[skSegment].Currentmember.Member_Key
,NON_EMPTY_BEHAVIOR =[Measures].[Allocated Site Trans Date Revenue]
MEMBER [Measures].[TerrKey] as
[Territory].[skTerritory].Currentmember.Member_Key
,NON_EMPTY_BEHAVIOR = [Measures].[Allocated Site Trans Date Revenue]
然后我在我的选择中引用它们:
Select Non Empty {[Measures].[Allocated Site Trans Date Revenue], [Measures].[SegKey],
[Measures].[TerrKey]} on 0,
Non empty({[FYToCompleteMonthEnd], [LastFYToCompleteMonthEnd]}* {[CommCatABC]}*
{[Segment].[Customer Markets].[Customer Market].&[School],
[Segment].[Customer Markets].[Customer Market].&[Public Library]}) On 1
From Sales
然而,这些键的返回值为0。
这里可能会发生什么?
谢谢!
答案 0 :(得分:0)
Select
[Measures].[TerrKey] on 0,
[Territory].[skTerritory].members on 1
From Sales
如果您通过'name'或'key'更改Member_Key?
对于第二个非空是奇怪的你的括号'(',这个如果是函数和元组。你可以试试吗?