Last Year MTD/YTD Column Without Using Time Series Function
I need to calculate MTD and YTD of last year without using time series function.
My requirement is like:
We are working on Fiscal year.
Suppose user will select a date: 15-Jan-2013
Use a period table with Period Ago attributes and join these to an alias of your fact table. In other words, use a period table (let's say Day is grain) that would have
WAgo, QAgo, YAgo, (etc.) attributes for each day. Join this table to aliases of the fact tables on these columns.
Thanks.
Similar Messages
-
How to find the year ago measure with out using time series functions
hi all
is there any way to find year ago sales with out using time series functions like ago
Thanks
SreedharHello Madan,
Thanks for the reply.
It still doesn't consider the product into account.
My columns are as below
Prod Week End DATE Current Sales Prior Sales % Change
A 12/4/2010 100 0
A 12/11/2010 200 100
A 12/18/2010 300 200
B 12/4/2010 400 300(this value is not for prod B, i want this to b 0 aswell. But we get product A's last sale amount)
Is there any way this can be done. I have tried evaluate,MSUM.
I cannot build a time dimension as all I have is a view.
Thanks,
Deep -
Drilldowns on measure columns based on time series functions.
Guys,
I am new to OBIEE and i need your Help!! I have a dashbaord report which shows the sales USD for the colums below.
REGION , PRIOR MONTH , CURRENT MONTH PRIOR YEAR , CURRENT MONTH PRIOR YEAR MTD , CURRENT MTD , ACTUALS YTD.
All the measures are logical columns caluculated in the RPD using the Time Series Functions. The dasboard report has a Prompt Calender Date and all the measure values are caluclated based on the date entered in the prompt.
For example if the Calender Date on the prompt is 5/31/2011 then the value for the PRIOR MONTH will the sales for APR-2011 and the value for CURRENT MONTH PRIOR YEAR will be MAY-2010 and so on.
The business requirement is to provide the drill down capability on these measure columns. When i click the sales number on the prior month column it should give me all the detailed transactions for the month of APR-2011 considering the prompt for calender date is 31-MAY-2011.
I have provided drilldowns based on the Navigation using the column interatcion but i am unable to understand how to provide the drilldown on the measure columns using the time series functions to caluclate the sales for PRIOR MONTH. CURRENT MONTH PRIOR YEAR...etc.
Please Help!!!
Thanks,
Sandeep.1. 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. -
How to use time series functions for this requirement
we are on OBIEE 11g (11.1.1.5)
Any pointers and links are really helpful.
I have a requirement where YTD sales are displayed in a column. We wan to compare that number to what that number was last year at the same time. Tried to use TODATE, AGO and it did not work.
|| used for column seperation below.
ProductGroup || YTD Sales Rev||YTD Sales Rev 1 Year Ago||YTD Sales Rev 2 Years Ago
Climate Solutions || 1.7 mil (1/1/2011 - 7/1/2011) || 1.45 mil (1/1/2010 - 7/1/2010) || 1.15 mil (1/1/2009 - 7/1/2009)
Thanks in advance
kris
Edited by: user566193 on Aug 10, 2011 6:06 PMKris,
Basically you want to combine the 2 time series functions here i.e. TODATE & AGO.
Here you go..
You can create first a YTD logical column in BMM say YTD Sales Rev..Then create another logical column with calculation as AGO(YTD Sales Rev, YEARDIM, 1) or AGO(YTD Sales Rev, MONTHDIM, 12).
Similarly, you create other measures...OBIEE 11g has time series function in Answers as well but I'd say try to create using RPD as you to calculate 1 logical column based on another. Better to push it on RPD side.
Hope this helps -
Nested aggregation using time series functions
Hi All,
I have a requirement where i need to find the growth using below formula
(A-B)/B
A=PERIODROLLING(x,-3,0)
B=PERIODROLLING(AGO(x,QUARTER,1),-3,0)
where x is a measure
I see that OBIEE doesn't support nested aggregates on time series function is there any other way this can be achieved
Thanks in advance,
KSS
Edited by: K.S.S on Mar 19, 2013 2:53 AM
Edited by: K.S.S on Mar 19, 2013 2:54 AMsame functionality was achieved using below formula
(A-B)/B
A=PERIODROLLING(x,-3,0)
B=PERIODROLLING(x,-4,-1) -
Using Time Series Functions in Answers 11g
Hi All,
I am using OBIEE v11.1.13, I want to use Time series AGO function in Answers level, its syntax is:
AGO(expr, level, interval)
for level part: should i only give the <name of the level in the hierarchy>, is it compulsary that i should introduce the Hierarchy to presentation layer?
Thanks,
Richafor level part: should i only give the <name of the level in the hierarchy>, is it compulsary that i should introduce the Hierarchy to presentation layer?Hierarchy shud be present at presentation layer so that you can select the level from there and work on Time Series functions in answers.
-
Scatter plot using time series function - Flash charting
Apex 3 + XE + XP
I am trying to build a time series scatter plot chart using flash chart component.
Situation :
On each scout date counts are taken within each crop. I want to order them by scout dates and display them in a time series chart. Each series represents different crop.
I am posting the two series queries I used
Queries:
Series 1
select null LINK, "SCOUTDATES"."SCOUTDATE" LABEL, INSECTDISEASESCOUT.AVERAGECOUNT as "AVERAGE COUNT" from "COUNTY" "COUNTY",
"FIELD" "FIELD",
"VARIETYLIST" "VARIETYLIST",
"INSECTDISEASESCOUT" "INSECTDISEASESCOUT",
"SCOUTDATES" "SCOUTDATES",
"CROP" "CROP"
where "SCOUTDATES"."CROPID"="CROP"."CROPID"
and "SCOUTDATES"."SCOUTID"="INSECTDISEASESCOUT"."SCOUTID"
and "CROP"."VARIETYID"="VARIETYLIST"."VARIETYLISTID"
and "CROP"."FIELDID"="FIELD"."FIELDID"
and "FIELD"."COUNTYID"="COUNTY"."COUNTYID"
and "INSECTDISEASESCOUT"."PESTNAME" ='APHIDS'
and "VARIETYLIST"."VARIETYNAME" ='SUGARSNAX'
and "COUNTY"."COUNTNAME" ='Kings' AND CROP.CROPID=1
order by SCOUTDATES.SCOUTDATE' ASC
Series 2:
select null LINK, "SCOUTDATES"."SCOUTDATE" LABEL, INSECTDISEASESCOUT.AVERAGECOUNT as "AVERAGE COUNT" from "COUNTY" "COUNTY",
"FIELD" "FIELD",
"VARIETYLIST" "VARIETYLIST",
"INSECTDISEASESCOUT" "INSECTDISEASESCOUT",
"SCOUTDATES" "SCOUTDATES",
"CROP" "CROP"
where "SCOUTDATES"."CROPID"="CROP"."CROPID"
and "SCOUTDATES"."SCOUTID"="INSECTDISEASESCOUT"."SCOUTID"
and "CROP"."VARIETYID"="VARIETYLIST"."VARIETYLISTID"
and "CROP"."FIELDID"="FIELD"."FIELDID"
and "FIELD"."COUNTYID"="COUNTY"."COUNTYID"
and "INSECTDISEASESCOUT"."PESTNAME" ='APHIDS'
and "VARIETYLIST"."VARIETYNAME" ='SUGARSNAX'
and "COUNTY"."COUNTNAME" ='Kings' AND CROP.CROPID=4
order by SCOUTDATES.SCOUTDATE' ASC
Problem
As you can see the observations are ordered by scout date. However when the chart appears, the dates dont appear in order. The chart displays the data from crop 1 and then followed by crop 4 data, which is not exactly a time series chart. Does flash chart support time series or they have no clue that the data type is date and it should be progressive in charting ? I tried to use to_char(date,'j') to converting them and apply the same principle however it did not help either.
Any suggestions ?
Message was edited by:
tarumugam
Message was edited by:
aruArumugam,
All labels are treated as strings, so APEX will not compare them as dates.
There are two workarounds to get all your data in the right order:
1) Combine the SQL statements into single-query multi-series format, something like this:
select null LINK,
"SCOUTDATES"."SCOUTDATE" LABEL,
decode(CROP.CROPID,1,INSECTDISEASESCOUT.AVERAGECOUNT) as "Crop 1",
decode(CROP.CROPID,4,INSECTDISEASESCOUT.AVERAGECOUNT) as "Crop 4"
from "COUNTY" "COUNTY",
"FIELD" "FIELD",
"VARIETYLIST" "VARIETYLIST",
"INSECTDISEASESCOUT" "INSECTDISEASESCOUT",
"SCOUTDATES" "SCOUTDATES",
"CROP" "CROP"
where "SCOUTDATES"."CROPID"="CROP"."CROPID"
and "SCOUTDATES"."SCOUTID"="INSECTDISEASESCOUT"."SCOUTID"
and "CROP"."VARIETYID"="VARIETYLIST"."VARIETYLISTID"
and "CROP"."FIELDID"="FIELD"."FIELDID"
and "FIELD"."COUNTYID"="COUNTY"."COUNTYID"
and "INSECTDISEASESCOUT"."PESTNAME" ='APHIDS'
and "VARIETYLIST"."VARIETYNAME" ='SUGARSNAX'
and "COUNTY"."COUNTNAME" ='Kings'
AND CROP.CROPID in (1,4)
order by SCOUTDATES.SCOUTDATE ASC2) Union the full domain of labels into your first query. Then the sorting will be applied to the full list, and the values of the second series will be associated with the matching labels from the first.
- Marco -
Display Issues Using Time Series Function
I have created a time dimension (Total Time > Year > Quarter > Month) and created QTD, YTD, QTD_AGO, and YTD_AGO metrics. I join a materialized view with revenue metrics to property dimension and calendar dimension with grain of year-month.
When I build the following report A, all data is present for 20 markets:
A - Market (property dim) , Unit Count (property dim), QTD Revenue (fact)
When I build the following report B, all data is present for 20 markets:
B - Market (property dim) , Unit Count (property dim), QTD_AGO (fact)
When I build the following report C, I am missing unit count for 3 markets of the 20 markets:
C - Market (property dim) , Unit Count (property dim), QTD Revenue (fact), QTD_AGO (fact)
If I remove one of the markets that properly displays from report C, all unit counts appear. If I display just the 3 markets missing unit counts, their unit counts appear.
I have tried several redesign approaches, looked for data issues, cleared cache, waited for data to refresh, and I can’t get this to work. Would the materialized view cause any issues? ANY ideas/suggestions are MOST appreciated!
Note – OBI 10g on Oracle databaseHi
If time dimension lowest granularity is month then how can you get data at day level that is Quarter to Date??
set the fact LTS content tab at proper dim levels.
and set the chronological ket at lowest level and other levels based on your req.
Thanks
Jay. -
Time series function - everything UP TO start of year
Hi,
I have a requirement to do the following in OBIEE 11.1.1.6.9 however am having some trouble. Basically we have an analytic which is filtered for the current fiscal year for financial actuals:
So running gives us something like:
Year Amount
2013 £1000Now what I need to do is show a single column which represents the actuals for all years prior to the one selected.
So for example, if I had the following dataset:
Year Amount
2010 £500
2011 £500
2012 £750
2013 £1000...and I filtered by year 2013, I would want to see:
Year Amount Previous Years Total
2013 £1000 £1750I wont know how may years this can go back (ie, could be many and variable) so can't just add up successive AGO() statements. I know I could not filter on 2013 directly and then use "FILTER(amount) using year" on the first column, but that seems very inefficient, especially seeing as the actual analytic contains a lot of other columns which would all need to have the same done.
If anyone can shed any light on how this might be done using time series functions then I'd really appreciate it.
Thanks,
John.No requirements are the same :). The analytic is restricted to a single year (i.e. to show that years actuals), but I need to show also everything which occurred in the previous YEARS since the beginning of time. So take for example I have a project XYZ which is being costed on a year by year basis. My requirement is to show something like:
Year Proj Prev Curr TTL
2013 XYZ £100,000 £1000 £101,000So I've spend £1000 this year, but £100,000 in all previous years. To I know that to date this project has cost me £101,000. Hope that makes a little more sense! -
Use of time series functions with horizontally fragmented fact tables
Hi Guys,
in OBIEE 10g it wasn't possible to use time series functions [AGO, TO_DATE] on horizontally fragmented fact tables. This was due to be fixed in 11g.
Has this been fixed? Has somebody used this new functionality? What the the limitations?
Tkx
EmilHello,
Can you give us some examples for "horizontally fragmented fact tables", we can tell you whether we can do that or not?
Thanks, -
Strange Question on Time Series Function
Hi All,
I find a strange question when i use time series function. The result of report like this:
-----year area revenue year_ago_revenue
1、 2009 a 100
2、 2009 b 100
3、 2010 a 200
4、 2010 b 200 100
the last column's value of row 3 is null, but it must be 100, I execute the physical sql in log file in database, the result is 100, but show null in report, why? I really can't understand. Any one know why? Thanks.For the report which is working correct, what level of information you are seeing? In that report whether the Year Ago is working correctly.
In time hierarchy, how did you set the chronological keys?
Thanks,
Vino
Edited by: Vinodh NK on Jul 23, 2010 2:56 AM -
Time Series Function not doing it right
Hello guys
I have setting up the time dimensional hierarchy with Year -- QTR---Month--- Days order..
I have a measure call 'Forward Amt' which needs to applied with Month-to-date calculation. Therefore I am using time series functions.
I have copied the same measure and renamed it as 'MTD Forward Amt' and defined the todate function according to the syntax:
TODATE("Forward Details"."Forward fact"."Forward Amt", "Forward Details"."DatesDim"." Dates Month")
I set everything according to the standard steps
In the presentation however when I am running reports using dates = 03/10/2010, I am getting:
Month Forward Amt MTD Forward AMT
3 3000000 The $3000000 is actually correct value for the date 03/10/2010, but the MTD Forward AMT is empty..
For further investigations, I decided to take out the date column and date filter, then I got:
Month Forward Amt MTD Forward AMT
1 500000000
2 10000000
3 349000000
4 500000000
5 10000000
6 349000000I don't think this is correct result of the todate function at month level..
Could anybody suggestion any approach for me to investigate this behavior?
ThanksI’ve got Live Trace so I can’t vouch for Image Trace, but if what Monika says is right (and it usually is) you can select the areas with black fill and lock them. Then delete the stuff that isn’t coloured.
I believe that Image Trace has the possibility of producing stacks rather than compounds (like Streamline in the old days).
You should definitely go for stacks. They make editing much easier. -
HI all,
I use Time Series Function to get year ago Revenue, in fact table , the date is from 2007 to 2010, but in report,
it has one row of 2011, the Revenue of 2011 is null, and year ago Revenue is 2010, the report like this:
year Revenue year_ago_Revenue
2007 __50________
2008 __80________ 50
2009 __100_______80
2010 __120_______100
2011 ____________120
I want to remove the row of year 2011, how can i do that?Since you only asked how to get rid of the 2011 line, here are two ways:
1) Filter on Time.Year column <> 2011
or better
2) Filter on Time.Year column <> YEAR(CURRENT_DATE)+1 -
Time series functions in OBIEE
Hi
I am new to OBIEE.
In Report i want to use the AGO function to find the previous quarter revenue
But the AGO function requires time dimension level as shown in following syntax
how should i insert it in the function
Syntax
AGO(expr, [time_level], offset)
Thanks
SravanthiOnce you have day dimension with checked for 'Time dimension'
you can see day dimension in rpd expression builder, once you select the function you'll choose each columns.
for ref:
Check these links
http://gerardnico.com/wiki/dat/obiee/ago
or
http://iniu.net/content/obiee-time-comparison-using-time-series-function-ago
Pls mark as correct -
How to auto update date column without using trigger
Hi,
How to write below MYSQL query in Oracle 10g :
CREATE TABLE example_timestamp (
Id number(10) NOT NULL PRIMARY KEY,
Data VARCHAR(100),
Date_time TIMESTAMP DEFAULT current_timestamp on update current_timestamp
I need to auto update the Date_Time column without using trigger when ever i update a record.
Example shown below is from MYSQL. I want to perform the below steps in ORACLE to auto update Date_Time column.
mysql> INSERT INTO example_timestamp (data)
VALUES ('The time of creation is:');
mysql> SELECT * FROM example_timestamp;
| id | data | Date_Time |
| 1 | The time of creation is: | 2012-06-28 12:37:22 |
mysql> UPDATE example_timestamp
SET data='The current timestamp is: '
WHERE id=1;
mysql> SELECT * FROM example_timestamp;
| id | data | Date_Time |
| 1 | The current timestamp is: | 2012-06-28 12:38:55 |
Regards,
Yogesh.Is there no functionality in oracle to auto update date column without using trigger??
I dont want to update the date column in UPDATE statement.
The date column should automatically get updated when ever i execute an Update statement.
Maybe you are looking for
-
Can I share some, not all music, with other users on same iMac?
Hi, I want to be able to share some musice with other users on the same iMac? Is it possible to do without having to share everything? Thanks, Crankyhead.
-
I did a re-install of Firefox. When setting up the sync, I accidentally created a new account on the e-mail I was using for sync. The system did not prompt me that this account is already in use. Now there is a new sync data set up on this account. H
-
I installed the newest acrobat reader in my iPad2, but the acrobat icon is not showing on the top row of my email client as adobe described in "getting started". Since iBooks doesn't support PDF how do I resolve this so I can open my docs? Do I need
-
Missing hierarchy by downloading DNL_CUST_PROD1
Hi All, I´m very new to the installation and configuration of a SRM sytem using the self service scenario. So, I have to apologise for my following question.According to this I have to set up a self service scenario with EBP 4.0 and SRM 3.0. So, here
-
Airport extreme instalation on a Mac PRO
I just bought a airport extreme for my Mac Pro, and it doesnt't come with any instructions on where and how I have to install the card on my Mac pro. I looked for support and I also couldn't find anything about it. Can somebody send me a link or tell