BEx: Compare Week current year vs. prev. year
Hello,
In BI7.0 I have to create a report with following design:
Budget 2009:
Week 01.2009 : 50
Week 02.2009: 60
Week 03.2009: 70
Budget 2008:
Week 01.2008: 30
Week 02.2008: 35
Week 03.2008: 40
The report shout display on rows level: 01 / 02 / 03 and so on (WITHOUT year).
The target is to compare on weeks level the budget for the different years.
Any idea?
Hi,
U can keep calweek in rows, then year and the budget keyfigure in columns.Place the year(probably 0calyear) above the keyfigure structure in column.
As for displaying week with year create a text variable on the calweek(which is in rows) displaywhich shall be a customer exit and return the week part alone(from customer exit).
Hope it helps.
Regards,
Rathy
Similar Messages
-
Line Chart to Compare Current Year vs Last Year
I am on BI 7 SP9. I need to create a line chart that shows 2 lines to compare revenue for the current year against last year. The first line should show the revenue for the current year. The second line should show the revenue for last year. In my BEx query, I have the fiscal period values in the row and the revenue key figure in the column. Questions:
1. How can I show 2 lines in the chart to compare revenue for the current year vs last year?
2. There are 2 variables for the fiscal period - one for current year and one for last year. The user can enter any value range in the fiscal period variables at query runtime, but the fiscal periods for each of the 2 years must be the same. This means the number of fiscal periods that appear in the query result rows will vary (e.g.. 3 periods for a quarter or 12 periods for a full year). The user has to enter the same fiscal periods for the current year and last year variables. How can I determine the fiscal period values to plot in the line chart for the current year and then last year when the number of rows in the query results will fluctuate?
The legend at the bottom of the chart should show JAN, FEB, MAR...DEC instead of the fiscal period values like 001/2007, 002/2007. Is there an exit I have to change to get this to work?
Thanks for any help you can give!You can do it in multiple ways
1.
SELECT COALESCE(t1.Company,t2.Company) AS Company,
COALESCE(t1.Sales2015,0) AS CurrentYearSales,
COALESCE(t2.Sales2014,0) AS PriorYearSales
FROM Sales2015 t1
FULL JOIN Sales2014 t2
On t2.Company = t1.Company
2.
SELECT Company,
MAX(CASE WHEN YearVal = 2015 THEN Sales ELSE 0 END) AS CurrentYearSales,
MAX(CASE WHEN YearVal = 2014 THEN Sales ELSE 0 END) AS PriorYearSales
FROM
SELECT Company,Sales2015 AS Sales,2015 AS YearVal
FROM Sales2015
UNION ALL
SELECT Company,Sales2014 AS Sales,2014
FROM Sales2014
)t
GROUP BY Company
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
BEx - Display current year and previous year by day on the same row
Hello experts, need some help/suggestions on how I can accomplish the following please.
We have a requirement to show MTD revenue by day for the current year and previous year. The desired result will have the following columns
Calendar Day | Current MTD Revenue | Prev MTD Revenue
11/01/2009 | 15,131,005 | 15,138,668
11/02/2009 | 15,055,345 | 15,523,762
However, the result is showing up as follows:
Calendar Day | Current MTD Revenue | Prev MTD Revenue
11/01/2008 | | 15,138,668
11/02/2008 | | 15,523,762
11/01/2009 | 15,131,005 |
11/02/2009 | 15,055,345 |
The number of rows for Calendar Day varies depending on the date the user selects. We only want to display the days for the current year with the Previous Year Column on the same row.
Can someone please let me know how I can get the results to display on one line for each day?
Thanks,
DavidI have the same issue on my end, and am interested in responses. I searched the forum and found this suggestion in another post; not sure if this solution will help, but it looks like it might. This was a response from poster RadhaN:
RadhaN
Posts: 390
Registered: 8/27/09
Forum Points: 876
Re: a simple query to show sales versus last year on daily basis/
Posted: Sep 21, 2009 9:53 AM in response to: Shlomi Weiss Reply
HI Shlomi
Create a virtual characteristic in your infoprovider that can calculate the day from calendar Day. In ZXRSRZZZ while adding code for this virtual characteristic use the function module DATE_COMPUTE_DAY to compute the day for every calendar day.
For calculating Sales Current year, create a restricted ky figure with Sales as the key figure. Add 0CalDay to this RKF and create a variable for this infoobject(Eg: ZCURYEAR) that will receive input from the user for the range of dates eg: 08/16/2009 - 08/22/2009.
For Sales Prior year, create another restricted key figure with Sales. Add 0CalDay to this RKF and add a customer exit variable. In the Customer exit code use the ZCURYEAR variable and offset it to prior year in both the upper and lower limits. This should work.
I hope this helps.
Thanks. -
Current Year and Previou year Data comparision - Urgent
Hi Experts,
In our report we need to compare the sales value for current year and prevous year.
The Fiscal year is the input selection field.
Output report displayed as below
Product|Current year sales|Previous year sales|
404 |120.00 |20.00
400 |122.00 |22.00
Total |242.00 |42.00
Could any body help how do i use the fiscal year/period or fiscal year for the current sales and previous sales values.
Thanks in advance.
MahanteshYou have to restricit current year column with the variable Fiscal year and previous year colum with same variable with offset -1.
For year period use a range with from valie '001.1990' and to value a variable for current and the same variable with offset -12 for previous.
Hope it helps.
Regards -
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 -
Parameter for current year and previous year
Hi all,
I currently have 2 reports where the query is the same except in the where clause I have it filtered to current year and previous year based on the List_Date. I would like to make this one report with a parameter of Current or Previous year.
Would I create 2 more datasets one for current and another for previous? I would think there is a easier way. Any help or direction would be great.If you define a parameter in SSRS, you can use it's value in your query. Just make sure the parameter name, and CASE (SSRS is case sensitive when it comes to parameters) are the same in SSRS and your query. There's a parameter tab on the dataset properties.
It SHOULD auto fill, but it never hurts to check, just in case.
Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.
Yes it did auto fill the parameter tab in the dataset and I get a parameter to enter the year when I preview the report. Still a little confused on how I do current or previous year. Are the next steps what I need to do?
@yearParam parameter:
1) Create Available or Default values
2) Current and Previous year as label
3) For Value do I need to use a expression for current year =Year(now()) and previous Year?
4) Add a filter on the tablix for list_date? -
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.
-
AGO function in OBIEE to display weekly sales data of this year vs last yea
All,
I would to create an analysis that display this year sales numbers vs last year by weekly
I was able to do this at month level by specifying the offset value to 12 to the AGO function in repository.
I am not able to do at week level.
Can someone please help?
ThanksCheck the W_DAY_D or W_WEEK_D for number of weeks per year, validate the year/4 then its leap year then 53
Use this in ago function at <<Number of Periods>>.
I think you have to go for 53 based on these tables some times 54. -
Last ten years and 5 years afterwards from Current year
How can i get last ten years and 5 years afterwards from Current year in a single query which is picking data from dual.
SQL> select add_months(sysdate, -1 * 10 * 12), add_months(sysdate, 5 * 12) from dual ;
ADD_MONTHS( ADD_MONTHS(
14-FEB-1996 14-FEB-2011
1 row selected.
SQL>
[rep] -
Displaying current year and previous year's data.
hi all,
we have fields like doc.no, company code, costcenter, posting date, year etc... in a query.
we are using this query to display data in VC,
how can i display the current year and previous year's data in two different tables using the available fields.
any help will be highly appreciated.
thanks,
RkHi Rk,
You can achieve your requirement using 'Filter' operator. Drag one 'Filter' operator into visual composer story board and drag the output into filter and add condition(Check year=2008) and drag one table from filter. For another table use another filter and change the condition.
Hope it helps...
Regards
Basheer -
Current date / day of year in formula
Dear all,
For a calculation, I need the day of the year in order to calculate a year-to-date budget (derived from the full year budget).
[ YTD budget = Full year budget * day of year / 365 ]
The full year budget is in my infocube, as is 0FISCYEAR and 0FISCPER and 0CALMONTH2.
The infocube provides actual and budget data per month (0FISCPER) as most detailed level (so 0calday is not part of my cube).
In order to make the calculation I presume I need the variable 0DAT (SAP Exit) but I am not sure if that is correct.
Problem is: I am not able to and/or don't no how to use this variable. The documentation says that 0DAT is part of 0calday, and I am not using that characteristic...
And when I try to create a new variable, and specify that I want to use a SAP exit and enter the name '0DAT' I get a message in return that the name is already in use....
It seems to be a waste of space to add 0calday to my cube, just to be able to get the current date for my calculation...
So, suggestions would really help me:
How can I use the 'current day of the year' in a formula - preferably without addomg 0calday to my cube...Hi Ansem,
The defalut 0DAT variable is charecterstic variable which you can't use it in formula(only formula variables can be used in formulas).
So, you need to create a new formula variable with customer exit procssing type. In the customer exit code you assign day of the year to the variable .
Then use this formula varibale in your formula in place of day of year.
If this helps to solve your problem, do not forget to assign points.
Regards
MB -
Current date, first day of month, last day of month, current week, current
Hi All,
may be the question will sounds basic for your guys, I am connecting via MDX a cognos reportnet on a BW 3.0B..due to loads of limitations on filtering via MDX on 'business date/time functions' , I would need to create in the infoqueries that are my data sources, the following additionnal objects:
- current date
- first day of current month
- last day of current month
- current week
- current year
I do not want prefiltered infoqueiries but object with these single values so that from reportnet I can have something like: OCALDAY between 'first day of current month' and 'last day of curent month'
Is there standard fonction for this under BW/BEX or if we need to developp functions has nayone some code examples.
thanks a lot for your great input
DavidHi,
In universe level if you want implement the requirede functions then you have to write custom sql and if you want to implement them in Reporting level then most of the functions are available to you. e.g. Quarter,Month, Year, Current Date....
Cheers,
Suresh A. -
Changing group from calendar year to GL year
I am currently using Crystal reports with a ERP system called IQMS.
I am trying to grab data from our genral ledger year (1 of august to 31 of july) instead of the calendar year.
The data can come from either the year or the week (52 weeks). I am currently grouping items from the calendar year but cannot figure out a formula for taking say week 30 to week 29 of the next year and grouping it.
Does anybody have suggestions on how to enter in this formula?Stephanie,
Some DB developers really need to be punched in the throat.
1st of all weeks are messy little animals all by themselves. they don't play nice with the other date increments. The start of a week rarely coincides with the start of a month or year...
So lets just say that you are willing to live with the fact that weeks and months don't usually jive and that the use of weeks in the equation will throw of the exact determination of the GL year by a day or few in either direction... Here is what you want...
IF {V_SHIPMENTS_WEEKLY.WEEK} >= 30
THEN {V_SHIPMENTS_WEEKLY.YEAR} + 1
ELSE {V_SHIPMENTS_WEEKLY.YEAR}
The effect will be:
weeks 1 - 29 of 2009 = 2009
weeks 30 - 52 of 2009 = 2010
weeks 1 - 29 of 2010 = 2010
weeks 30 - 52 of 2010 = 2011
HTH,
Jason -
FI-AA Impact on changing the year dependent fiscal year period from 445 to 435
Dear Friends,
May I have your comment on the impact of below change
Currently using Year Dependent fiscal year variant K5 and period end closing is *445
future we want to use the same fiscal year dependent variant K5 , however the period end closing will be *435
*445 Periods - 1st month 4th sat, 2nd month 4th sat, 3rd month 5th sat will be the closing periods
similarly for the rest of the months in a year
*435 Periods - 1st month 4th month, 2nd month 3rd sat, 3rd month 5th sat will be the closing periods
similarly for the rest of the months in a year
Impact on Asset Module and other modules will be a great help
Regards
SBHi Sanjai,
SAP do not recommend to change a Fiscal Year Variant that has already
been assigned to a company code and has already some postings. This
will may create database inconsistencies
Please check the following SAP notes which will give you an
idea of some adverse effects that may happen as a result of a change
based on the modules/components you have implemented in your system.
427920 Analysis program for fiscal year conversion
210861 Changing fiscal year variant in production system
193713 SAPF070: Change of fiscal year variant
672255 Shortened fiscal year/changing fiscal periods
The change of the fiscal year or the change of the fiscal periods
has an effect in many modules, for example, in FI, FI-AA, FI-SL, FI-LC,
EC-CS, IM, CO, EC-PCA, MM, PP, SD, PS, PM.
Corresponding risks (for example, data inconsistency, system standstill)
can arise from incorrect changes to the fiscal year or from incorrect
changes to the fiscal periods in a live SAP system.
You can refer to the following wiki page also:
http://wiki.sdn.sap.com/wiki/x/jYXrCw
I hope you find this information helpful.
Regards,
Jose -
FI Impact on changing the year dependent fiscal year period from 445 to 435
Dear Friends,
May I have your comments on the impact of below change
Currently using year dependent fiscal year variant K5 and Period closing is *445
Future we want to use the same year dependent fiscal year variant K5 and period end closing is *435
*445 Periods - 1st month 4th sat, 2nd month 4th sat, 3rd month 5th sat will be the closing periods
similarly for the rest of the months in a year.
*435 Periods - 1st month 4th sat, 2nd month 3rd sat, 3rd month 5th sat will be the closing periods.
similarly for the rest of the months in a year.
Impact from FI perspective and other modules would be of great help
Regards,
SBHi Sanjai,
SAP do not recommend to change a Fiscal Year Variant that has already
been assigned to a company code and has already some postings. This
will may create database inconsistencies
Please check the following SAP notes which will give you an
idea of some adverse effects that may happen as a result of a change
based on the modules/components you have implemented in your system.
427920 Analysis program for fiscal year conversion
210861 Changing fiscal year variant in production system
193713 SAPF070: Change of fiscal year variant
672255 Shortened fiscal year/changing fiscal periods
The change of the fiscal year or the change of the fiscal periods
has an effect in many modules, for example, in FI, FI-AA, FI-SL, FI-LC,
EC-CS, IM, CO, EC-PCA, MM, PP, SD, PS, PM.
Corresponding risks (for example, data inconsistency, system standstill)
can arise from incorrect changes to the fiscal year or from incorrect
changes to the fiscal periods in a live SAP system.
You can refer to the following wiki page also:
http://wiki.sdn.sap.com/wiki/x/jYXrCw
I hope you find this information helpful.
Regards,
Jose
Maybe you are looking for
-
Running External jobs in Oracle 10g using a different user ID
Hi, i would like to run an external job ( shell script ) in oracle scheduler using a Unix user id other than nobody and oracle. is it possible to do that? if so please provide more information. I am currently using oracle version 10.2.0.4.0
-
From what I can see from product pictures on T550 and w550s models, Lenovo has made the palmrest longer i.e. it appears at least 2cm longer than other models such as t540p, e550 or w540. I am currently using a MacBook pro which has a palmrest that is
-
Had to reinstall my OS when done I tried to reinstall apps from app store but they are not there. When I go to that apps page it only give me an option to purchase again. How can I download again? Does the app store have a feature like iTunes to vie
-
Flickery Display with Debug Flash Player 10,3,181,34 and IE9
Hello, I hope this is the right forum for this, it's kind of a combination of a Flash Player issue and maybe a programming issue. Anyway, I've been making this project that has an image move based on where the mouse cursor is (in Flex Builder 3). The
-
EDLNOT - Delivery creation issue
Hi I had a quick question on EDLNOT message type of IDOC. Please let me know the answer when you get a chance. here document flow here is as follows: Scheduling agreement LK => Delivery into Consignment storage location => ED-Order (pick up from the