我想使用MDX查询在SSAS中创建计算度量。该措施应在一年内和去年同期内返还平均金额。我已经发现了ParallelPeriod函数,但无法使用它。SSAS mdx查询ParallelPeriod
我的查询应该是这样的
(
AGGREGATE(
{[TF_Product].[LastDayOfMonth]}
*{[TF_Product].[Category].&[Deposits]},
[Measures].[Montant]
)
+
AGGREGATE(
{ Get the date of the same period last year using parallelperiod}
*{[TF_Product].[Category].&[Deposits]},
[Measures].[Montant]
)
)/2
谢谢。
The Daily average?那么'(1jan-4Apr2015 + 1jan-4Apr2016)/ numdays'? – whytheq
我想计算例如:(2016年1月的金额+ 2015年1月的金额)/ 2 – yasmine92