增加(每週)過濾器,我發現從互聯網上下面的示例,它計算總和[Measures].[Job Advert Value]
爲不同[JAP ID].[JAP ID]
。如何在不同的價值總和在此查詢
但是,它只顯示了所有內容的總和,我只想爲每個星期總結它。
我試着爲時間維度的[Time].[Year - Week - Date].[Week].members
添加FILTER,但不起作用。
下面的查詢不帶FILTER功能。
SCOPE([Time].[Year - Week - Date].[Week].members, [Permanent Placement Value].[Value Type Name].&[Vacancies], [Measures].[Job Advert Value]);
[Measures].[JAP Advert Value] =
SUM
(
generate
(
[JAP ID].[JAP ID].MEMBERS AS s,
s.CURRENT *
TAIL(
NonEmpty
(
[Time].[Year - Week - Date].[Date].members,
(s.CURRENT, [Measures].[Job Advert Value])
)
)
)
,
Measures.[Job Advert Value]
);
END SCOPE;
如果您將此行更改爲[[Time]。[Year - Week - Date]。[Date] .members' to thi s [[Time]。[Year - Week - Date] .CURRENTMEMBER' does not help – whytheq