OBIEE MTD, YTD, QTD Functions for an accumulating snapshot fact
Hello all,
I would be really grateful if someone can help me out with this:
I have an accumulating snapshot fact with the foll fields:
SALE(Sale_date, Org_ID, Proj_ID, Emp_ID, Cust_ID, Amt, Eff_St_Dt, Eff_End_Dt)
Now because it's an accumulating snapshot, there are multiple entries but with different date_stamps. For example a sale was booked on 1-JAN-2010 as $30,000 but was updated in Feb 2010 to $45,000.
This is my question: the MTD, QTD and YTD time series calculations all calculate with 2 parameters, the fact and the time dimension.
How do I calculate the XTD values with sale_date and the effective_dates in mind? because now I have more than just the time dimension. Can anyone suggest how it will be calculated?
Thanks,
Abhishek
Hi Kishore,
I made a change over here and the error is not occuring now. But different error is occuring.
Instead of year (which is default root level in Dimension), I picked either Month or Quarter and I am not facing the error (Invalid Expression).
I have a questions now
1) is it that we cannot use a column defined as Default Root level in Todate and AGO functions?
The other part is I have a new error ([nQSError: 22038] Function TODATE requires at least one measure attribute in its first argument.)
My fact column (FACT Table as partner_id,Id (primary_key) and ..). For the fact column to be the first parameter is that is should have some aggregation rule?
Please let me know...
Thanking you in Advance
Regards
(S.Prashant)
Similar Messages
-
Hi Team,
Need to Calculate No of Customers from a particular dimension table on these measures Daily,WTD,MTD, YTD,QTD,SPLM,SPLY
Can anybody help me with the Logic its extremely urgent.
Thanks all for your help
Regards,
YeduIs that part of an entire script, I don't see the tokens changing as TimG observed is this being called from a different routine. (are you calling the same script using a for loop?)
I think instead of updating the subvar everytime, he just used a bat/sh script to run it for various members.
Regards
Celvin
http://www.orahyplabs.com -
YTD,QTD & MTD values for variable under 0CALMONTH
Hi Gurus,
I need to calculate YTD,QTD & MTD values for a KF based on the value that the user enters in the variable under 0CALMONTH.
I have the code for how it can be done using 0CALDAY but not sure for 0CALMONTH.
Can you share the ABAP code for this requirement.
Your help will be greatly appreciated.
Thanks
ArvindHi,
Based on the month entered by the user, take First day of the month in teh exit,
1. YTD : Take SY-DATUM and calculate YTD
2. QTD : Based on the Month you calculate Quarter
3. MTD : Take SY-DATUM and calculate MTD
*Note: * If they give only Month want to date meanes, only SY-DATUM will be accepeted, because they are not passing 0CALDAY
Thanks
Reddy -
Hi All,
I am facing the problem when creating the ytd,qtd and mtd . I have 3 levels in my period dim table like year , quarter and month. I have a doubt on which leve i have specify the Chronology key.
In this dim table i have a composite primary key on two columns . Those are year and monthkey. How can i define to the lowest level .
Pls advise me , I would be very thank ful to you.In my period dim they have taken year and monthkey is the primary key. That's why we call it as a composite primar key. right.
But here i am confusing shall i take these two column in the lowest level of hierachy or not
I am getting the quaters for all the years the same result.
Pls advise me -
Can I use "dvt" function for customizing the chart format in OBIEE 11g?
Hi,
".pcxml" file cannot be found in OBIEE11g. However, can I use "dvt" function for customization? If yes, how?
Reference for dvt function:
http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12418/tagdoc/dvt_pieGraph.htmlHello,
I know it's possible, because i already found some blogs about changing the chart colors and turning off the animated graphs.
<Graph visualEffects="NONE" animationDuration="0">
But we want to alter more chart options, like make a bar chart default stacked. In 10G this was possible. I think this is also
possible in 11G through the dvt-graph-skin.xml, but what i want to know is, is there a document that explains which tags you could use in this file.
It would be great to get some help on this. -
Generalizing YTD & QTD calculations
Hi,
I am having month as leaf level in the time table. There are 14 months each month is having 26 days in the time table.
Time table format:
TIME_KEY PERIOD_NAME START_DATE END_DATE YEAR_START_DATE QUARTER_START_DATE PERIOD_YEAR PERIOD_NUM QUARTER_NUM
200701 JAN-07 12/30/2006 1/26/2007 12/30/2006 12/30/2006 2007 1 1
200702 FEB-07 1/27/2007 2/23/2007 12/30/2006 12/30/2006 2007 2 1
200703 MAR-07 2/24/2007 3/30/2007 12/30/2006 12/30/2006 2007 3 1
200704 APR-07 3/31/2007 4/27/2007 12/30/2006 3/31/2007 2007 4 2
200705 MAY-07 4/28/2007 5/25/2007 12/30/2006 3/31/2007 2007 5 2
200706 JUN-07 5/26/2007 6/29/2007 12/30/2006 3/31/2007 2007 6 2
200707 JUL-07 6/30/2007 7/27/2007 12/30/2006 6/30/2007 2007 7 3
200708 AUG-07 7/28/2007 8/24/2007 12/30/2006 6/30/2007 2007 8 3
200709 SEP-07 8/25/2007 9/28/2007 12/30/2006 6/30/2007 2007 9 3
200710 OCT-07 9/29/2007 10/26/2007 12/30/2006 9/29/2007 2007 10 4
200711 NOV-07 10/27/2007 11/23/2007 12/30/2006 9/29/2007 2007 11 4
200712 DEC-07 11/24/2007 12/28/2007 12/30/2006 9/29/2007 2007 12 4
200713 P13-07 12/28/2007 12/28/2007 12/30/2006 9/29/2007 2007 13 4
200714 P14-07 12/28/2007 12/28/2007 12/30/2006 9/29/2007 2007 14 4
200801 JAN-08 12/29/2007 1/25/2008 12/29/2007 12/29/2007 2008 1 1
200802 FEB-08 1/26/2008 2/22/2008 12/29/2007 12/29/2007 2008 2 1
200803 MAR-08 2/23/2008 3/28/2008 12/29/2007 12/29/2007 2008 3 1
200804 APR-08 3/29/2008 4/25/2008 12/29/2007 3/29/2008 2008 4 2
200805 MAY-08 4/26/2008 5/23/2008 12/29/2007 3/29/2008 2008 5 2
200806 JUN-08 5/24/2008 6/27/2008 12/29/2007 3/29/2008 2008 6 2
200807 JUL-08 6/28/2008 7/25/2008 12/29/2007 6/28/2008 2008 7 3
200808 AUG-08 7/26/2008 8/22/2008 12/29/2007 6/28/2008 2008 8 3
200809 SEP-08 8/23/2008 9/26/2008 12/29/2007 6/28/2008 2008 9 3
200810 OCT-08 9/27/2008 10/24/2008 12/29/2007 9/27/2008 2008 10 4
200811 NOV-08 10/25/2008 11/21/2008 12/29/2007 9/27/2008 2008 11 4
200812 DEC-08 11/22/2008 12/26/2008 12/29/2007 9/27/2008 2008 12 4
200813 P13-08 12/26/2008 12/26/2008 12/29/2007 9/27/2008 2008 13 4
200814 P14-08 12/26/2008 12/26/2008 12/29/2007 9/27/2008 2008 14 4
I am using TIME_KEY column (which is integer) in the calculations. The YTD & QTD calculations are as follows,
YTD calculation in Universe:
Select section:
Sum (Actual)
Where section:
(D_TIME.TIME_KEY
Between
to_number(Concat(Substr(to_char(@Prompt('Enter End Period: ', 'A', 'Dim Time\YearPeriod', Mono, Constrained), '999999'),1,5),'01'), '999999')
And
@Prompt ('Enter End Period: ', 'A', 'Dim Time\YearPeriod', Mono, Constrained))
QTD calculation in Universe:
Select section:
Sum (Actual)
Where section:
(D_TIME.TIME_KEY
Between
to_number(Concat(Substr(to_char(@Prompt('Enter End Period: ', 'A', 'Dim Time\YearPeriod', Mono, Constrained), '999999'), 1, 5),
(Case Substr(to_char(@Prompt('Enter End Period: ', 'A', 'Dim Time\YearPeriod' ,Mono, Constrained), '999999'), 6, 7)
When '01' Then '01'
When '02' Then '01'
When '03' Then '01'
When '04' Then '04'
When '05' Then '04'
When '06' Then '04'
When '07' Then '07'
When '08' Then '07'
When '09' Then '07'
When '10' Then '10'
When '11' Then '10'
When '12' Then '10'
When '13' Then '10'
When '14' Then '10'
End)), '999999')
And
@Prompt ('Enter End Period: ', 'A',' Dim Time\YearPeriod', Mono, Constrained))
Using the above YTD & QTD calculations, I can restrict the periods but the values are not rolling up for each month. For example,
Period level data:
________Jan-10____Feb-10____Mar-10
Product 1___2________4_________6
YTD: (the output has to come like the below one, but I am getting the same period value)
________Jan-10____Feb-10____Mar-10
Product 1___2________6_________12
Please guide me to write a generalized YTD and QTD calculation in Universe level?
Regards, SujeevHi Mark,
Thanks for your reply.
I made the changes as per your suggestion. I am not getting the values for the YTD, instead i am getting zero values for all the periods. How to solve this issue. But my previous YTD calculation is giving me the value like as follows,
*Period level data:*
________Jan-10____Feb-10____Mar-10
Product 1___2________4_________6
But i want the YTD function to perform like,
*YTD:*
________Jan-10____Feb-10____Mar-10
Product 1___2________6_________12
YTD calculation for individual months has to be like as follow,
Jan = Jan
Feb = Jan + Feb
Mar = Jan + Feb + Mar...
How to do it?
Regards, Sujeev -
How to calculate MTD,YTD in Repository
Thanks in advance
Regards
Frnds..Hello boss,
Again i am reminding you about closing the threads..
all your previous threads are kept open..
If it's answered you have to close them... and assign some points to the users.
This is for easy future reference...
For your questions..
go through these links...
http://www.rittmanmead.com/2007/04/30/obi-ee-time-dimensions-and-time-series-calculations/
http://oraclebizint.wordpress.com/2007/11/15/oracle-bi-ee-101332-understanding-todate-and-ago-achieving-mago-qago-and-yago/
http://oraclebizint.wordpress.com/2007/11/05/oracle-bi-ee-101332-understanding-todate-and-ago-achieving-ytd-qtd-and-mtd/ -
Date Based Dynamic Member Calculation Performance (MTD, YTD, PeriodsToDate)
I'm working on an SSAS 2012 cube and I have defined several dynamic calculations based on a Date (MTD, YTD, TD, Thru Previous Month, etc.).
The cube has a well defined Date dimension and I have set up a DYNAMIC calculated set in the cube as shown below.
CREATE DYNAMIC SET CURRENTCUBE.[Latest Date]
AS TAIL(EXISTS([Payment Date].[Calendar Date].[Date].Members,[Payment Date].[Calendar Date].CURRENTMEMBER,"Claim Payment"));
... and here is an example of one of my calculations.
CREATE MEMBER CURRENTCUBE.[Measures].[Face Amount Paid MTD]
AS SUM(MTD([Latest Date].ITEM(0).ITEM(0)), [Measures].[Face Amount Paid]),
FORMAT_STRING = "$#,##0.00;-$#,##0.00",
//NON_EMPTY_BEHAVIOR = { [Claim Payment Fact Count] },
VISIBLE = 1 , DISPLAY_FOLDER = 'Face Amount' , ASSOCIATED_MEASURE_GROUP = 'Claim Payment';
This calculation returns the correct results, but performs horribly. I've noticed that changing the [Latest Date] set to STATIC, performance greatly improves, but numbers are no longer accurate as they are based on the Tail of the Claim Payment measure
group without considering the filtered dates. This is because the date is evaluated at process time, but needs to be based on users date selection to be accurate. Therefore, STATIC does not appear to be an option. Is there a better way to
perform this calculation dynamically based on the filtered or unfiltered date dimension?Typically I would just do YTD/MTD/etc off the date the user has selected. It seems like you want to do it based on the last date with data within the range they have selected. Why not just give the user what they are asking for?
In other words, why not
YTD([Payment Date].[Calendar Date].currentmember) -
Query (MTD/YTD/LYMTD/LYYTD)
Hi All,
I have to create a query and i got the requirement like this:
4) Key figures required are
a. Actual Consumption Qty / per MT (MTD/YTD/LYMTD/LYYTD)
b. Standard Consumption Qty / per MT (CY/LY)
c. AOP Rate (CY/LY)
d. AOP Value (b X c) (CY/LY)
e. Consumption Value (MTD/YTD/LYMTD/LYYTD)
f. Actual Consumption Rate (e / a) (MTD/YTD/LYMTD/LYYTD)
g. Rate Variance ((f u2013 d ) * a) (MTD/YTD)
h. Usage Variance ((b u2013 a ) * c) (MTD/YTD)
i. ETP Material Consumption (MTD/YTD/LYMTD/LYYTD)
j. Packing Material Cost (MTD/YTD/LYMTD/LYYTD)
k. Variable Overheads (MTD/YTD/LYMTD/LYYTD)
l. Fixed Overheads (MTD/YTD/LYMTD/LYYTD)
m. AOP Output Qty (MTD/YTD/LYMTD/LYYTD)
n. Output Qty (MTD/YTD/LYMTD/LYYTD)
Can anybody expalin me what does mean by (MTD/YTD/LYMTD/LYYTD)
Do I have to create 4 different keyfigures for this ?
Regards
ShwetaThis means that you will have create a key figure whivch shows the valure like this
Suppose you are giving a date as the input to the query...this input date can be any date like creation date of document or posting date of the any doc.
Suppose user gave 04.12.2008 as the input
MTD: Month till date
This should show the value of any key figure for the month of the date which you have given till the day of the month.
So it should give the values between 01.12.2008 till 04.12.2008 in the report for that key figure from the cube.
YTD:Year till date
This should give 01.01.2008 till 04.12.2008
LYMTD:Last year month till date
this can be 01.12.2007 till 04.12.2007
LYYTD:Last year..year till date
This can be 01.01.2007 to 04.12.2007
Yes you will have create different RKF's for each of the key figure restricting them based on the requirement.
Thanks
Ajeet -
BI IP --- Planning function for File Upload
Hai All,
In BI IP , When I am trying to load the data (text file) by using Planning function for File Upload. I am getting an error message When I am clicking on Update .
Error Message : Inconsistent input parameter (parameter: <unknown>, value <unknown>).
In Text file I am using Tab Separation for each value
Anyone help me out.
Thanks,
BhimaHi Bhima
Try one of these; it should work:
1. If you are on SP 14 you would need to upgrade to SP 15. It would work fine
2. If not, then -
a] apply note 1070655 - Termination msg CL_RSPLFR_CONTROLLER =>GET_READ_WRITE_PROVIDS
b] Apply Correction Instruction 566059 [i.e: in Object - CL_RSPLFR_CONTROLLER GET_READ_WRITE_PROVIDS,
delete the block: l_r_alvl = cl_rspls_alvl=>factory( i_aggrlevel = p_infoprov ).
and insert block - l_r_alvl = cl_rspls_alvl=>factory( i_aggrlevel = i_infoprov ).
Goodluck
Srikanth -
Is there any functionality for AVERAGE in ALV, like do_sum, subtot?
Hi Experts,
In my_alv report, am doing sub/totals for prices, by using do_sum, subtot functions.........fine. But, I need to do/display the AVERAGE value for Discount % column?
Is there any functionality for AVERAGE in ALV, like do_sum, subtot?
thanqhi
check these links out
http://www.sapfans.com/forums/viewtopic.php?t=20386
http://www.sapfans.com/forums/viewtopic.php?t=85191
http://www.sapfans.com/forums/viewtopic.php?t=88401
http://www.sapfans.com/forums/viewtopic.php?t=17335
regards
vijay
reward points if helpful -
Crash on search function for HTML Help file (.chm) when
connected to a Visual C++ application
I use the RH_ShowHelp API command to connect a HTML Help file
(.chm file generated by RoboHelp Word X 5) to my Visual C++
application. My application is able to call up this HTML help file
in context-sensitive mode and everything is working great in the
Contents and Index panels EXCEPT when I click on List Topics (after
I enter a KEYWORD for search) in the Search panel.
I got an error that said “Unhandled exception in
xxxx.exe.(HHCTRL.OCX):0xC00000FD: Stack overflow”
I am able to execute this .chm file by itself and the search
function works well in this case. I am using HHActiveX.dll that is
created on 2/23/04. Is this the correct version?? Any advice what
to do here??Hi agschin and welcome to the RH forums. The hhactivex.dll
file is not used by the search function so you can rule that our.
Have you tried recompiling and seeing if the problem still happens?
You can also start the Bug Hunter feature in RH - View > Output
View and then select the Bug Hunter button - and see if that throws
up any clues. -
How to Use the language function for assignment and validation
Hi All,
If anyone can explain me in details with example ,how to use the language function for assignments and validations?
Thanks
ArnabHi Arnab,
The expression is checked only for the current MDM session.
If u login with the ABC language it will always show the ABC language no matter how many times u execute it.
Try connecting to the DM with the XYZ language.
It should go to the if part rather than else.
Hope it helps.
Thanks,
Minaz -
Error "You cannot enter a partner function for output NEU"
Hi Experts,
I'm having these error "You cannot enter a partner function for output NEU" (message VN041) when I tried to assign a partner function (e.g OA) in the conditions records for application "EV" (Purchase outline agreement). The system do not allow me to do this for any doc type (LP, LPA, MK, OA, etc). I'm using t-code NACE or MN08.
I want to assign partner for key combination "Document Type". The conditions is already there but with no value, so I want to assign partner function "OA" or "VR".
I already check all the configuration and looks fine. For example, define possible partner functions for output type "NEU" for application "EV" (Purc outline agree).
Hope you can help me to find the problem.
Thanks,
Mairo.I have the error in NACE or using tcode MN08.
As soon I executed those transaction the system shows the condition records created for varios Doc Type (e.g LP, LPA, MK, etc) but with no partner function assigned. For example:
Doc. Type / Name / Funct / Partner / Medium / Date/time / Language
LP / Scheduling Agreement / blank / blank / 2 / 3 / EN
LPA / Scheduling Agreement / blank / blank / 1 / 3 / EN
For example, I try to assign function "OA" for Doc. Type "LP", choose value from quickpick. Then when I press enter, the system give me the error "You cannot enter a partner function for output NEU", message no. VN041. Do not allow me to continue, so I have to leave this field blank, with no change.
Thanks, -
Down payment functionality for PO with account assignment K Cost Center
QUESTION: Is there a way to turn-on down payment functionality for cost centers?
When a vendor down payment is posted via tcode F-47 against a PO line item with INTERNAL ORDER as the account assignment, SAP posted the following documents from the payment run (tcode F110):
1. Accounting Document
dr vendor / GL= downpymt clearing / internal order = IO1234 / cost center = CC5678
cr bank
2. Controlling Document
dr internal order IO1234
However, when a vendor down payment is posted against a PO line item with COST CENTER as the account assignment, SAP does not post any Controlling document, just the accounting document:
dr vendor / GL= downpymt clrg / cost center = CC5678
cr bank
From my research, it appears that the down payment functionality applies to internal orders and projects only. Then settlement is run to move the values from internal order to AUC assets and/or cost centers. Perhaps I'm missing a configuration step for the cost center piece?
Your prompt response will be much appreciated. Thanks in advance!system wont generate any controlling document for noted items downpayment and normal payments.
Because all are balance sheet accounts. Controlling documents will generated for only P&L accounts.
Your analysis correct.
Maybe you are looking for
-
Usage of SAP Event Management as backend for custom mobile applications
Hi, I'm am looking for an appropriate implementation approach for custom mobile applications as complement for warehouse processes with SAP Extended Warehouse Management. Possible scenarios: i) Goods issue - loading process There are requirements lik
-
Firefox 14 and JDownloader2 Issue
Jdownloader2 and Firefox issues Hello! Approx. an one month ago I have faced with the strange bug or what a hack is it. When I`m downloading with JDownloader2 without browsing with Firefox, everything is ok. When I start the Firefox and I start to br
-
Automatic payment run through F110
Hi Everyone, During the aotumatic payment run via F110, after creating the proposals when i am trying to display the proposal, it is giving an error message that " Company Code XY12 / XY12 does not appearin proposal 08.07.2011 AB00; correct " But I a
-
When I perform a search it comes up with nl in front and appears in Dutch
-
Can my '08 MacBook do Thunderbolt?
From the on-line Apple publish specs on my machine (MacBook (Early 2008 and Late 2008) - Technical Specifications), I know I have a Mini-DVI port. I also have learned that Thunderbolt (up to 10 Gbps) works via Native Mini Display Port in the newer ma