Time Series Measure : ToDate
Hi experts,
I have been facing a problem,for which I need your help.
I want to calculate No. of Pending claims till date....
I am trying achieve it using ToDate Function.
ToDate(Cliam Fact.Pending Claim,Year)
But, If I select Year=1999 it will show result like this
Pivot View :
Jan-1999 Feb-1999 Mar-1999 ....................
Pending Claims 10 15 9
ToDate_Pending 10 25 34
I want to calculate pending claims before Jan-1999 also
for ex. till Dec-1998 : if pending claim count is 210
then for Jan-1999 it has to show ToDate_Pending =220..
Can we get this by applying ToDate function on TotalLevel of Period Dimension Hierarchy?
Or do you have any better suggestion for this problem.....
Plz, reply ASAP.
As I understand, it's not a YEAR to date, because you don't want the cumul start from 0 each year. Is it right ?
If so, just try a "running sum" in the pivot table.
You will have these results :
Dec-1998 / Janv-1999 / Fev-1999 / Mar-1999
210 / 220 / 235 / 244
Jan-1999 Feb-1999 Mar-1999 ....................
Pending Claims 10 15 9
ToDate_Pending 10 25 34
If you need to "break" in function of another dimension, then use the RSUM function with "by" (ex : Rsum(measure by Category_product) )
(or Rcount, depending on what is your aggregation of your measure).
Similar Messages
-
How can you build time series measures in OBIEE without using TODATE AGO fu
How can you build time series measures in OBIEE without using TODATE and AGO function?
Please provide steps to build time series
measures in OBIEE without using TODATE and
AGO function. Dashboard results not storing
in cache when using TODATE and AGO functions.
eventhough its cached users queries not
hitting cache because queries doesn't match
exact date time when using TODATE and AGO
functions. so I want to build queries using
sysdate and some simple calculations. Please
send your inputs/ideas for my questions..
Thanks in AdvanceThis can be using Msum function in answers. Use the following formula, here dollars is my metric. Change the formula based on your metric.
Msum("Sales Measures".Dollars ,2) - "Sales Measures".Dollars
the report will be cached and better performed compared with time series. check ti
- Madan Thota -
Greetings All,
I created two time series measures in a fact table using AGO and TODATE - e.g., last month sale and year to date sales
In Answer when I select one of these two fields the data returned are correct. However, when I select both fields in a report I am getting error: column does not exist in this table.
Is selecting two or more time series measures not allowed?
Here is the entire error msg:
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59014] The requested column does not exist in this table. (HY000)
SQL Issued: SELECT Calendar."Calendar Month Name" saw_0, "Sales Facts"."Amount Sold" saw_1, "Sales Facts"."Last Month Sales" saw_2, "Sales Facts"."Change From Last Month Sales" saw_3, "Sales Facts"."Month To Date Sales" saw_4 FROM SH WHERE Calendar."Calendar Year" = 2001 ORDER BY saw_0
Thanks for your help.Thanks for your response.
Yes, I have Calendar Month Name in Month level and it is indeed not unique. How do I remove it?
OBIEE version 10.1.3.3.1
I am using the tables from SH schema for testing.
The chronological key is Times Id which to the best of my knowledge is correct.
I tried the following:
Highlight Calendar Month Level > right click > Display Related > Logical Key > Edit > unchecked Use for drilldown.
Moved Calendar Month Name under Times Detail
After This change the Times dim levels are as follows:
Time Total
Year
Calendar Year
Calendar Year ID
Quarter
CalendarQuarter Desc
Calendar Quarter Id
Month
Calendar Month Desc
Calendar Month Id
Times Detail
Time Id
Calendar Month Name After this change,
(1) I can select Calendar Month Desc, Last Month Sales and Month to Date sales and the results are correct.
(2) However, when I add Amount Sold to the query in (1), I am getting error with following msg:
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 16001] ODBC error state: S0002 code: 942 message: [Oracle][ODBC][Ora]ORA-00942: table or view does not exist. [nQSError: 16001] ODBC error state: S0002 code: 942 message: [Oracle][ODBC][Ora]ORA-00942: table or view does not exist. [nQSError: 16015] SQL statement execution failed. (HY000)
SQL Issued: SELECT Calendar."Calendar Month Desc" saw_0, "Sales Facts"."Amount Sold" saw_1, "Sales Facts"."Last Month Sales" saw_2, "Sales Facts"."Month To Date Sales" saw_3 FROM SH WHERE Calendar."Calendar Year" = 2001 ORDER BY saw_0
(3) In (1) Replace Calendar Month Desc with Calendar Month Name and the numbers for Month To Date Sales are not correct.
Any suggestion?
Thanks.
Message was edited by:
rxshah -
Dear BO Gurus,
I am a newbie to business object. I would like to ask are there any ready made time series functions which can be used in the BO Semantic layer (universe).
Like Year to Date, Year Ago. Functions like TODATE and AGO functions found in OBIEE semantic layer (siebel analytics). It was just simple there, I had to use the function on the semantic layer and BI server would raise the query to get the answer.
The syntax was
Todate(measure, time_dim_attribute)
Ago(measure, Time_Dim_Attribute, period)
Thanks & Regards
IshaqDear Gurus,
There is no DB function in oracle to do this (AGO/TODATE).
OBIEE issues time-series queries, in the form of AGO and TODATE. AGO gives you, for example, the value of sales one month ago or one quarter ago, whilst TODATE gives you the total of sales month-to-date, or quarter-to-date, or year-to-date. Both of these time-series functions rely on the existence of a time dimension in your business model and mapping layer, with the period you can refer to in the AGO and TODATE functions being determined by what levels you have in this time dimension.
This eliminates the need to create and store complex time-based
reporting tables.
I would only like to know does the universe designer has this sort of functionality which is present in OBIEE semantic layer. Or I need to create and store time-based reporting tables.
The question can best be answered by some-one has worked on both the BI platforms (OBIEE and BO).
Thanks & Regards
Ishaq -
Time series function TODATE is VERY slow
While creating a report with data at different aggregation levels I run into serious performance problems. The situation is as follows. The datamart consists of a basic star with one fact table, containg sales amounts and three dimensions:
- Product
- Store
- Time
Dimension Time has a hierarchy: BookYear --> Period --> Week
I created a measure: "MyModel"."T_SALES"."SalesAmount"
I also created a derived measure to calculate the sales as a year to date. In this case for period this is a week to period measure (week is the lowest time level) PeriodSalesWtD: TODATE( "MyModel"."T_SALES"."SalesAmount", "MyModel"."Dim_Time"."BookPeriod")
This query is VERY slow.
In Oracle Answers I select only one week (200806) for which I want to see the SalesAmount for:
- that week
- the period that week is in up to that week (200802)
- the year that week is in up to that week (2008)
- Only a specific product group number (3). Otherwise the query won't ever return...
OBIEE issues the following queries to the database:
Query 1:
select T2392.DEPBKWK as c3,
T2392.DEPBKJR as c4,
T2392.DEPBKPR as c5
from
W_TIJDDIM T2392
order by c4, c3
This query reads all records from the time dimension table, columns week, year and period. I do not understand why it does not filter on the weeknumber (200806).
Query 2:
select T2313.DEVRIWD as c1,
T2313.TIJDKEY as c5
from
W_ARTDIM T2032,
W_OMZWEEK T2313
where ( T2032.DEIKANR = 3 and T2032.ARTKEY = T2313.ARTKEY )
order by c5
This returns per time dimension key (c5) all SalesAmounts (c1). I do not understand why this is not aggregated nor filtered on the requested weeknumber.
Query 3:
select T2392.TIJDKEY as c3,
T2392.DEPBKJR as c4,
T2392.DEPBKWK as c5
from
W_TIJDDIM T2392
order by c4, c5
This query reads all records from the time dimension table, just like query 1, but now key, year and week. I do not understand why it does not filter on the weeknumber (200806).
Query 4:
select T2392.DEPBKPR as c3,
T2392.DEPBKWK as c4,
T2392.DEPBKJR as c5
from
W_TIJDDIM T2392
order by c3, c4
Once more the time dimension is read, but this time the columns period, week and year. Cannot see why the time dimension is queried three times.
Query 5:
select T2313.DEVRIWD as c1,
T2313.TIJDKEY as c5
from
W_OMZWEEK T2313,
W_ARTDIM T2032
where ( T2032.DEIKANR = 3 and T2032.ARTKEY = T2313.ARTKEY )
order by c5
Gets SalesAmounts (not aggregated, why?) per time key.
Query 6:
select T2392.TIJDKEY as c3,
T2392.DEPBKPR as c4,
T2392.DEPBKWK as c5
from
W_TIJDDIM T2392
order by c4, c5
Again the time dimension is read completely, now returning time key, period and week.
Query 7:
select sum(T2313.DEVRIWD) as c1,
T2392.DEPBKWK as c2,
T2392.DEPBKPR as c3,
T2392.DEPBKJR as c4,
T2392.DEPBKWK * -1 as c5,
T2392.DEPBKPR * -1 as c6,
T2392.DEPBKJR * -1 as c7
from
W_ARTDIM T2032,
W_TIJDDIM T2392,
W_OMZWEEK T2313
where ( T2032.DEIKANR = 3 and T2392.DEPBKWK = 200806 and T2032.ARTKEY = T2313.ARTKEY and T2313.TIJDKEY = T2392.TIJDKEY )
group by T2392.DEPBKWK * -1, T2392.DEPBKPR * -1, T2392.DEPBKJR * -1, T2392.DEPBKWK, T2392.DEPBKPR, T2392.DEPBKJR
order by c2
Overlooking all of these queries, I can understand why this is slow, but what to do about it??? Any help will be appreciated.
Message was edited by:
Paul LamanThere are examples of this in the OBIA applications. What you need to do is to do a range join to the time dimension ie txn_date between first_day_of_year and the report_Date. However you need to map along every level of the time dimension since a query request at a higher level will not return correct results by mapping to the base table always. Hence you need to map day - month - qtr - year as separate Logical table sources.
-
Obiee essbase time series calc todate returns 0
1) when I enter todate in answers column formula I alwaus get systen error on time level? Works fine in rpd.
2) My period dimension is Dec through Jan. What is the current month when I use todate()
3) I'm trying to do a year to date calc based on a substition variable any suggestions?Does a month have always the same number of week and begin with the first day of a week ?
If it's not the case, your dimension is not good when you make a report on the week grain for a year ago for instance.
Here a check list:
http://gerardnico.com/wiki/dat/obiee/ago_todate_configuration#timecalender_dimension_design_verification
Success
Nico -
Doubts regarding Time Series Measures
Hi,
In my instance i have two calendars
1) Enterprise(or) Fiscal Calendar (Aug to July)
2) Gregorian Calendar (Jan to Dec).
So now my question is if we apply To Date function using Both Calendars how will it work.
For ex: If i create an Year To Date function using Gregorian Calendar then it will fetch results from Jan 1st to Till Date. And same if i used Enterprise Calendar then it will fetch results from Aug 1st to Till Date.
Is my above understanding correct. Correct me if am wrong any where.
And now i have one more requirement, My client wants to change the dates in the calendar i mean for Fiscal Calendar they dont want from (Aug to July) but From (Dec to Dec) is this possible, if so please clarify how and where..
Help is greatly appreciated.Raj,
For your requirement I wrote a procedure in which for the date '01-jan-2010' it converts to the financial year of '26-Dec-2009' and the same is updated inside your calendar_table in the column fis_dat based on which you can easily find your fiscal_year, month and so on. The same can be much simplified and i ll update if find time.... Check and revert me back.
Create or replace procedure fin_cal
as
begin
DECLARE
temp_date date;
fisc_date date;
temp_fisc_date date;
previous_date date;
pre_year int;
year_date int;
cursor c1 is select trunc(date_time) from dates1 where time_key >= 20100101 and time_key <= 20120101 order by trunc(date_time); // calculated from 1st jan 2010 -2012
begin
open c1;
loop
fetch c1 into temp_date;
exit when c1%notfound;
year_date:=to_number(to_char(to_date(temp_date,'dd-mm-yy'),'yyyy'));
pre_year:=year_date-1;
if to_char(temp_date,'dd')='01' and to_char(temp_date,'mm')='01' then
fisc_date:=to_date(pre_year||'12-24','YYYY-MM-DD'); // the initial date is 24-12-prioryear...
dbms_output.put_line(fisc_date);
update dates1 set fis_dat=fisc_date where trunc(date_time)= trunc(temp_date);//fis_dat is the column in the table
else
select fis_dat into previous_date from dates1 where trunc(date_time)=trunc(temp_date)-1;
temp_fisc_date:=TO_DATE(TO_CHAR(previous_date,'YYYY-MM-DD'),'YYYY-MM-DD') + 1;
update dates1 set fis_dat=temp_fisc_date where trunc(date_time)= trunc(temp_date);
temp_fisc_date:='';
end if;
end loop;
end;
end;
begin
fin_cal();
end;
Regards,
Anitha.B -
Reversing Time series functions (todate)
I inherited reports with columns locked on YTD values, I cant get eg monthly sales from a report because of this. I want to find a way of finding where exactly the previous developer made these adjustments that have affected all my reports. I tried going into the logical layer(BMM) and duplicating columns and removing aggregations but no changes in answers. I need a few tips on how i can go from here... is there anyone who has encountered such, or has an idea of where to start... help needed ASAP! thanks!
Hi,
Can you elabrate more..with some screen short/example.
fyi..YTD calc -->date expression ..
http://obieeelegant.blogspot.com/2011/06/obiee-date-expressions-reference.html
Last year last day.
e.x:
"GPC_DataMart"."GPC_DataMart"."dbo"."LY_Position"."Business_Date"=
TIMESTAMPADD( SQL_TSI_DAY , -1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM "GPC_DataMart"."GPC_DataMart"."dbo"."MT_BUSINESS_DATE"."Business_Date") * -(1) + 1, "GPC_DataMart"."GPC_DataMart"."dbo"."MT_BUSINESS_DATE"."Business_Date"))
Thanks
Deva -
Time series functions are not working for fragmented logical table sources?
If i remove that fragmented logical table sources, then its working fine.
if any body know the reason, please let me know.
thanks and regards,
krishnaHi,
is because the time series function are not supported for the framentation content, see the content of the oracle support:
The error occurs due to the fact the fragmented data sources are used on some Time series measures. Time series measures (i.e. AGO) are not supported on fragmented data sources.
Confirmation is documented in the following guide - Creating and Administering the Business Model and Mapping Layer in an Oracle BI Repository > Process of Creating and Administering Dimensions
Ago or ToDate functionality is not supported on fragmented logical table sources. For more information, refer to “About Time Series Conversion Functions” on page 197.
Regards,
Gianluca -
Time series functions are not working in OBIEE for ESSBASE data source
Hi All,
I am facing a problem in OBIEE as I am getting error messages for measure columns with Time series functions(Ago,ToDate and PeriodRolling) in both RPD and Answers.
Error is "Target database does not support Ago operation".
But I am aware of OBIEE supports Time Series functions for Essbase data source.
using Hyperion 9.3.1 as data source and obiee 11.1.1.5.0 as reporting tool.
Appreciate your help.
Thanks,
AravindHi,
is because the time series function are not supported for the framentation content, see the content of the oracle support:
The error occurs due to the fact the fragmented data sources are used on some Time series measures. Time series measures (i.e. AGO) are not supported on fragmented data sources.
Confirmation is documented in the following guide - Creating and Administering the Business Model and Mapping Layer in an Oracle BI Repository > Process of Creating and Administering Dimensions
Ago or ToDate functionality is not supported on fragmented logical table sources. For more information, refer to “About Time Series Conversion Functions” on page 197.
Regards,
Gianluca -
Combining Time series functions, is it possible?
Hello
I have a requirement where I have to create time series measures. The Todate function and the ago function is pretty straightforward, however, it is required to also have last year Month to date, last year quarter to date measure, is it possible?
For example, for quantity sold measure, I have created MTD, YTD Quantity Sold and Year Ago Quantity Sold. Now when running report on for July 2010, we will get the total Quantity return between Jan to July of 2010, and based on that, it is required to also view the total Quantity Sold of the same period (Jan 2009 to July 2009)of 2009. Is it possible for this?
Another challenge i am dealing with is that if the current date is not the end of the month, let's say Oct 10th 2010. Since it has only been 1 week of Oct, they want to also get 2009's first week of Oct instead of the entire Oct of 2009. In this case, how is it implemented?
Any advice will be greatly appreciated
Thanksit is required to also have last year Month to date, last year quarter to date measure, is it possible?Yes, possible with time series functions..
for calculating prior ytd,
ToDate(Ago(measure, YearLevel, 1), YearLevel) last year Month to date:
try this(din't test, but give a try)
ToDate(Ago(measure, YearLevel, 1), MonthLevel)last year quarter to date:
ToDate(Ago(measure, YearLevel, 1), QuarterLevel)btw, need to close your threads if answered...
Edited by: Kishore Guggilla on Oct 26, 2010 11:31 PM -
Time Series Wizard in OBIEE 10.1.3.3
How do I accomplish the TIME SERIES WIZARD functionality that was present in Siebel Analytics 7.7 in OBIEE 10.1.3.3. This comparison measure feature seems to be removed in OBI.
Any inputs will be greatly appreciated.
Thanks.There are several problems with the OBE given in the first url (http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.html#t11)
(1) pre-built repository and other files (e.g., SH_PartTwo.rpd, SHQuota.xls) cited in the example are not included with download- at least not with 10.1.3.3.1 version I downloaded. When followed instructions to open SH.rpd (included in the download of 10.1.3.3.1) gave error and could not open it. (My DB version is 10.2, op system XP professional)
(2) Looks like this OBE is a newer version - under Build Diemension Hierarchies the steps 33 (Customer dim), 34 (Promotion Dim) and 35 (Time Diemension) have been removed. This is good because in the older version of this OBE the time dimension (given in step 35) was wrong.
(3) In Create Time Measure section cannot select month ago sales and month to date sales columns together in a query. When selected together gave error: pls refer to this thread -
Time Series Measures
Hopefully the current version of this OBE will be updated with an example that has steps to create time dimensions (Calendar and Fiscal) and other steps so that columns created with AGO and TODATE functions can be selected together in a query.
Thanks.
Message was edited by:
rxshah -
Hi All,
We have created Time Series Measures using TODATE and AGO functions.
In Answers while creating reports if we just bring measure (# SR's MAGO) we are getting result as below
# SR's MAGO
12
13
We have data for 2 years.
is this the expected behavior of this measure, we are understood that we will get only one row of data.
Regards,
SomuHey..
Tell first.. is that measure assigned to any hierarchy level?
Have you seen the query generating by BI Server?
It involves that particular ID of the hierarchy level. and also in group by..
take that query and run in TOAD or any tool..
You find.. the same result there also..
I think this is enough to prove you the behavior..
Thanks & Regards
Kishore Guggilla
Edited by: Kishore Guggilla on Jan 7, 2009 3:28 PM -
Perf issues with Time series function in OBIEE
Attached is the SQL:
SELECT SUM (T256675.ACTIVITY_GLOBAL2_AMT) AS c1,
SUM (T256675.ACTIVITY_GLOBAL3_AMT) AS c2
FROM X_FINANCIAL_HIERARCHY_DH T610485 /* Dim_X_GLACCT_ALTVIEW_D */,
X_FINANCIAL_HIERARCHY_DH T610414 /* Dim_X_MGMT_ENTITY_D */,
W_GL_ACCOUNT_D T256463 /* Dim_W_GL_ACCOUNT_D */,
W_GL_BALANCE_F T256675 /* Fact_W_GL_BALANCE_F */,
SAWITH3,
SAWITH6
WHERE ( T256463.ROW_WID = T256675.GL_ACCOUNT_WID
AND T256463.X_FIN_HIER1_WID = T610485.ROW_WID
AND T256463.X_FIN_HIER5_WID = T610414.ROW_WID
AND T256675.BALANCE_DT_WID = SAWITH3.c3
AND SAWITH6.c1 = SAWITH3.c1
AND T610414.ACCOUNT_HIER8_NAME = 'Worldwide'
AND T610414.HIERARCHY_SOURCE = 'EntityMgmt'
AND T610485.ACCOUNT_HIER7_NAME = 'Controllable Expenses'
AND T610485.HIERARCHY_SOURCE = 'AltViews'
AND SAWITH6.c3 = '2009 / 11'
AND SAWITH6.c2 >= SAWITH3.c2
The SAWITH3 and SAWITH6 dimensions using time series fuctions are causing a full table scan on W_GL_BALANCE_F and W_GL_ACCOUNT_D . Though we are interested in just getting 2009/11 data; the queries generated by time series function TODATE is taking us against entire W_DAY_D data and is causing several performance issues.
W_GL_BALANCE_F table has index on GL_ACCOUNT_WID and BALANCE_DT_WID.
How can we force to use index on these columns for better performance.
Please advise us on the right approach to improve performance.
SQL for SAWITH3
===========
WITH SAWITH0 AS
SELECT T31328.ROW_WID AS c3, T31328.PER_NAME_FSCL_QTR AS c4,
ROW_NUMBER () OVER (PARTITION BY T31328.PER_NAME_FSCL_QTR ORDER BY T31328.PER_NAME_FSCL_QTR DESC)
AS c5,
T31328.PER_NAME_FSCL_MNTH AS c6,
ROW_NUMBER () OVER (PARTITION BY T31328.PER_NAME_FSCL_QTR, T31328.PER_NAME_FSCL_MNTH ORDER BY T31328.PER_NAME_FSCL_QTR DESC,
T31328.PER_NAME_FSCL_MNTH DESC) AS c7
FROM W_DAY_D T31328 /* Dim_W_DAY_D_Common */),
SAWITH1 AS
SELECT CASE
WHEN CASE SAWITH0.c5
WHEN 1
THEN SAWITH0.c3
ELSE NULL
END IS NOT NULL
THEN RANK () OVER (ORDER BY CASE SAWITH0.c5
WHEN 1
THEN SAWITH0.c3
ELSE NULL
END ASC NULLS LAST)
END AS c1,
CASE
WHEN CASE SAWITH0.c7
WHEN 1
THEN SAWITH0.c3
ELSE NULL
END IS NOT NULL
THEN RANK () OVER (PARTITION BY SAWITH0.c4 ORDER BY CASE SAWITH0.c7
WHEN 1
THEN SAWITH0.c3
ELSE NULL
END ASC NULLS LAST)
END AS c2,
SAWITH0.c3 AS c3, SAWITH0.c4 AS c4, SAWITH0.c6 AS c5
FROM SAWITH0),
SAWITH2 AS
SELECT MIN (SAWITH1.c1) OVER (PARTITION BY SAWITH1.c4) AS c1,
MIN (SAWITH1.c2) OVER (PARTITION BY SAWITH1.c4, SAWITH1.c5)
AS c2,
SAWITH1.c3 AS c3
FROM SAWITH1),
SAWITH3 AS
SELECT DISTINCT SAWITH2.c1 + 5 AS c1, SAWITH2.c2 AS c2,
SAWITH2.c3 AS c3
FROM SAWITH2),
SQL for SAWITH6
===========
SAWITH4 AS
SELECT T31328.PER_NAME_FSCL_MNTH AS c3, T31328.ROW_WID AS c4,
T31328.PER_NAME_FSCL_QTR AS c5,
ROW_NUMBER () OVER (PARTITION BY T31328.PER_NAME_FSCL_QTR ORDER BY T31328.PER_NAME_FSCL_QTR DESC)
AS c6,
ROW_NUMBER () OVER (PARTITION BY T31328.PER_NAME_FSCL_QTR, T31328.PER_NAME_FSCL_MNTH ORDER BY T31328.PER_NAME_FSCL_QTR DESC,
T31328.PER_NAME_FSCL_MNTH DESC) AS c7
FROM W_DAY_D T31328 /* Dim_W_DAY_D_Common */),
SAWITH5 AS
SELECT CASE
WHEN CASE SAWITH4.c6
WHEN 1
THEN SAWITH4.c4
ELSE NULL
END IS NOT NULL
THEN RANK () OVER (ORDER BY CASE SAWITH4.c6
WHEN 1
THEN SAWITH4.c4
ELSE NULL
END ASC NULLS LAST)
END AS c1,
CASE
WHEN CASE SAWITH4.c7
WHEN 1
THEN SAWITH4.c4
ELSE NULL
END IS NOT NULL
THEN RANK () OVER (PARTITION BY SAWITH4.c5 ORDER BY CASE SAWITH4.c7
WHEN 1
THEN SAWITH4.c4
ELSE NULL
END ASC NULLS LAST)
END AS c2,
SAWITH4.c3 AS c3, SAWITH4.c5 AS c4
FROM SAWITH4),
Thanks
Srini PendemHi Srini,
I've had quite a bit of performance issues with ToDate and Ago. I tended to create materialized views on my fact tables that would materialize those values as columns and that way I would avoid having to use the ToDate or Ago functions. Is there any chance you can implement a similar solution and bypass the time series functions entirely?
Just to check, those tables belong to BI Apps, right? If so, you can log an SR about the performance issue since it's an issue with the model that Oracle sold you.
Good luck!
-Joe -
I have added a time series measure in RPD
Year Ago Sales = AGO("Enterprise Analytics"."Facts Sales Fact"."Sales Le $" , "Enterprise Analytics"."Hierarchy Time"."Fiscal Year" , 1)
If I pull 'Year Ago Sales' in Answers it takes forever to run it - ( 5-6 minute) - The result is correct.
If I simply pull - "Enterprise Analytics"."Facts Sales Fact"."Sales Le $" - runs in 5 seconds.
Is thier any way I can optimize the timeseries functions?
Any response would be greatly appreciated!!
We are on Oracle Business Intelligence 11.1.1.6.5 version.
Edited by: ann 2012 on Mar 14, 2013 2:13 PM1. Create an alias fact table (Year Ago) to pull last year value.
2. Extend your fact table to store another measure (last year sales)
3. Based on volume of granular data and query pattern on year ago measures, you may create aggregate fact tables.
hope this helps.
Maybe you are looking for
-
I have a new computor with Windows 8 and an old nano I Pod, I Tune does not reconise this, what can I do without losing all my music?
-
Flashing red light on my ACS 4.1
Hello, I have a flashing red light on my ACS. I have searched on Cisco.com to see what this meant and how I can fix it. I am aware that it is a critical error on the system health for my ACS. But what exactly does that mean? How can I figure out what
-
ORA-011-2 cannot mount database in Exclusive mode
This is brand new both Oracle 10g and SUSE 9.3 install. The installation went fine, no errors. At the end I tried to verify the installation: sqlplus /nolog SQL>connect / as sysdba Connected to an idle instance SQL>startup ORA-01078: failure in proce
-
Hi, I need to trigger the workflow whenever the document gets parked in the system. The document parking can be done manually or via idocs. If it is manually parked, the workflow gets triggered via FIPP. But if it is parked through IDOCS, the FIPP ev
-
Excuse me if I dont speak very very well in english. I'm from Québec. Go to the important thing my ipod doesn't want open the a symbol appears in the screen it a USB plug with a arrows pointing the Itunes logo