我一直在試圖獲得通過MDX以下查詢的估值師列,而是越來越ValueW爲一體的MDX如何更新多維數據集,以獲得MDX做工精細
select
exp(Log(sum(MTMROR)+ 1))-1 as ValueW,
exp(sum(Log(MTMROR + 1)))-1 as ValueR
from
Temp_Performance
where Rundate in ('2015-03-01','2015-03-02')
MDX的書面輸出以上查詢是
With
Member [Measures].[LogValuePre]
as ([Measures].[MTMROR] + 1)
Member [Measures].[LogValuePre1]
as VBA![LOG]([Measures].[LogValuePre])
Member [Measures].[LogValue]
as VBA![Exp](Sum([Measures].[LogValuePre1]))-1
select
{
[Measures].[LogValuePre],
[Measures].[LogValuePre1],
[Measures].[LogValue]
} on 0,
{
[Dim Company Fund].[Company Fund Id].&[1274]
//* {[Dim Time].[Date].&[2015-03-01T00:00:00] : [Dim Time].[Date].&[2015-03-//02T00:00:00]}
} on 1
from
(
select {[Dim Time].[Date].&[2015-03-01T00:00:00] : [Dim Time].[Date].&[2015-03-02T00:00:00]} on 0
from [DSV_Cube]
)
[MTMROR] measure具有合計函數Sum。我能從這種行爲中得到什麼是MDX首先彙總結果,默認彙總函數是Sum。當我嘗試通過在行上設置日期維度(取消註釋日期維度)來查看具有更多粒度數據的值時,我會得到正確的日誌和exp日誌值。它顯示的日期維度的正確值在事實表中是最精細的級別。在嘗試以較小的粒度級別(基金級別)獲取數據時,會自動應用求和功能。
如果我在多維數據集結構中將AggregateFunction設置爲none,那麼我會將null作爲輸出。 如何在[MTMROR]度量中的求和函數之前應用對數函數?
感謝
「MTMROR」措施的構建與上述哪些維度相關,以及如何實現? – SouravA
@SouravA:事實MTMROR與兩個維度[Dim Company Fund]和[Dim Time]有關。這兩者都與事實相關,是正常的關係。 – 107
你能告訴我們一些樣品結果嗎? – SouravA