我想計算特定時間範圍的工作日,然後查找平均每日調度。目前時間範圍在WHERE語句。 我相信我已將日期範圍包含在第一個成員中,但我無法計算如何計算一個月範圍內的日期。 任何建議?計算工作日MDX
WITH MEMBER [Measures].[Working Days] AS
COUNT(Date.[Working Date].&[1])--Doesn't work
MEMBER [Measures].[Average Daily Dispatches] AS
[Measures].[Total Dispatches]/[Measures].[Working Days]
SELECT [Measures].[Average Daily Dispatches] ON 0
FROM [cube]
WHERE (
[Date].[Month].&[2015-01-01T00:00:00]:[Date].[Month].&[2015-08-01T00:00:00]
);
我們的答案是否有助於您找到解決問題的方法? – whytheq