我無法擺脫下列MDX輸出查詢中的空行。 我正在顯示特定維度的最後12個月收入,其層次結構中有4個級別。 我正在篩選此輸出基於where語句中的其他維度。MDX無法過濾掉空行
我試過NON EMPTY
,NonEmpty()
,FILTER
等,但我無法得到它的工作。
WITH
MEMBER [Measures].[Member Full Path] AS
[Revenuedim].CurrentMember.UniqueName
MEMBER [Measures].[Member Ordinal] AS
[Revenuedim].CurrentMember.Ordinal
SELECT
NON EMPTY
Hierarchize
(
Union
(
CrossJoin
(
[Measures].[BeaconAmount_USD]
,LastPeriods
(12
,[Date.YQM].LastChild.LastChild.LastChild
)
)
,CrossJoin
(
{
[Measures].[Member Ordinal]
,[Measures].[Member Full Path]
}
,[Date.YQM].[2018]
)
)
,POST
) ON COLUMNS
,NON EMPTY
Order
(
ToggleDrillState
(
ToggleDrillState
(
ToggleDrillState
(
ToggleDrillState
(
{[Revenuedim].[All CPs]}
,{}
)
,{}
)
,{}
)
,{}
)
,[Measures].[BeaconAmount_USD]
,DESC
) ON ROWS
FROM [Revenue_CP]
WHERE
[Revenuedim_SOB].[TCS BPO Chile S.A.];
@AliMajedHA請不要加'感謝'一篇文章,[它被認爲是噪音,應該避免](https://meta.stackoverflow.com/a/260778/4244993) – jmattheis