Current Year and YTD Calculation
Hi All,
I have fiscal year and fiscalyear/period two time chars........in my report i want one column as current year and the other coulmn as current year YTD(year to date).........
fiscalyear/period values are between 1 to 12
fiscal year values 1999 to 20009.
please help on this.......
also how do i close a thread?
Thanks
Create two variables on fiscal year one with user entry and the other customer exit ....use below code
CASE i_vnam.
WHEN 'ZPFY'.
DATA: Z_YEAR TYPE /BI0/OIFISCYEAR.
IF I_STEP = '2'. "after the popup
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = '0P_FYEAR'.
Z_YEAR = LOC_VAR_RANGE-LOW.
Z_YEAR = Z_YEAR - 1 .
CLEAR L_S_RANGE.
L_S_RANGE-LOW = '1999'.
L_S_RANGE-HIGH = Z_YEAR. "high value = input - 1
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
ENDIF.
WHEN 'ZAPOPR'.
DATA: Z_POSTING TYPE /BI0/OIFISCPER3.
IF I_STEP = '2'. "after the popup
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'ZAPOPR'.
Z_POSTING = LOC_VAR_RANGE-LOW.
Z_POSTING = Z_POSTING .
CLEAR L_S_RANGE.
L_S_RANGE-LOW = Z_POSTING.
cleaR: Z_POSTING.
Z_POSTING = LOC_VAR_RANGE-high.
L_S_RANGE-HIGH = Z_POSTING. "high value = input
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
ENDIF.
Similar Messages
-
Current Year and YTD in Report/Query
Hi to all the experts here,
I have a report requirements to show the cost in the report for the current fiscal year and last fiscal year filtering by YTD month in the report as below when the user enter the month: 12.2010, the month: 07.2010 is the first posting period of the fiscal year.
07.2010 08.2010 09.2010 10.2010 11.2010 12.2010 Last Fiscal Year Last 2 Fiscal Year
Current Year 10,000 20,000 20,000 20,000 20,000 20,000 100,000 90,000
Last Year 15,000 15,000 15,000 15,000 15,000 15,000 120,000 100,000
I know that I need to create customer exit to archieve this, but I not sure what to do to get this, I have problems on getting the figures for the Last Fiscal Year and Last 2 Fiscal Year here.
Please help. Appreciated alot. Thanks alot!Hi
The Fiscal year/period (0FISCPER) in your BW system must be maintained as starting from 07.2010 onwards then you can try the below:
In the report Filters you can use the manual entry variable for 0FISCPER where the user can input the month restrictions.
Then for the Current year and Previous year amount KFs you can create 2 customer exits for Current year and Previous year on 0FISCPER characteristic where you can set the interval using the values input by the user in the selection screen. (eg. If user enters 7.2010 to 12.2010 you can use these values in the exit code to set the interval for the customer exit variable.)
This way you can have the amounts restricted by the period entered by the user in the report.
For the structure you have mentioned in your post you can have the 0FISCPER in columns and then the KFs current/previous year in the rows so that once you have the Current/Previous YTD as created above, you will see the individual month period values also in the drilldown.
Hope this helps.
Regards,
Ninad -
Current Year and Previous Year (derived) data comparison
Scenario:
Dimension Table for Date:
-Current Year
-Previous Year
-and other date related fields
Fact Table:
-Sales (contains current year sales depending on the filter set)
*Filter on Year
Would anyone know how will I create a measure for Previous Year Sales?
So that whenever my report shows the current year (for example: 2009) data of my sales, I can also have a column that would also display the previous year data and it will automatically know that it would display the previous year data of the Current year displayed in my report.
Also, how to derive the percentage change of this 2 columns.
Year: 2009
Branch --- Current Year Sales (Sales from Fact table) 2009 --- Previous Year Sales 2008???
I want to add the Current Year Sales And Percentage Change of Sales in the Business Model/Mapping Section. so that it would be available in the presentation layer of Oracle Answers.
Thanks.
Edited by: user12074468 on Oct 16, 2009 4:38 PMUse column filters. Click on the fx button on your Sales column. Click on the Filter button. Now go to the Time.Year column you have and click on it. When the filter window comes up, click on Advanced and convert the filter to SQL. Now insert the Current Year column so that you have Time.Year = "Current Year" Click "OK."
Get another Sales column and put it in your workspace. Follow the above procedure except this time use th Previous Year column.
Now you have two Fact columns, one that filters for the Current Year and one that filters for your Previous Year.
Now for your variance, click on one more column and place it in your workspace. Click on the fx button. This time click on the "Column" button. You will see a list of your columns. From this, create the (Current Year)-(Previous Year)/(Previous Year)*100.00. In the Data Format tab, change the format to percentage.
You also have the option of creating the above calculations in the BMM layer too. -
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 current month?simple question
How can i get four Digit current Year and two digit current month. So if is march it should get me as 03 and the Year as 2002. Please do help me, is a simple question isn't it ?. Thanks for your earliest response.
Thank you.i have a directory structre of the format
REPTS2000209/E200209-98000001
in which 2002 is current YEAR
09 is current month
and 9800001 is the code i would submit(list box) from a form
so what i need is a program that can generate the above path and open that particular PDF file
so basically E200209-98000001.pdf is the PDF file.
i am submitting it from JSP page. PLEASE HELP ME how can i program. -
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? -
How to compare a Date data with Current Year and Period Member on FIX
Hi experts,
I have a Project dim that each member is a Project (P01, P02...)
and Account dim that stores information of the each Project (Name, Start date, Finished Date...)
Finished Date member is in Date data type
So how can write a IF condition below in order to compare Project Finished Date with Current Year and Period members on FIX
FIX (@Descendants(Projects), Descendants(All Year), Descendants("Year Total")...)
IF (@CURRMBR(Period)->@CURRMBR(Year) < Project->FinishedDate)
Do something...
Else
Do something
Please help me on this. Sorry for my bad grammar. Please ask if there is anything unclear
Many thanks,
Huy Van.
Edited by: Huy Van on Jan 29, 2013 1:14 AM
Edited by: Huy Van on Jan 29, 2013 2:24 AM
Edited by: Huy Van on Jan 29, 2013 2:25 AM
Edited by: Huy Van on Jan 29, 2013 6:04 PMHere is what I have done. Post for whom may concern later
VAR FM; /* Finished Month of Project*/
VAR FY; /* Finished Year of Project */
VAR CM; /* Capture Current Month on FIX statments */
VAR CY; /* Capture Current Year on FIX statments*/
FIX ( @RELATIVE( "Year", 0), @RELATIVE( "Period", 0), @IDescendants( "Base Projects")....)
FY = @ROUND( "TGHT"->"NA Contract"->"FY06"->"NA Period" / 10000, 0);
FM = @MOD( @ROUND( "TGHT"->"NA Contract"->"FY06"->"NA Period" / 100, 0), 100);
/* For FY13 return 13... */
CY = @JgetDoubleFromString( @CONCATENATE( "20", @SUBSTRING( @NAME( @CURRMBRRANGE( Year, Lev, 0, 0, 0)), 2)));
/* Set CM value based on currrent Period On FIX statement */
IF ( @ISMBR( "Jan"))
CM = 1;
ELSEIF ( @ISMBR( "Feb"))
CM = 2;
ELSEIF ( @ISMBR( "Dec"))
CM = 12;
ENDIF
IF ( CY < FY OR ( CY == FY AND CM < FM))
Do something...
ELSE
Do something...
ENDIF
ENDFIX
Edited by: Huy Van on Feb 19, 2013 11:10 PM
Edited by: Huy Van on Feb 20, 2013 7:46 PM -
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 -
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 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 -
Key figure comparision between current year and previous year
Hello collegues,
I have created a WEB Intelligence report with key figure ROI (return on investment which is calculated out of three other key figures (capital, revenue and costs). I would now like to calculate the percentage period (year) differences between key figure ROI - between current year (month) and previous year (month).
Do I have to add coding within a key figure formula within WEBI Rich Tech client or within universe builder.
The key figures were extracted from SAP BW and added to a universe which is basis for WEBI rich tech client report.
thanks and regards,
ChristianHi Stratos,
so I see - i have to use the variable Editor and then define a measure and add coding in the formula field. Do you have an e-mail address ín order to send you the report and explain in more detail what I would like to see - here it is not possible to upload a report...
thanks and regards,
Christian -
Current Year in a calculated field
I need to calculate how long a client has been with our company. I created a "inception date" field for when they became a client, but every new year I have to go in and update the formula with the current year. Is there a way this
formula can automatically update with each new year so I don't have to remember to do it manually (e.g., the 2013 is replaced with Year(Today) or something like that).Lets assume that you somehow managed to replace 2013 with something more dynamic (e.g. workflow or whatever) but you do realize that your calculated column is not going to be update itself. Correct? You need to update the item to have the updated value anyway
in the calculated column.
Given that you need to update item at-least once to have the updated value.
You can automate this process either by using a service, a Visual Studio Workflow or SPD Workflow. If you use workflow the key is to run workflow on single item and let workflow update items in actual list. This can be easily achieve using VS workflow but
using SPD You may need some workaround. One example shown below.
http://social.technet.microsoft.com/Forums/windows/en-US/d374427d-ee11-4a49-b405-23e68f3c3eaa/how-to-loop-through-another-list-and-update-a-column-with-sharepoint-designer-2013-workflow?forum=sharepointcustomization
Amit -
Hi
I have created a report with two prompts, they are "Enter Start date:" and "Enter End date:" where i take date values from a calendar while prompting.
For example:
Start date = 10/11/2003
End date = 10/10/2003
If i want to display the End date means, i ll use UserResponse("Enter End Date:") in the webi reports. What should i do to calculate Year and Month from this user response value,
i used these calculations below, but it is not working, showing me #ERROR message.
1) ToDate(UserResponse("Enter End Date:");"dd/MM/yyyy") = #ERROR
2) FormatDate(ToDate(UserResponse("Enter End Date:");"dd/MM/yyyy");"dd/MM/yyyy") = #ERROR
3) Year(UserResponse("Enter End Date:") = The expression or sub-expression at position 6 in the 'Year' function uses an invalid data type. (WIS 10037)
4) FormatDate(ToDate(UserResponse("Enter End Date:");"dd/MM/yyyy hh:mm:ss A");"MM/dd/yyyy") =#ERROR
so help me how to get the year and month values from prompts ?
Thanks
Dineshkumarto get the Month Value and year value in Webi
month name
=Month(ToDate(UserResponse("Enter End Date:");""))
month number of the year
=MonthNumberOfYear(ToDate(UserResponse("Enter End Date:");""))
to get the Year Value
=Year(ToDate(UserResponse("Enter End Date:");""))
good luck -
How to show current year and last year sales in a WEBI Report
Hi Guys
How can show current YEar Sales in one column and Last YEar Sales in the other column based on a user prompt for the Current YEar Column.
For Example is user enter 2010 for Year how can i show a Column for Sales-2010 and Sales 2009.
ThanksIf you can modify your Universe add an object named New Object Last Year whose SQL is:( yourTableName.Year + 1)
Then in WebI create two distinct queries in your query Pane. In the first one you could do this:
Query 1:
objects: Year, Sales ... etc.
filters: Year Equal to '1. Prompt Year'
Query 2:
objects: Year, Sales ... etc.
filters: New Object Last Year Equal to '1.Prompt Year'
Then in your report you can drag each object on their respective columns.
If you don't want to use two distinct queries, use one like this:
Query 1:
objects: Year, Sales ... etc.
filters: Year Equal to '1. Prompt Year'
Or
New Object Last Year Equal to '1.Prompt Year'
Edited by: PadawanGirl on Jun 23, 2011 6:28 PM -
How to display Current Year and Month in Drop Down list
Hi Dear friends,
I am devloping a report. It has got 2 pages--input and output(Report) page.
IN input page, user will select Month and Year from drop down list as one of the input parameters. (seperate drop down list 4 month and year)
Now, my problem is:
HOw to display current month and year by default in the dropdown list...........
I hope my question is clear.
Please help.
Regards,
AShNO da,
it is not working.
First i tired with for-loop. I initialized variable "i" to -2 (i=-2) I would get the year drop down list from 2003 but, by default 2003 would come.
So, i posted the question.
I tried your code. It is giving following error.
A Servlet Exception Has Occurred
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occured between lines: 122 and 127 in the jsp file: /test/inpt.jsp
Generated servlet error:
C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:182: Invalid type expression.
first.set(Calendar.YEAR, 2003)
^
An error occured between lines: 127 and 131 in the jsp file: /test/inpt.jsp
Generated servlet error:
C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:186: Invalid declaration.
out.write("\r\n \r\nYear : \r\n \r\n"); ^ An error occured between lines: 198 and 203 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:282: Invalid type expression. first1.set(Calendar.YEAR, 2003) ^ An error occured between lines: 203 and 207 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:286: Invalid declaration. out.write("\r\n \r\nYear :\r\n \r\n");
^
4 errors
Pls. Help.
Regards,
Ashu
Maybe you are looking for
-
How do I use the command "F" function in Numbers on my iPhone or iPad?
When I use Numbers on my MacBook Pro I just hit command F and can search for a word then it will tell me exactly which line number that word is on. I want to be able to do in the numbers App on my iPhone or iPad? Thanks!
-
Crash SUBMITTER crashes every time I try to submit a problem to apple!
I've searched and can find no similar posting... any clues? I've deleted .../preferences/com.apple.crashsubmitter.plist but no difference. thanks
-
I no longer can click on a link in an email and open a location
I must now copy the link and paste it in the address bar
-
Assignment Field is blank in the Accounting Document of MIRO
Hi Gurus I am working on ECC 6 version. I have observed in my system that for some of the vendor invoices posted using the MIRO transaction, assignment field is blank in the respective Accounting Document for the Vendor Line Item. But for GRIR Line I
-
How it's possible?! Can I being hacked? Help me out please!
Hi there! I'm so begginer on MAC OS and I have heaps of questions. Hope people here help me out. My English is not good so I apologise any gramar mistakes. I tried to describe my problem above: My macbook pro has a 320GB hard disk but when i click at