下面是我MDX
查詢生成老化報告。我想用一個名爲SET
計算的量度內。我得到這個錯誤:老化報告MDX查詢問題?
Query (3, 1) The function expects a tuple set expression for the 1 argument. A string or numeric expression was used.
可以解決這個問題嗎?
WITH
SET [Cnt] AS
{'FILTER(
[Cheque Detail Fact Keys].[Cheque Master ID].[Cheque Master ID]
,[Measures].[Paid Amt]<>0
)'
}
SET [x] AS
{
ClosingPeriod
(
[Cal Date].[Month].[Month]
,[Cal Date].[Month].[All]
)
}
MEMBER [Measures].[0-30] AS
Sum
(
[x].Item(0).Lag(1) : [x].Item(0).Lag(0)
,Count(Cnt) //[Measures].[Master Count]
)
MEMBER [Measures].[31-60] AS
Sum
(
[x].Item(0).Lag(2) : [x].Item(0).Lag(1)
,Count(Cnt) //[Measures].[Master Count]
)
MEMBER [Measures].[>60] AS
Sum
(
NULL : [x].Item(0).Lag(4)
,Count(Cnt) //[Measures].[Master Count]
)
SELECT
{
[Measures].[0-30]
,[Measures].[31-60]
,[Measures].[>60]
} ON 0
,{[Customer].[Name].[Name].ALLMEMBERS} ON 1
FROM [My Cube];
請讓我知道我的代碼是否工作。 – SouravA