XL Reporter Report for comparison of last month and current month sales
Hi,
Our management requires an MIS report for comparison of sales in revenue and in terms of units for the last and the current month todate.
Is there a way to view this data for both the months together, without any user input?
Best Regards
Jyoti
Jyoti,
I'll try and explain the XLR Report you'd need for this. This is isn't the best way to explain something like this, but I'll give it a shot.
- Put an expansion on Row 8 and choose all Items (*), click Apply
- In A8, put ItemCode
- In B8, put Item Name
- In C8, put Sales - A/R Row Total
- In D8,put Sales - A/R Row Total again
- Setup a Parameter
- Call it Period
- Dimension
- Financial Period
- In Column D, put a column Summary and click into Financial Period
- click the button to open the selection window
- click to the parameter tab
- select your parameter and click OK and click Apply
- In Column C, put a column Summary and click into Financial Period
- click the button to open the selection window
- click to the parameter tab
- in the bottom right corner, add a "-1" it should look like this @Period-1
- click OK and click Apply
- In C7 and D7 - choose Financial Period Code from formula builder
(so you can see the period code at the column header)
This will show sales by item in the current Period (column D) and previous Period (column C)
Hope that helps and at least gets you going. I can't guarantee those are perfect instructions from memory.
Brad Windecker
[Omega Business Solutions|http://www.omegagroup.com]
Similar Messages
-
BEx analyzer 7.0 Report for last 3 months and current month
I need to create a report for a key figure (net value) and character (material), 0calday
Output format:
column1 : net value - previous year
column2 : net value - current year
column3 : net value - current quarter (separate columns for 3 months)
column4 : net value - previous quarter (separate columns for 3 months)
column5 : net value - current month
column6 : net value - 1st of month to current date (separate columns for each day).
Please help.
Points will be assigned.
Thanks
Mary.Hi
U R infoprovider should have following time characterstics
0FISCAL YEAR, 0FISCAL MONTH/QTR
column1 : net value - previous year
On the basis of user input data derive the year and offset it by - 1 (VYEAR-1)and make a RKF for that .
column2 : net value - current year
On the basis of user input data derive the year(VYEAR) and
make a RKF for that .
column3 : net value - current quarter (separate columns for 3 months)
If QTR is there then derive the QTR on the basis of 0calday/else if month is there then determine month range like 1-3 = Q1 4-6 = Q2 and it will be done in user exit
column4 : net value - previous quarter (separate columns for 3 months)
On the same way as above u can determine the same
column5 : net value - current month
On the basis of 0calday determine CALMONTH and create a RKF for this
column6 : net value - 1st of month to current date (separate columns for each day).
Create a Exit variable type range on CALMONTH for this and
keep the range as 01-current month(which will be derivefrom 0calday)
Thanks,
Debasish -
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) -
Is there any standard variable to calculate previous and current month
hi,
Is there any standar variable to calculate previous month and current month which will calcualte from system date (sy-date). I found standard SAP Delivered variable - 0CMONTH to calculate current month. But i want both current month and previous month. IF it is not avialble can you please provide me the ABAP code..
thanks in advance.Hi,
Check this thread.
ABAP routine for loading previous months data in infopackage
Regards. -
Report for current day and current month
Hi gurus,
i 've a report, where i 've to display the values for qty and cost of the material for the current day and current month
HOw can i do this in BEx Query designer..If any document plz share
thanks
rakeshhi Kolli
here i want to filter the data on system date,
i wnt the report to pick the date dynamically based on the system date.
but i think restricting on calmonth and calday is not going to solve my scenario..
rakesh -
Expression - First date and last date of current month, current year
Hi
I need to have 2 ssrs expression as I can use as default parameters in my report where I can - out from my Time dimension, get the
first date of the current, current year - and one where I get last date, current month, current year.
My data source is a SSAS cube and my timedimension is structured like this:
[Time].[Days].&[2009-01-16T00:00:00]
Any suggestions how to solve this ?Hi ,
You can use below in Default Values in ssrs ;
for first Day of current month and year
="[Time].[Days].&[" +Format(dateadd("m",0,dateserial(year(Today),month(Today),1)), "yyyy-MM-dd")+"T00:00:00]"
output will be ;
[Time].[Days].&[2014-09-01T00:00:00]
For last day of current month and year
="[Time].[Days].&[" +Format(DateSerial(Year(Now()), Month(Now()), "1").AddMonths(1).AddDays(-1), "yyyy-MM-dd")+"T00:00:00]"
output will be ;
[Time].[Days].&[2014-09-30T00:00:00]
Please correct me if I misunderstood your requirement.
Thanks
Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem. -
Variable last date of previous month/last date of current month
Hello Experts,
I am facing an issue while designing a query.
Requirement is like this.
Report will be run on monthly basis.so on execution of report, it should prompt for month/year.
now on report there are two columns for which I have to get data on date basis(last date of previous month and Last date of current month).
Can anyone tell me is there any standard variable for this? what is it?
or how to achieve this?
Regards,
NiravHi,
See if this post in this forum can help you.
Re: Last date of a month
Regards
Shalabh Jain -
Records for parameter month and previous month
Hi,
I have a request where the user parameter is calender year month (YYYYMM).I need to show the records of both the entered month and previous month.
For ex: if the user enters 201107, I need to show the records of 201107 and 201106.
Also,I am not using dashboards.
Any suggestion...
ThanksNo, I don't see this as a solution. A session prompt can only be overridden by using a Request Variable, but they are found in Dashboard prompts which you have excluded as a solution. Therefore, any session variable you set would be "hard-coded" eliminating end-user interaction. Sorry.
You will need to deploy dashboards for this. I will also add this: eliminating dashboards really restricts the power of OBI because it makes it difficult to implement interactive reports such as the one you are building. Perhaps you should use this example as a push to consider adding the value of dashboards to your environment.
As this is useful information to others, please mark applicable posts that resolved your question. Thanks. -
i have a scenario where i need the data of last date of every month and if the month is current month need current date data...
is it possible using MDX...Hi Shashi,
According to your description, you want to return the last day for each month except current month, right?
In MDX, we can use ClosingPeriod function to return the member that is the last sibling among the descendants of a specified member at a specified level, here is a sample query for you reference.
with member [measures].[a]
as
ClosingPeriod ([Date].[Calendar].[Date],[Date].[Calendar].currentmember).name
select {[measures].[a]} on 0,
[Date].[Calendar].[Month].members on 1
from
[Adventure Works]
And then use the IIF function to evaluate if the month is current month. Please refer to the links below.
http://msdn.microsoft.com/en-us/library/ms145584.aspxhttp://msdn.microsoft.com/en-IN/library/ms145994.aspx
Regards,
Charlie Liao
TechNet Community Support -
Dear sir,
i am fully dis-appointed about my above case no : *******. I have face this problem last 9 and half months and still the issue is not resolved. This iPHONE4S purchase from Australia and now i am in india. Your apple team told that the problem in your device and ready to replace it. But Now what happen they told you must have to send this iPHONE to Australia. But I have checked the courier people is not ready to take this device to australia. I will send it if any body of my relative comes to india but it will take a long time may be 8 to 10 months . I already suffering this problem since last 9 and half months and also for replacement it will take another 10 months. so it will very difficult for me. i request you to please send a new device at my address and i will send you this iPhone 4S return back when my some relative comes to australia.
<Post Edited By Host>Just a reminder to you. Apple is not here. This is a user forum and the only people here are users like you. Posting the same rant multiple times achieves nothing. Keep it up and your future post will be deleted just like the one that just was.
-
Customer Exit for 13 month from current month
Hi Gurus,
I need a customer exit for 13 months from current month. Based on the requirement I have written following code
When 'VPI_13CALYRMON'.
IF i_step = 1.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
l_s_range-low = sy-datum+0(6).
l_s_range-high = sy-datum+0(6) + 13.
append l_s_range to e_t_range.
endif.
Please could you guide me the code.
Thanks
Ganesh Reddy.Hi,
I think you can do it in below way.
When 'VPI_13CALYRMON'.
IF i_step = 1.
temp1 = sy-datum+0(4).
temp1 = temp1 +1. (because adding 13 months would take year to next year)
temp2 = sy-datum+4(2).
temp2 = temp2 + 1. (after adding 13 months, the month would be one more than of previous year)
concatenate temp1 temp2 into temp3.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
l_s_range-low = sy-datum+0(6).
l_s_range-high = temp3.
append l_s_range to e_t_range.
endif.
Hope this helps. -
Customer Exit for 15 month from current month
Hi Gurus,
I have a requirement to write customer exit for 15 months from current month based on todays day.
if current day is less than 10 then we have to get 15 months from current month other wise from next month to 15 months.
this exit I am writing on calendar year/month.
Please assist for logic.
Thanks
Ganesh Reddy.I hope this code will do the trick.
DATA: L_S_RANGE TYPE RSR_S_RANGESID,
LOC_VAR_RANGE LIKE RRRANGEEXIT,
zcalmonth(6) type c.
zcurrentmonth(6) type c.
zyear(4) type n,
znextyear(4) type n,
zyear1(4) type c,
znextyear1(4) type c,
zmonth(2) type n,
zmonth1(2) type n,
zmonth2(2) type c,
zmonth3(2) type n,
zmonth4(2) type c,
IF i_step = 2.
CASE i_vnam.
WHEN '<VARNAME>'.
zyear = sy-datum+0(4).
znextyear = zyear + 1.
zyear1 = zyear.
znextyear1 = zlastyear.
zmonth = sy-datum+4(2).
if sy-datum+6(2) LE 10.
zmonth1 = zmonth + 2.
if zmonth1 GT 12.
zmonth1 = zmonth1 - 12.
zmonth2 = zmonth1.
zcurrentmonth = sy-datum+0(6).
endif
concatenate znextyear1 zmonth2 into zcalmonth.
else.
zmonth1 = zmonth + 3.
ZMONTH3 = ZMONTH + 1.
if zmonth1 GT 12.
zmonth1 = zmonth1 - 12.
zmonth2 = zmonth1.
endif
if zmonth3 GT 12.
zmonth3 = zmonth3 - 12.
zmonth4 = zmonth3.
endif
concatenate znextyear1 zmonth2 into zcalmonth.
concatenate znextyear1 zmonth4 into zcurrentmonth.
endif.
l_s_range-low = zcurrentmonth.
l_s_range-high = zcalmonth.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDIF.
rgds, Ghuru -
Query for fiscal month till current month of year
Hi,
can you please help me to show only fiscal months till current month of year?
e.g. Current month is Apr of 2012.
I have to show the fiscal months till the Apr 2012 of year 2012.
if the date is 24th of Apr then it would show May month also.
Regards,
Nileshwith t as (
select to_date('04232012','MMDDYYYY') d from dual union all
select to_date('04252012','MMDDYYYY') from dual)
select
d,
case
when to_char(d,'DD') >= 24 then
to_char(trunc(add_months(d,1),'MONTH'),'MM-YYYY')
else
to_char(d,'MM-YYYY')
end fin_month
from t
D FIN_MONTH
23.04.2012 04-2012
25.04.2012 05-2012 -
Create From Month and To Month Prompt
Create From Month and To Month Prompt
Edited by: user10422576 on Jul 29, 2009 8:26 PM
Edited by: user10422576 on Aug 4, 2009 6:39 AM
Edited by: user10422576 on Jan 21, 2010 7:46 AMuser10422576 wrote:
dsdsadsadsadsadsadsadsdsadsds
Edited by: user10422576 on Jul 29, 2009 8:26 PM
Edited by: user10422576 on Aug 4, 2009 6:39 AM
mma1709 wrote:Use "in between" in the prompt and is prompted in the report.
user10422576 wrote:It worked!!!!.....Thanks a lot.....
Edited by: user10422576 on Aug 4, 2009 6:40 AMWTF?! -
Getting the exact date of current week and current month
I would like to know is there any methods to know the exact date of the current week and current month?
//use this function like this
//String date = getNow();
public static String getNow()
Calendar cal = new GregorianCalendar();
// Get the components of the time
int hour24 = cal.get(Calendar.HOUR_OF_DAY); // 0..23
int min = cal.get(Calendar.MINUTE); // 0..59
int sec = cal.get(Calendar.SECOND); // 0..59
// Get the components of the date
int year = cal.get(Calendar.YEAR); // 2002
int month = 1 + cal.get(Calendar.MONTH); // 0=Jan, 1=Feb, ...
int day = cal.get(Calendar.DAY_OF_MONTH); // 1...
String timeStamp = String.valueOf(year) + "-" + addZero(month)+ "-" + addZero(day)
+ " " + addZero(hour24)+ ":" + addZero(min) + ":"+ addZero(sec) + ".0";
return timeStamp;
public static String addZero(int num)//this function works with the getNow() function
//all it does is adds a zero to an int if its less then ten
String val = "";
if(num < 10)
val +="0"+num;
}else{
val = String.valueOf(num);
return val;
}
Maybe you are looking for
-
Icons for questions and answers seen
but when i click on it nothing happened i am directed to another page without seiing my questions and answers
-
Shiping labels print from LM19 Transaction in WM
Hi all, This is regarding shipping labels print from RF transaction LM19. How it can be done? I saw in some document that we can do it with the user exit provided by SAP, Which is accessed by function module LE_MOB_PRINT. Please let me know the proce
-
Please help me. I've iMac, Adobe Reader XI, cannot print, only blank pages coming out of printer. No problems with Words or Excel, can print same pdf file in Preview though. Help please.
-
What are "sets" in MainStage? Are these just my patches in a Concert?
I know this is a beginner question, but it isn't very clear in the manual. Are sets just the patches in a concert? Any info on this would be greatly appreciated, just started working with this about a week ago...lots of questions. Thanks!
-
Still seeing scalability problems
While BDB 4.6 is definitely faster than earlier versions for databases that fit inside the BDB cache, I'm still seeing unreasonable slowdowns when the db is much larger than the cache. E.g. in OpenLDAP I'm loading a 50 million entry database (which r