Reporting with Time Variance (previous year vs current year)
Good day all.
I would like to ask for advice and help in terms of best way to make this report work:
Let's say I need to show the % variance between the Total Operating Costs per Gross sqft over different times periods (Previous year to Current Year). The trick is that data must be compared to the same data in the previous year, i.e. if we are in June of current fiscal year, the comparison must be between Oct-June of current fiscal year to Oct-June of previous fiscal year, not the full previous year. The report formula itself would be:
([TCO Exp/GSF PY] - [TCO Exp/GSF CY]) / [TCO Exp/GSF PY] * 100
My guess, I could define a static variable Current Year which developers would have to be changed every year. And then create logical columns: TCO Exp PY (where year=Current Year-1)...while writing this, I realized I'm wrong and there must be a more efficient way to do this. UPD: I've also thought about time-series function AGO, but I'm currently testing it, and I'm not happy with its performance...
Thank you in advance...
Message was edited by:
wildmight
Hi Wildmight,
The current value will be the value you will select from the table like you normally would do. These would be values per month if I am correct. Next to the column with the current value, you create an additional column with the AGO function in it.
Now you will have the current value and next to it the value of the required period ago. You won't need any static variables.
Let me give you an example for the last three months.
Period CY PY
jan-08 50 30
dec-07 40 20
nov-07 45 25
In this case the value 20 corresponds to the period dec-06.
I hope I made myself clear.
Good Luck,
Daan Bakboord
Similar Messages
-
We have a report that summarises monthly sales & credits for 2 years in a group footer. The footer is a sum of a formula in the detail section that calculates the monthly sales at the Item code level
Item 1
Group Footer 1 July Aug Sept Oct
Sales Last Yr @July_LY_Sales @Aug_LY_Sales @Sep_LY_Sales @Oct_LY_Sales
Credits Last Yr @July_LY_Credits @Aug_LY_Cred @Sep_LY_Cred @Oct_LY_Cred
Sales This Yr @July_CY_Sales @Aug_CY_Sales @Sept_CY_Sales @Oct_CY_Sales
Credits This Yr @July_CY_Cred @Aug_CY_Cred @Sep_CY_Cred @Oct_CY_Cred
<Curr Yr Graph1>
<Last Year Graph2>
Item 2
Group Footer 1 July Aug Sept Oct
Sales Last Yr @July_LY_Sales @Aug_LY_Sales @Sep_LY_Sales @Oct_LY_Sales
Credits Last Yr @July_LY_Cred @Aug_LY_Cred @Sep_LY_Cred @Oct_LY_Cred
Sales This Yr @July_CY_Sales @Aug_CY_Sales @Sept_CY_Sales @Oct_CY_Sales
Credits This Yr @July_CY_Cred @Aug_CY_Cred @Sep_CY_Cred @Oct_CY_Cred
<Curr Yr Graph1>
<Last Year Graph2>
In the footer under the data, we want a 4 line graph (or 2 x 2 line graphs for this year & last year). One line for sales for the current 12 months, and with it, a line plotting the credits, so as to see the trend over that year. And then we want a line graphing the previous years sales and a line graphing the previous year credits for the 12 months.
On the data tab in chart expert, we selected the Place chart for each SHDOC.ITEM (Item number) in the footer and this is positioning correctly. We have tried selecting "On change of shdoc.item and we have also tried For each record. We selected on change of shdoc.item to generate the graph for each item. We then added the 12 formula for the current year in the Show Value panel
In the show value panel we tried using the detail formula, the Report Area: Sum of <formula> and the Group 1: Sum Formula. They all display as @July or @Aug which is a dependent formula used to identify the month
We have added the above formula for each month and each value, but we can't work out how to group the monthly data into the 4 series of 4 lines (1 colour each) - Current Year Sales, Current Year Returns, Last Year Sales, Last Year Returns for the charting. We have tried to create a graph with only 1 set of monthly data (viz, just 12 months current year sales) But no matter what options we take, we seem to get 12 line chart representing each month rather than 1 line representing 12 months.
Can someone point us in the right direction?Please re-post if this is still an issue but search forums first, lots of chart questions have been answered.
-
Problem with the text from previous year in current year appraisal (PPR)
Hi Gurus,
I have some problem with the text from the PPR of the previous year in the PPR current year.
The text from the previous year have not the same displaying in the tab "previous year" of the current year PPR.
EXAMPLE :
this is write in the PPR of year 2009 in Individual Targets without Incentives (tab My S-imple) :
-Aufrechterhaltung der MA motivation, in dieser Zeit der Neuorientierung.
-G1 Unterstüzung
-Fachübergreifende Teamarbeit ausbauen
Gefährdungsbeurteilung weiter führen
-tragen von PSA einfordern
-VI Opt.(Intervalle)
-Azubi und Praktikanten AUsbildung unterstüzen
and this is what I have in the PPR of 2010 in Individual Targets without Incentives (tab Previous Year's Targets):
-Aufrechterhaltung der MA motivation, in dieser Zeit der-Aufrechterhaltung der MA motivation, in dieser Zeit der
-Aufrechterhaltung der MA motivation, in dieser Zeit der
-Aufrechterhaltung der MA motivation, in dieser Zeit der
-Aufrechterhaltung der MA motivation, in dieser Zeit der
-Aufrechterhaltung der MA motivation, in dieser Zeit der
-Aufrechterhaltung der MA motivation, in dieser Zeit der
-Aufrechterhaltung der MA motivation, in dieser Zeit der
there is the error, all the end of the text isn't displayed and the begin of the text is repeated.
I think that this issue is created at the creation of the PPR.
If someone have a idea he is welcom.
thanks and regardsHi,
Please follow the note:425601,
Go to Tcode: OBA5 change the error messge into warning message. carry out the settlement and roll abck the warning message into the error message after sucessfull settlement.
Reward points if found useful.
Thanks! -
How to calulate previous fiscal year from current year and periods as input
hi all,
i have a report where i have 2 select options as year and period.
my period can be a range like( Ex: 1 to 6).
i like to know previous fiscal year from the following inputs.
Tel me a suitable conversion routine to calculate
depending on periods and fiscal year.
regards
sivaram.Hi
U need to check the lower period, if it's 1 the previous fyscal year will be the year before:
IF PERIOD = '1'.
PREV_YEAR = YEAR - 1.
ENDIF.
U can also use the fm FI_PERIOD_DETERMINE, in this case you need a date, u can get it from lower current period:
Get the first day of the period
BUDAT(4) = YEAR.
BUDAT+4(2) = PERIDO_LOW.
BUDAT+6(2) = '01'.
Now get the last day of the previous month:
BUDAT = BUDAT - 1.
Use this date to get its period by fm FI_PERIOD_DETERMINE
Max -
Macro issue: Current Year and Current Year +2
Hi Macro experts
I have a view in monthly buckets. I like to copy values for one KF to another from current year to only Current year + 2. I have made following macro but it dosen't work:
AT: Initiate Input Row
Copy Sales FC to Al FC Input Y+2 : ( 24 Iterations : M 03.2009 ; M 02.2011 )
IF
Check year
YEAR( DATE(
Row: Customer Forecast ( Frm M 03.2009 )
=
(YEAR( DATE( TODAY ) )
+
2
Row: Annual Target Input ( Frm M 03.2009 ) =
Row: Sales Forecast ( Frm M 03.2009 )
ENDIF
I get following message when I do the check:
Fehlerhafter logischer Ausdruck "(YEAR( 4D4HPL3ENNRMKCXE1NULTI4LX ) + 2 )":
Please help (If there is an easier way to make the macro please let me know)
Thanks
SunHi
Thanks for the answer. It is a rolling period dataview. I understand you suggest the macro as:
AT: Initiate Input Row
Copy Sales FC to Annual FC Input Y+2 : ( 24 Iterations : M 03.2009 ; M 02.2015 )
Row: Annual Target Input ( Frm M 03.2011 ) =
Row: Sales Forecast ( Frm M 03.2009 )
But the problem is that when it is rolling period it will then also copy values in current year+3 and that is not acceptable. That is why I canu2019t use this macro. Values in current year (jan. month to dec. 2009) to (jan. month to dec. 2011)
Br
Sun -
Creating P&L report with Time dimension view ( Period , HTD, YTD )
Hi
I have a requirement to create P&L report that will Time dimension view ( Period , HTD, YTD ). I guess the original report was created with hyperion tool now they want the same in BO report.
Is this technically possible with BEX since there is no standard time object for YTD and HTD. I know in BPC there are ready made objects.
does any one know how I can create this solution with BEX.
thanks
BhatHi,
It is possible in BEx. You would need to create variables of type customer exit and write code to realize YTD, etc. Check the forums for documents and sample code. -
Create report with time dimensions
I want to add the following dimensions in the extend report: calendar, period (Week, Month, Quarter, Year), compare to (Prior Year, Prior Period).
I have made some researchs and I have consulted oracle metalink but without succes.
I will be grateful if someone can indicate me where to find a concret example of the creation of time dimensions
RegardsRefer OBI Administration Guide, for creating Dimensions (includes Time Dimension Concepts)
Following link contains the example for implementing Time Dimension:
http://www.rittmanmead.com/2007/04/30/obi-ee-time-dimensions-and-time-series-calculations/
Hope it will help you.. -
Monthly Report with time-dependent navigational attribute
Hi,
We've a characteristic costcenter that has a navigational attribute called segment which is time-dependent attribute.
CostCenter-Segment master data is as follows.
COSTCENTER Segment validFrom Valid To
============================================
CSTCNTER_1 SGMNT_A 10000101 20100831
CSTCNTER_1 SGMNT_B 20100901 99991231
Cube data is as follows. We don't have Segment in the cube. Also, no plans of adding segment to the cube.
COSTCENTER MONTH AMOUNT
========================
CSTCNTER_1 201007 100
CSTCNTER_1 201008 200
CSTCNTER_1 201009 300
CSTCNTER_1 201010 400
I'm trying to achieve monthly report by costcenter & segment as follows. Is there a way to achieve this?
COSTCENTER Segment MONTH AMOUNT
===============================
CSTCNTER_1 SGMNT_A 201007 100 (last day of 201007 is 20100731. as of 20100731, CSTCNTER_1 belongs to SGMNT_A)
CSTCNTER_1 SGMNT_A 201008 200 (last day of 201008 is 20100831. as of 20100831, CSTCNTER_1 belongs to SGMNT_A)
CSTCNTER_1 SGMNT_B 201009 300 (last day of 201009 is 20100930. as of 20100930, CSTCNTER_1 belongs to SGMNT_B)
CSTCNTER_1 SGMNT_B 201010 400 (last day of 201010 is 20101031. as of 20101031, CSTCNTER_1 belongs to SGMNT_B)
Appreciate any help.
-harithanks for looking into this.
I"ve already turned on SEGMENT as a navigational attribue in cube, for the reason, my current report looks like this.
COSTCENTER Segment MONTH AMOUNT
===============================
CSTCNTER_1 SGMNT_A 201007 100
CSTCNTER_1 SGMNT_A 201008 200
CSTCNTER_1 SGMNT_A 201009 300 I'm expecting this should show up in SGMNT_B
CSTCNTER_1 SGMNT_A 201010 400 I'm expecting this should show up in SGMNT_B
But, I'm expecting the report look like this
COSTCENTER Segment MONTH AMOUNT
===============================
CSTCNTER_1 SGMNT_A 201007 100
CSTCNTER_1 SGMNT_A 201008 200
CSTCNTER_1 SGMNT_B 201009 300
CSTCNTER_1 SGMNT_B 201010 400 -
Difference in last year and current year Cost Run (CK11N)
Hi Experts,
I am getting the difference in Costing Run as explained below,
1, Costing Run of year 2009 is not picking the two overheads as against 2008.
What may be the couse, all overhead keys are extended to year 2009.
Waiting for your reply.
ShamHi,
Please check the validity of those 2 overhead rates. Probably the validity is till 12/31/2008, that's why it is not picking. In that case you can create another row with validity dates from 01/01/2009 to 12/31/2009 or 12/31/9999 as the case may be.
The path for the same is mentioned below:
IMG>Controlling>Product Cost Controlling>Product Cost Planning>Basic Settings for Material Costing>Overhead>Costing Sheet:Components>Define Percentage Overhead.
Thanks,
Prithwiraj. -
NVision prior year totals are overwriting with current year
Hi All,
I have created an nVision report with two columns, one is for Current year(timespan-YTD) expense totals and other one is for Prev Year(timespan-Prev_Year) totals and row level i have all Expenditure accounts from Account Tree.
When I run the report, Current Year and Prev Year coulumns are displaing same totals, when I ran the SQL trace, i found that Prev Year, column sql was running two times, one is for prev year and otherone is current year and second sql was overwriting with current year totals.
When I looked into timespans for PREV_YEAR, I saw that "End Period Type" was set to "Relative to Current Period", when I swich to"Absoluate Period" then Prev Year column was showing Prev Year results.
But switching Period type to : Absolute is wrong,when comparing the current year with Prev year with As of Date.
Any thoughts on above issue.
Thanks,
VenkyDear Rachana
The long text of error AA669 is very clear about the root cause of the
error.
The idea behind the message: it is not allowed to close first general
ledger before subleger. This leads to inconsistencies. It is common
accounting principle to always close the subledgers first and only
then close the general ledger (FI-GL).
The solution is: re-open fiscal year in FI-GL (txn OB52) and follow the
steps from note 619969.
o RAAFAR00
o RAPOST2000
o RAPERB2000
o RAJABS00
If it is not possible to open the fiscal year because audit has already
been completed: workaround (which is not quite correct from the legal
point of view) is the report RACORR20_A from note 29694.
Best Regards,
Blaz -
Current year Previous Year in Query
Hi,
I have to get the results of current year 12 months( 12 columns) previous year 12 month( 12 columns) in one report.
Once the user gives the current year , how to automatically populate the previous year. The PY varaint can be used for all months of previous year.
Any thoughts on this, please let me know.As venkat said , using offset is the best option, rather than jumping directly to custom exit variable.
for e.g.
you report display is
net qty.............net qty
current year...... previous year........
bil1
bil2
so u intend to see the net quantity for current year and previous year.
Bring net qty... in Columns in query designer.
Now right click and hit Edit
Now bring in time chara. that u wish to use and want to create variable for.................
for e.g. say fiscal period....
Now hit fiscal period with right click andhit Restrict.
Go for Interval variable if already exist or else create a new one.
hit okey..
now in query designer in columns copy ur net quantity
now paste there again.
in Second net quantity u can hit edit.
now where fiscal period is there hit restrict
in dialog box hit Select offset.
As ur intention is for previous year, keep the offset value as -12
also restrict fiscal year variant in selection.....
hit okey
test it...
if this doesnot work
then go for custom exit.... -
Current year and previous year
Hi All Grus,
i have a one requirement user will give input 30.04.2009 . the output should show last ten days including user entered date like 21.04.2009 to 30.04.2009 for current year and previous year
this current year and previous should show column wise in row wise i need year like given below
user input: 30.04.2009
row column
21.04.09 22..04.09. 23..04.09 .............................................................. 30.04.2009
2009 100 200 300 ............................................................... 500
2008 200 300 600 ................................................................. 1000
Edited by: kek.uthayakumar on Aug 4, 2009 7:57 AM
Edited by: kek.uthayakumar on Aug 4, 2009 7:58 AMHi
You need to have customer exit variable on this calday and write code to obtain your logic. Search in SDN for sample codes:
enter information required in search forum SAP Business Explorer (SAP BEx)
Regards
Ravi -
MDX syntax for current year in a Pre-defined condition
Hi,
I'm looking for assistance in building a Pre-defined condition in a universe based on an MSAS 2005 OLAP cube, that only returns the current year.
My year is defined as [Time Accounting].[Accounting].[Accounting Year]
I can create a Pre-defined filter that accepts a constant value as follows:
<FILTER KEY="[Time Accounting].[Accounting].[Accounting Year]">
<CONDITION OPERATORCONDITION="Equal">
<CONSTANT CAPTION="2008"/>
</CONDITION>
</FILTER>
and it works fine, however, I would like to make it dynamic.
There is an attribute called current year that is defined as [Time Accounting].[Accounting Year].[Accounting Year].[Current Year].[Value] but when I try and put this into my pre-defined filter nothing is returned:
<FILTER KEY="[Time Accounting].[Accounting].[Accounting Year]">
<CONDITION OPERATORCONDITION="Equal">
<CONSTANT CAPTION="[Time Accounting].[Accounting Year].[Accounting Year].[Current Year].[Value]"/>
</CONDITION>
</FILTER>
Is this possible? What am I doing wrong?
What I'm ultimately aiming for is a rolling 12 month condition.
Thanks,
ColinHi,
In OLAP universe, you cannot define a filter with CAPTION = another universe object.
What you can do is CAPTION = String or CAPTION = @Prompt.
By the way, if you want to achieve what you are requiring, I suggest you create a calculate expression such as:
<EXPRESSION>
IIF([Time Accounting].[Accounting Year.].CurrentMember.Properties("Name") = [Time Accounting].[Accounting Year.].CurrentMember.Properties("Current Year"), 1, 0)
</EXPRESSION>
Then you can define your filter on your new calculated expression and the operator to Equal and CAPTION = 1
Didier -
GL Trial Balance Report with Effective Dates as Parameters
We have a requirement to show the GL Trial Balance report with Effective dates as Parameters.
Current Analysis:
The Journals get updated with corresponding CCID in GL_BALANCES table when the Journal is posted. GL_BALANCE is SOB specific, if the SOB has month as period then the balances in GL_BALANCES would get updated against the month(period).
To overcome the period problem, we explored the option of using a View based on GL_JE_HEADERS and GL_JE_LINES for 'Posted' Journal Batches of a SOB. We are checking whether the GL_JE_HEADERS.default_effective_date lies between the :p_from_date and :p_to_date which is sent to the Report as a parameter. The above idea does not return expected data when the custom Trial Balance Report is run.
Following is the Query being used:
SELECT cc.segment4 ACCOUNT, bal.code_combination_id,
bal.begin_balance_dr
+ SUM (NVL (gljel.accounted_dr, 0)) opening_bal_dr,
bal.begin_balance_cr
+ SUM (NVL (gljel.accounted_cr, 0)) opening_bal_cr,
ffv.description,
(SELECT SUM (NVL (gljel.accounted_dr, 0))
FROM gl_je_headers gljeh,
gl_je_lines gljel,
gl_code_combinations gcc
WHERE gljeh.default_effective_date BETWEEN :p_from_date
AND :p_to_date
AND gljeh.je_header_id = gljel.je_header_id
AND gljel.code_combination_id = gcc.code_combination_id
AND gljel.period_name = gljeh.period_name
AND gljel.set_of_books_id = :p_set_of_books_id
AND gljeh.status = 'P'
AND gljel.status = 'P'
AND gljeh.actual_flag = 'A'
--AND gljel.code_combination_id =
-- bal.code_combination_id
AND gcc.segment4 = cc.segment4
GROUP BY gcc.segment4) c_dr,
(SELECT SUM (NVL (gljel.accounted_cr, 0))
FROM gl_je_headers gljeh,
gl_je_lines gljel,
gl_code_combinations gcc
WHERE gljeh.default_effective_date BETWEEN :p_from_date
AND :p_to_date
AND gljeh.je_header_id = gljel.je_header_id
AND gljel.period_name = gljeh.period_name
AND gljel.code_combination_id = gcc.code_combination_id
AND gljel.set_of_books_id = :p_set_of_books_id
AND gljeh.status = 'P'
AND gljel.status = 'P'
AND gljeh.actual_flag = 'A'
AND gcc.segment4 = cc.segment4
GROUP BY gcc.segment4) c_cr
FROM gl_period_statuses per,
gl_code_combinations cc,
gl_balances bal,
gl_je_headers gljeh,
gl_je_lines gljel,
fnd_flex_values_vl ffv,
fnd_flex_value_sets ffvs
WHERE cc.chart_of_accounts_id = :p_chart_of_accts_id
AND bal.currency_code = :p_currency
AND bal.actual_flag = 'A'
AND bal.period_name = per.period_name
AND cc.template_id IS NULL
AND cc.code_combination_id = bal.code_combination_id
AND per.set_of_books_id = :p_set_of_books_id
AND per.application_id = 101
AND :p_from_date BETWEEN per.start_date AND per.end_date
AND gljeh.period_name = per.period_name
AND gljeh.default_effective_date <= :p_from_date
AND gljeh.je_header_id = gljel.je_header_id
AND gljel.period_name = gljeh.period_name
AND gljel.set_of_books_id = :p_set_of_books_id
AND ffv.flex_value_set_id = ffvs.flex_value_set_id
AND ffvs.flex_value_set_name = 'JSWEL_ACCOUNT'
AND gljeh.status = 'P'
AND gljel.status = 'P'
AND cc.summary_flag = ffv.summary_flag
AND cc.segment4 = ffv.flex_value
AND gljeh.actual_flag = 'A'
AND gljel.code_combination_id = bal.code_combination_id
GROUP BY bal.begin_balance_dr,
bal.begin_balance_cr,
cc.segment4,
ffv.description,
bal.code_combination_id
Kindly suggest if I am missing anything. I am sure that the great guns here can help me out.
Thanks
Sumitsuggest to create customize TB report.
-
HI All,
How do i set fiscal year to current year....... i have a requirement actuals for all FY excluding Current year and'
commitments for Current FY.
Reagards.Hi Raj,
Create a characteristic variable of processing type "customer exit" for the Fiscal Year InfoObject.
Then write the code to populate the variable in Tcode CMOD, Enhancement RSR00001.
Sample Code:
When 'variable tech name'.
var_current_year = sy-datum+0(4).
l_s_range-low = var_current_year.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
append l_s_range TO e_t_range.
In the query restrict Fiscal Year with the new variable & select exclude selection. This would exclude all the rows where Fiscal Year = Current Year.
Hope this Helps!
Maybe you are looking for
-
Hi Last night I tried to install ios 6.1.2. The install failed. I tried again and this time it recommended restoring the phone - I agreed and it worked, but after the restore was completed, I could not get out of the set-up assistant screens on the p
-
HT201269 can i have two itunes accounts on one computer
can i have two itunes accounts on one computer
-
Ipod not being recognized...Windows XP Mass Storage Problem
I'm like many of you who installed the new Itunes 7 and is having the same connection problems. My 30g video Ipod will not be recognized on my laptop and itunes. I believe my usb cord is working properly because when I connect my ipod into the laptop
-
Renaming Folder... sigh
Hi all, Why would I not all of a sudden be able to rename a new folder? When I create a new folder, if I don't rename it right away while it's still selected, I can't rename it later, even in the Get Info box. I thought maybe it was my keyboard, unti
-
Urgent!!!! problems with Toolbar
Hi , I have Toolbar with buttons on it. I also have 3 tables and i'm trying to display them in a panel depending upon the button that is being clicked by the user.For this i have written action listeners which are not working properly. Following is t