I'm trying to nest PERIODROLLING time series functions in OBIEE 11g. The same can be done with AGO Example Ago: AGO(AGO("License Revenue"."Revenue (Constant Dollar)",1),1) Purpose : Find revenue of 1 quarter back using inner AGO. Then find 1 more quarter back (i.e. 2 quarter back). Example Period Rolling: PERIODROLLING(PERIODROLLING("License Revenue"."Revenue (Constant Dollar)", -3,0),-1,-1) Purpose: Find sum of last 4 quarters. Then find the revenue of 5th quarter from current quarter. Error Received: [nQSError: 42023] Illegal aggregate nesting in query. (HY000) Reason why am doing this: We will have nested columns. I.e. in one analysis one will use the inner PEROIDROLLING in col 'A' and in the other analysis we will have column 'B', which will be the outer PERIODROLLING on column 'A'. We currently have AGO columns nested, but we needed multiple AGO functions to sum up quarters. Which is hampering performance. We would like to use PERIODROLLING as it fires single SQL to find sum of multiple quarters. |