我们正在尝试创建一个计算的度量来执行另一个度量的运行总计。考虑到数据量不大,我们如何才能更快地进行此查询?
WITH MEMBER [Measures].[X] AS aggregate
(
{Null:[Transaction Date].CurrentMember},
[Measures].[Transaction Amount]
)
SELECT
non empty {
[Measures].[X]
} ON columns
,
non empty {
([Claim].[Claim Number].children*
[Transaction Date].[Hierarchy].[Day].&[2013-02-28T00:00:00]
)
}
ON rows
FROM [ClaimsCube]
答案 0 :(得分:1)
尝试删除“非空”
WITH MEMBER [Measures].[X] AS aggregate
(
{Null:[Transaction Date].CurrentMember},
[Measures].[Transaction Amount]
)
SELECT
{
[Measures].[X]
} ON columns
,
{
([Claim].[Claim Number].children*
[Transaction Date].[Hierarchy].[Day].&[2013-02-28T00:00:00])
}
ON rows
FROM [ClaimsCube]