0
我們有一個問題需要在mdx查詢中比較日期維度成員和一些任意日期常量。將日期維度的成員與常量進行比較
我想比較日期維成員。
我們從用戶那裏獲取一個任意常量,並且需要對某個維度進行過濾,並與該值進行比較,但不知道該維度中的確切值,這意味着該值不必屬於該維度的成員列表(因爲我們沒有在時間維度上的所有成員。)
我們的查詢工作不正常:
SELECT
{[Measures].[Trade Cnt] } ON 0,
bottomcount(FILTER([VW Dim Customer Broker Branch].[Reception Date].[Reception Date],
[VW Dim Customer Broker Branch].[Reception Date].Currentmember.MemberValue < '2009-08-10T00:00:00'),1) ON 1
FROM
[DV Present]
什麼是你的日期格式? [VW Dim Customer Broker Branch]。[接待日期]。[2009-08-10T00:00:00]? –
它爲你帶來什麼回報? –