Displying Current year and previoues year whlie selecting prompt level
Hi All,
we have year prompt and report level year column,fact1,Fact2(year Ago).
now when we select year value in prompt level we need to display that value and privoues year values.
Ex: if select 2011 in report level need to diplay the 2011,2010.
report factcolumn is working fine i need to disply the year values(like 2013,2012)
Find the image
http://s10.postimg.org/7jvc9svd5/image.png
Thanks,
Hi,
What is your question? what is not working fine? You mean report or Prompt?
Thanks,
Similar Messages
-
Default Current year in select option field on selection Screen
Dear Experts,
I want to set current year as default value in fiscal year select-options field on selection screen.
for this, i hv written following code
DATA:VAR_DATE TYPE SY-DATUM.
DATA VAR(4) TYPE C.
VAR_DATE = SY-DATUM.
VAR = VAR_DATE+0(4).
this retrieves current year .
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-000.
SELECT-OPTIONS I11 FOR ANLC-GJAHR DEFAULT VAR TO VAR.. "Fiscal Year
SELECTION-SCREEN END OF BLOCK B1.
Now when i am executing program pop-up is raised describing "Specify the range Limits". Please help.
Regards,
Apoorv Sharma>
Ganga Bhavani R wrote:
> Use below lines.
>
> SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-000.
> SELECT-OPTIONS I11 FOR ANLC-GJAHR DEFAULT SY-DATUM+0(4). "Fiscal Year
> SELECTION-SCREEN END OF BLOCK B1.
Hi, Ganga,
I think it will not working properly that way, Please test the bellow Sample Code.
TABLES: anlc.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
SELECT-OPTIONS i11 FOR anlc-gjahr .
SELECTION-SCREEN END OF BLOCK b1.
INITIALIZATION.
IF i11[] IS INITIAL.
i11-low = sy-datum+0(4).
APPEND i11.
ENDIF.
Thanks and Regards,
Faisal -
How to create Current Year Filter at Universe Level ?
Hi,
I want to create a Current Year, Next Year and Last Year filters at Universe Level.
Can anyone help me with this.
I am using Netezza database and not able to find the appropriate date function in Netezza to accomplish this.
Any suggestions ?
ThanksHi,
You would somehow need to extract the Year part from the system date..
then
Current Year = Year
Next Year would be i.e Current Year + 1
Last Year would be i.e Current Year - 1
I guess this is the simple part... but you would need to find those functions on your RDBMS..
Hope this helps
Jacques -
Hi,
How to show current year in week prompt in sql request as dufault value
thanks
Edited by: 896398 on May 7, 2012 7:59 PMHi,
when you creating prompt under show label select 'SQL Results' and write the below code to choose year from week columns
SELECT YEAR(week_column) FROM SubjectArea
after that come to Default to label-> SQL Results and write the below code to show current year as a default value.
SELECT MAX(YEAR(week_column)) FROM SubjectArea
Note: Replace week_column and subjectArea with your column name and subject area name respectively.
Hope it helps!
Regards,
Pandian -
Display Current Quarter and Previous Quarter???
Hi Gurus,
I Had a requirement to display only the current Quarter and previous quarter in the report level using single quarter column.
and my quarter value type is Q1 2013.
Please anyone help me out on this asap/
Thanks.Hi,
Using time serious function you can acheive this requirement.
http://obieetutorialguide.blogspot.in/2012/02/modeling-time-series-function-in-obiee.html
OBIEE 11g Time Series Function
or,
Using presentation variable you can achieve this.
Re: OBIEE 10g LY YTD returns YTD for past years
The above thread for year you can change to qtr.
Hope this help's
Thanks,
Satya -
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 -
Sales report for current month and year a go month
i could you please guide me builting report for current monthwise for current month and year a ago month
report parameter month_year='06-2010'
tables = sales and below are the table fields
customer_id
invoice_dt
invoice_am
thanks
nhmOkay, Still you did not mention how you will pass value in report while generating.
Anyway the query with UNION ALL will work. For Example.
I am assuming that the parameter for date/month you will pass in range like 01-JUN-2010 to 30-JUN-2010
SELECT customer_id, SUM(curr_value) curr_value, SUM(past_value) past_value
FROM
SELECT customer_id, NVL(SUM(invoice_amount),0) curr_value, 0 past_value
FROM sales
WHERE invoice_dt BETWEEN :P_FROM_DATE AND :P_TO_DATE -- here P_FROM_DATE and P_TO_DATE will be the date range for current year as i showed above.
AND -- Any Condition goes here...
GROUP BY customer_id
UNION ALL
SELECT customer_id, 0, NVL(SUM(invoice_amount),0)
FROM sales
WHERE invoice_dt BETWEEN ADD_MONTHS(:P_FROM_DATE,-12) AND ADD_MONTHS(:P_TO_DATE,-12) -- This add_months function for the previous year same month.
AND -- Any condition goes here...
GROUP BY customer_id
GROUP BY customer_idNow using the above query you can design the tabular report as you showed the format.
-Ammad
Edited by: Ammad Ahmed on Jul 3, 2010 7:55 PM
added GROUP BY -
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 -
Each year for the past 5 years I make a family calendar and send copies to all he family members around the globe. I hate that I have to recreate all the birthdays and special occasions from scratch, and re-drag all the photos onto these dates, in the lower half of the page of each month on the new calendar. How can I create a new calendar for the current year and port all of these photos/comments into the new calendar from last years calendar, to save having to redo all this work!! I am not talking about the upper half page of the photos only...I am referring to the calendar page of each month.
Thanks in advance.
ColinWelcome to the Apple Discussions. Open iWeb so you see your original site in the left hand pane. Use the File->New Site menu option to create a new site. Give it the name you want.
Now select a page in your original site and type Command+D. That will duplicate the page. Drag the duplicate page down to the new site and rename it as needed. Do that for the other pages you need in the original site.
OT -
How to get Current Quarter and Fiscal Quarter for a Date - Fiscal Year starts from 1st April
Hi,
I need to calculate current quarter and fiscal quarter in my Sql query.
I have a column for DateTime Datatype.
I need to find out Current Quarter Name like Q12012, Q22012, Q32012, Q42012 and Fiscal Quarter Name as well.
Now Fiacal Year starts from 1st April, and Current Quarter starts from 1st Jan.
For Current Quarter of 2012
Jan-Mar = Q12012
Apr-Jun = Q22012
Jul-Sep = Q32012
Oct-Dec = Q42012
For Fiscal Quarter of 2012 ( starts from 1st Apr, 2011 )
Apr2011-Jun2011 = Q12012
Jul2011-Sep2011 = Q22012
Oct2011-Dec2011 = Q32012
Jan2011-Mar2012 = Q42012
means if its 1st April, 2012,
its a new Fiacal Year 2013 so Fiacal Quarter Name should be Q12013
and its Current Quarter Name should be Q22012
Can you help me to calculate this in a select query for given dates?
Thanks in advance,
NiravThis should do it..
Select
FORMAT(datepart(quarter,getdate()),'Q#')+FORMAT(getdate(),'yyyy') -
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 -
Running Total and In Current Year Columns Source
Hi all,
What is the source for Running Total and In Current Year Columns from Absence Detail Screen.
From Which tables can I get the information on those columns.
Thanks in AdvanceHello,
I am still struck with Running Total Column
When i fetch running total using this query it works for some of the employees
SELECT SUM(ABSENCE_hours) from PER_ABSENCE_ATTENDANCES where person_id = <your person id> and absence_attendance_type_id = <your absence type id>
As there are three different cases here as Days,Hours and No Balance
I am missing the logic again here when it comes for no balance and days
Thanks -
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] -
Store value less than current week and year.
Hi All,
I have a table called BACKLOG whose structure is like this
ITEM_NUMBER YEAR_WEEK MS
1N58 2012-WK02 01/15/2012
1N58 2011-WK02 01/15/2011current from my procedure i am storing the value in my new table which is less than current week. But i want to store the value less than current week and current year. Please help me to get how i can do this.
PROCEDURE BACKLOG_PROC_LT_CW IS
BEGIN
DELETE BACKLOG_LT_CW;
COMMIT;
INSERT INTO BACKLOG_LT_CW
SELECT
DC_UTIL.GEN_YEAR_WEEK(MS) YEAR_WEEK,
ITEM_NUMBER,
MSD
FROM BACKLOG
where to_char(MS, 'IW')<to_char(sysdate, 'IW');
END BACKLOG_PROC_LT_CW;Currently with the above procedure code both the value is storing in my BACKLOG_LT_CW table but if you see the data of BACKLOG table you will find YEAR_WEEk 2012-WK02 falls in next year but still it is storing in my table because i have taken IW only. Please help me to get the soln
Thanks in advance
RegardsAre you looking for this?
where to_char(MS, 'YYYYIW')<to_char(sysdate, 'YYYYIW'); -
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.
Maybe you are looking for
-
Must I reformat an external hard drive?
Hello, I purchased a new MacBook Pro w/ Retina and wanted to install bootcamp. On previous computers, I have been able to simply partition the internal hard drive and install windows on one half. Is there any way I could do that with Bootcamp 5.1 or
-
I read a little at a time, someone is always asking for my assistance, so , can I get this information in a hand book or just print out the page I may be on at the tme
-
Guys, I am having issues in my script when am querying the collection objects in latest SMO (SQl 2012) Using Microsoft.SqlServer.Smo, Version=9.0.242.0 below line returns valid table object. $table = $db.Tables[$tablename] But using Microsoft.SqlSe
-
I have a new 2005 Windows HP that quits after 1 minute every time.
Off subject, I know, sorry,bt it's a media Center Hewlett Packard m376n Intel P4 w/HyperThreading. I've had the P4 chip replaced with others and still,it'll shut down after approx. 1 minute after booting up.Never fail. I paid for a HP plan that repai
-
Is it possible to have two music libraries and eventually merge them?
I've got an old workhorse G4 desktop and a relatively new Aluminum laptop. I'm planning on buying an Intel desktop machine when they become available. In the meantime, I'm hoping to migrate everything to the laptop and use it exclusively. The problem