Dafault value previous month in BEx
Hi Experts,
I have a report where I have to get default value as previous month of current month. Field is of type 0calmonth.
Ex. when user runs the report in october/2009, in the selection screen - the default value for that month should be 09/2009.
Ex. If he runs in January/2009, it should be 12/2008 of previous year.
Ex. He also has the right to change that field the way he wants. He can run report in 05/2009 and put value for month of 01/2009.
How can I do this.
Hi,
while putting a variable on 0CALMONTH choose it in below mentioned way,
right click--> filter --> variable --> range --> Less or equal --> <your variable>.
now in the where ever you have used key figures, put them in selection and also insert 0calmonth and restrict it with same <your variable with offset -1>.
this will work.
Regards,
Akshay
Similar Messages
-
Reg : Curr Month,Previous Month,Curr Month Previous Year
Hi all ,
I have a req where I have to display the sales for
Current Month Sales value
Previous Month Sales value
Curr Month Sales
Previous Year
Curr Month and Previous Month I got it with Time Series AGO Function .
But current month for the Previous Year , I am not able to proceed .
Kindly help.
Reg,
Niv DHi NIV,
You can use the same time series function to calculate current month of last year values.
Ago (measure column , year , 1)
it describes the last year sales of current month
OBIEE -Time Series in OBIEE
Regards,
VG -
OLAP Universes - Based on BEx Query - Month and Previous Month Functions
Hi,
I created a Universe based on SAP BEx queries and I like to create a filter so that I use in Web Intelligence report to run for "Previous Month" data always. There are "Date" filelds in BEx Query(No Month info only date data). I have no knowledge of SAP BEx Queries and new to OLAP universes. Could you help.
How to create filter that show Previous Month.
Nanda Kishore
Edited by: Nanda Kishore B on Dec 26, 2010 6:15 AMThe easiest way (but NOT the most efficient one) is to create a local variable (Dimension) in your report with the following code:
=if (Month(CurrentDate())=1 AND Month([[MyDate]])=12 AND Year([[MyDate]])=(Year(CurrentDate())-1)) OR (Month(CurrentDate())>1 AND Month([[MyDate]])=(Month(CurrentDate())-1)) then 1 else 0
where MyDate is the field from your query containing the data information
Activate the report filter area in your report design panel by pressing the Report filter icon and drag and drop your variable there and apply it to the entire report. Filter value 1 and you will get the data for the previous month.
Keep in mind that this approach is not optimal especially if you do have many rows of data delivered to your WebI report because filtering takes place only AFTER the data is retrieved. The Best practice here is to work with BEx variables.
How many rows of data does your WebI report normally fetches?
Regards,
Stratos -
How to get previous month data from current month values
Hi Experts,
I have made one universe from BW Query in which Fiscal year period is entered in interval.
I have made a universe from that and want to develop webI reports on top of that.
In my webI reports, i have used one cross tab. In Rows section i have added Company Code and in Column section i have used Fiscal Year/Period and in Value section i have added Sales Value. I want this value of previous month.
Requirement:
Ex.
Feb'09 Mar'09 and so on...
Comp_code1 Sales of Jan'09 Sales of Feb'0f and so on....
I am getting this.
Ex.
Feb'09 Mar'09 and so on...
Comp_code1 Sales of Feb'09 Sales of Mar'09 and so on....
I hope i have clear my requirements.
Please help as soon as possible.
Thanks in Advance,
RishitHi Rishit,
Follow the below steps to get the desired result.
Step1: Convert your fiscal year period from char to a date in your database or in your designer however its feasible.
to_date('substr('009.2009',2)','mm.yyyy')
you will get the result 01 sep 2009
Step2: Convert this format to 01/09/2009 by using date functions.
Step3: Create a Detail associated to the 'date' field (typically your fiscal period).
Step4: Create a cross tab Like : Rows section should have Company Code and in Column section should have 'date'(created detail) and in Value section should be Sales Value.
you should get the following result.
01/02/2009 01/03/2009 and so on...
Comp_code1 Sales of Feb'09 Sales of Mar'09 and so on....
Step5: Use the following formula in your Column (date) formula bar.
=(<date>-1)-DayNumberOfMonth(<date>-1)+1
You will get the following result:
01/01/2009 01/02/2009 and so on...
Comp_code1 Sales of Feb'09 Sales of Mar'09 and so on....
Format the cell according to your reruirement.
Let me know if you will get any break in the above steps.
Regards,
Swati. -
How to Bring the Quarter Period and Previous Month Value for given Input
Hi to all,
I want bring Quarter Period and Previous Month value for the given Input. Plz help me on this
Example :
Input : 06.2008
Output:
Input Prev.Month Quarter 1 Quarter 2 Quarter 3
06.2008 05.2008 03.2008 12.2007 09.2008
12.2008 11.2008 09.2008 06.2008 03.2008
Is there any Standad Exit for this or we have to write coding ?
Regards,
SaranHi,
You can solve this by using Replacement path.There you have a option offsets.Here give the current period.Based on that give the number which previouse month you suppose to want.
I think this 'll help you
assign points if this helps
Regards
JT Goud -
Set default value for date/time to previous month
Hi All
I have two date/time parameters in my report and I want to set the default value for both the parameters
For start date parameter I want the first date of previous month and for end date parameter I want the last date of previous month.
Can someone please point me to the right direction
Thanks
RoneHi Rone,
These links can be helpful for you:
http://www.bidn.com/blogs/hardikabhavsar/bidn-blog/1639/default-date-parameters-in-ssrs
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/584a98ae-bb75-4740-9198-e6be3c1aec12/
Regards,
Manoj
*Happy to help
http://experiencingmsbi.blogspot.com/ -
Previous month end based on prompted values
Hello All,
I need to create a SR report that shows:
Received in current month: count of Service requests recorded in current month selected. For instance if date prompt selection was March 2010 then count of SR recorded from Mar 1- 31,2010
Open Service Requests at month end Count of SRs where "Date Completion entered in system" is null as last day of month selected(eg March 31)
Carry over from Previous month: same as Open Service Request as month end less one month.( eg Feb 28)
I currently have a prompt which lets the end user choose the Month and Year they want to run the report for. I am getting the right values in my first two columns but my carry over is giving me problems. Any idea how I can write a formula for 'Carry over from Previous month'??
Any help is appreciated!
SoniaHi Max,
The carry over is causing problems. However, the formula for the month end chosen is
SUM(CASE WHEN CAST ("Service Request"."Closed Date and Time" AS DATE) IS NULL OR CAST ("Service Request"."Closed Date and Time" AS DATE) > TIMESTAMPADD (SQL_TSI_MONTH, 1, (TIMESTAMPADD (SQL_TSI_DAY, - (DAYOFMONTH(CAST ("- Service Request Custom Attributes".INDEXED_DATE_0 AS DATE))), CAST ("- Service Request Custom Attributes".INDEXED_DATE_0 AS DATE))))THEN 1 ELSE 0 END)
But when I use this formula for previous month (-1).. It does not work. It gives me zero.
Thanks!
Sonia -
Hi,
I have a couple of accounts that use the previous month value across years. However, sometimes it's necessary update the value in the middle of the year and this change should be reflected in the following months and years mantaining the old value in previous months and years.
Somenthing like this:
Year - FY12
Jan- 100
Feb- 100
Mar- 100
Apr- 100
May- 100
Jun- 100
Jul- 100
Aug- 100
Sep- 100
Oct- 100
Nov- 100
Dec- 100
FY13
Jan- 100
Feb- 100
Mar- 100
Apr- 100
May- 100
Jun- 100
Jul- 100
Aug- 100
Sep- 100
Oct- 100
Nov- 100
Dec- 100
If I change the value in November->FY12 to 200, I want:
Year - FY12
Jan- 100
Feb- 100
Mar- 100
Apr- 100
May- 100
Jun- 100
Jul- 100
Aug- 100
Sep- 100
Oct- 100
Nov- 200
Dec- 200
FY13
Jan- 200
Feb- 200
Mar- 200
Apr- 200
May- 200
Jun- 200
Jul- 200
Aug- 200
Sep- 200
Oct- 200
Nov- 200
Dec- 200
Any help?
ThanksI typically just aggregate up the Base + Adj to get "Total Adjusted". No need for a formula, unless you want to introduce specific override functionality. (Where the override amount would ignore what's in "Base" and "Adj") You may be able to get away with making "Total Adjusted" dynamic calc. This will depend on a lot of different factors, but it's something you should consider.
Sometimes I put my adjustments into a separate form. Sometimes they're on the same form. That really depends on business requirements.
Let's say you don't want to make this a separate dimension. Then the next option is typically creating specific adjustment accounts. The accounts where you're carrying the balance forward would look to see if an adjustment has been made in one of these specific adjustment accounts, and if so, add that adjustment to the prior value. I tend to prefer a separate adjustment dimension as it offers more flexibility, but if you've already got a database built, adding another dimension can be painful.
- Jake -
How to get previous month's values for current month
Hi..
I have a requirement on a report, where for a particular month, the key figure value should be from the previous month.
Eg: KF1 value for Sept 2007 should come from Aug 2007, KF value for Dec 2007 should be the value of Nov 2007, etc.
There are other key figures on the report which do not need this logic. It is only for one key figure.
Should we do this on the backend or front-end, and how? Any tips will be appreciated.
Thanks
R.hi,
Use a Restricted Keyfigure.
Drag your KF1 and Drag Calandar Month with a Variable Current Cal Month with variable Offset to -1.
KEERTTHi -
Display previous month value in report
Hi,
I have a requirement to display the previous month amounts on monthly basis. here is the example.
In the Cube I have data like this:
<b>Customer Month Amount</b>
C1 Jan 2004 $500
C1 Feb 2004 $600
C1 March 2004 $1000
I want to display in Report with another key figure to show the difference between current month and previous month. Report should look like:
<b>Customer Month Amount <i>Prev_Month_Amount <u>Diff</u>.</i></b>
C1 Jan 2004 $500 0 $500
C1 Feb 2004 $600 $500 $100
C1 Mar 2004 $1000 $600 $400
I have tried using restricted key figures.but it is showing the same amount in prev. moth amount colunm till feb 2004. anyone had similar req. please advise me.
Thanks in advance,
RamHi,
I can only think about a 2 structure approach with cell calculations.
This will result in a static report with 12 rows for each customer. Then you would need to use the new feature of zero supression, to hide those month where no data exists.
Heike -
To retrive previous month based on month prompt
Hi,
My universe is based on SAP BEX query. I have a requirement to report the previous month data based on a month prompt. Since the universe is based on the MDX, could anyone suggest a way to calculate previous month from universe.
Appreciate your responses.
Regards,
VyshBOpvinesh wrote:
Hi VyshBO,
>
> You can refer below syntax and prepare a filter object in universe to get Previous Month.
>
>
<FILTER KEY="[ZMONTH].[LEVEL01].[[ZMONTH]].[Value]"><CONDITION OPERATORCONDITION="Equal"><CONSTANT CAPTION="-1"/></CONDITION></FILTER>
>
>
> Regards,
> Vinesh
Can you explain that syntax, Vinesh? In particular, what does the [[ZMONTH]] imply? -
Parameter for Current Month and Previous Month
I'm trying to create a parameter for current month and previous month based on the ex_date, but not sure what i'm doing wrong.
where ex_date = @SelectDate
I created a second dataset below for the values in the parameters.
SELECT Month(CURRENT_TIMESTAMP) AS 'Month', 'Current Month' as 'Current Month'
union all
SELECT Month(CURRENT_TIMESTAMP)-1 AS Month, 'Previous Month' as 'Previous Month'
Results
Month Current Month
3 Current Month
2 Previous Month
Once I preview it I get "Conversion failed when converting date and/ or time from character string" I changed the data type to "date/Time" but that did not make a difference. The date is convert (varchar(10), ex_date, 101) so looks like
11/12/2014.
I've also tried expressions like =month(now()) to pull current month with same error so i'm not sure what i'm doing wrong. Any ideas?i tired this real simple report
in the first dataset - my main report query - select name from sysdatabases where month(crdate())=@month
in the second dataset - select month(getdate()) as Month1
in the parameters - choose int data type and available values - select the second data set
in the first data set- add this parameter..( i am assumming you know this, since you have done)
in the preview you should get the drop down with current month number - 3
and if you run the report, it will display the database names that were created in march. remember we are no checking year, so will get all that were created in march across the years.
Hope it Helps!!
I'm looking to have the dropdown say "Previous Month" and "Current Month" as a option. I know how to get the information in SQL, but not sure how this translates or put into a parameter.
Current Month
list_date BETWEEN
DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0)
AND
DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) + 1, 0)
Previous Month
list_date between
CONVERT(varchar,dateadd(d,-(day(dateadd(m,-1,getdate()-2))),dateadd(m,-1,getdate()-1)),106) /* Last Month */
and
CONVERT(varchar,dateadd(d,-(day(getdate())),getdate()),106) -
How to Get Previous Month Salary for a particular employee?
Hi
I am developing a report to get the Net Pay Difference from Previous month.
I am using logical database pnp.
My question is how can we get the last month (Previous from current selected month) salary of perticular employee. I read the thread which is related to this but I can't understand the reply's. I think it is due to that I am new in ABAP and my experience in only 22 days. If someone reply with code example then it will more helpful for me.
Also If you can tell me the table name from where we can get the salary of particular month of particular employee then it will also helpful for me.
Regards
IftikharHi,
Payroll data is stored in cluster tables.
You can either use macro for retrieving the data or Function module.
1. Use FM -CU_READ_RGDIR for getting the RG directory values.Pass
employee Number and molga.You will get all the sequence Numbers from this
FM.
The last record will be the latest one.
2. Then Use FM - PYXX_READ_PAYROLL_RESULT for getting the payroll
results table.Pass cluster ID- 'IN' ,pernr ,sequence number for which period
you want (In your case ,current period minus 1) and
READ_ONLY_INTERNATIONAL = 'X',
3. You will get all the results from PAYROLL_RESULT = it_result
Then you can loop this internal table like LOOP at it_result-inter-rt into wa..
Get the net pay value(/560 wage type)
Reward points if helpful.
Regards,
Manoj. -
Hi,
I created a data parameter and I want my date parameter default value to be the first day of previous month, the expression {$FIRST_DAY_OF_MONTH()$} is pointing to the fitst day of current month and when I tried {$FIRST_DAY_OF_MONTH()-1$} it is just subtracting a day(thought to go back one month)...Is there way I can point my default value to first day of previous month.?
Regardshmm is BI Publisher in Beta? Are there any workarounds you can suggest me to achieve this?
I see the user stated that a workaround is possible at RTF template level? How can we achieve this?
Re: Default date as first of month
Edited by: user8937215 on Aug 10, 2010 7:30 AM -
How to show Increase/Decrease of Sales Amount compare to Previous Month.
Hi,
My users need to view the percentage decrease/increase of Sales $ compared to previous month, for each Month.
How can I create a Restricted Key Figures that show Sales $ Amount as of Previous Month (take note it is not just Previous Month from Current Month, but each Month's Previous Month). i.e
Nov 06 - Sales $ = 1000
N0v 06 - CKF_A - Variance Compare to Prev. Month: 100%
Dec 06 - Sales $ = 800
Dec 06 - CKF_A - Variance Compare to Prev. Month: -20%
(800-1000/1000)
Jan 06 - Sales $ = 1000
Jan 06 - CKF_A - Variance Compare to Prev. Month: 25%
(1000-800/800)
How can I create CKF_A and achieve similar result?
Most of the variables for 0CALMONTH or 0FISCPER seems pointing to one value only.
I don't want to create Restricted Key Figures for each and every month.
Please help.
Thanks,
Sean Yit.Sean,
You don't have to create RKFs for each and evry month. But you need to create just two RKFs.
Lets say that you want to display the months in rows and Sales in the first column and the variance in the second column. Just restrict Sales by the month characterstic with a user entry variable (range if it is more than one month the user wants to display), then in the next column create another RKF by restricting Sales with the same month characterstic. This time offset the first varaible by minus one (-1). In the properties of this RKF, select always hide option.
Now create a CKF (calculated key figure), by using the variance% formula option.
CKF = RKF2 "%" RKF1.
I hope this helps..
Maybe you are looking for
-
FAQ's, intros and memorable discussions in the ABAP Form Printing Forum
Welcome to the SDN ABAP Form Printing Forum! In addition to release dependent information avalaible by: - pressing the F1 key on an ABAP statement, - or searching for them in transaction ABAPDOCU, - using the [SDN ABAP Development Forum Search|https:
-
While we understand how to use this strategy, we are interested to know which other SAP customers are currently using it. We have an implementation coming up and believe that this is the proper solution but would like to open a dialog with others tha
-
Sessions are not showing in V$session in 10g RAC
Hi All, I have 2-node 10gR2 Rac installed on RHEL4. It is up and running fine. And i'm able to connect from clients also(from other machines). My doubt is...If i connect to the RAC database using other clients, a record is showing in v$session. But i
-
Max Number of Procurement Proposal for a date
We have scenario where a user has changed fixed lot size for a material 11,70,000 to 1 Pc. As result more than 2 Million Purchase requisitions got created by MRP. Is there any standard config settings, where we can maintain max number of procurement
-
Hi, In Oracle 10g , maybe in older version too, there is the capability to create an error log table using the dbms_errlog package and create_error_log procedure... For exaample: exec dbms_errlog.create_error_log('EMP','EMP_ERROR') How to find afterw