我可以爲此示例實現哪些mdx查詢邏輯,以獲得hrid = 1的結果集中的兩行,其中1/1/16爲最短日期(開始)行someattribut在值爲'A' 和1/15/16作爲第二行的最小日期(開始)的列上出現,其中someattribute的值爲'B',measure.whatevers將其聚合到與該維度對應的任何數據行。如何在mdx查詢中獲取列的最小或最大日期
我試着去只是看2016年1月
一切我用盡我似乎得到的1/1/1900分鐘日期值或兩列有2016年1月1日值或我得到的錯誤,因爲我不能想辦法。
我的繼承人MDX示例:
WITH MEMBER [Measures].[Start] as
(
-- min date that the combination of someattribute and hrid have certain
-- value withing the range of the where clause restriction of january 2016
SELECT {
[Measures].[Start]
, [Measures].[Whatevers]
} ON COLUMNS
, NON EMPTY {
[Agent].[HRID].children
* [Agent].[someAtribute].Members
} ON ROWS
FROM [RADM_REPORTING]
WHERE (
[Date].[Date View].[Month].&[201601]
)
「我什麼都嘗試過」 - 請讓我們看看你試圖 – whytheq
對不起很多不同的東西列出的許多隨機的微小變化。 –