Monthly Sales Report - Prior year comparison

I am created a monthly sales report for Sales in Crystal 2011. I have a parameter prompting for a date e.g. 02/01/2014 to 02/28/2014. I would like to have the sales amounts beside this column for 2013.
I found this formula but I can only get my results from 2014.Anyone have an idea how I can do this ?
Thanks,
debbie
\\Current Period
If pwformatdate({OEAUDH.TRANSDATE})
in date(year(currentdate)-(if month(currentdate)<10 then 1 else 0),10,1)
to currentdate
then Amount Forumula
else 0.00
\\Prior Year Period
If pwformatdate({OEAUDH.TRANSDATE})
in date(year(currentdate)-(if month(currentdate)<10 then 2 else 1),10,1)
to dateadd('yyyy',-(if month(currentdate)<10 then 2 else 1),currentdate)
then Amount Formula
else 0.00
the parameter for my date is :
pwformatdate({OEAUDH.TRANSDATE}) >= {?FromDate} AND
pwformatdate({OEAUDH.TRANSDATE}) <= {?ToDate} AND
({ICITEM.ITEMNO}) >= ({?FromItem}) AND
({ICITEM.ITEMNO}) <= ({?ToItem}) and
{OEAUDH.TRANSTYPE} <> 3

Hi Debbie,
1) Modify the Record Selection Formula to;
{OEAUDH.TRANSDATE} IN [cdate(year({?FromDate})-1, Month({?FromDate}), day({?FromDate})) TO cdate(year({?ToDate})-1, Month({?ToDate}), day({?ToDate}))]
OR
{OEAUDH.TRANSDATE} IN [{?FromDate} TO {?ToDate}]
This should give you current and previous year's data for the period chosen by the user.
2) Assuming you have a group on the Date field set to print for each year, simply create a running total from the Field Explorer.
Name it Current Year.
Choose 'Sales Amount' as the field to Summarize.
Choose 'Sum' as the Summary Operation.
Under 'Evaluate', select 'use a formula' and use this code:
date_field IN
[cdate(year({?FromDate}), Month({?FromDate}), day({?FromDate})) TO cdate(year({?ToDate}), Month({?ToDate}), day({?ToDate}))]
Set it to Reset at each Group For Year
3) Create another Running Total and call it 'Previous Year'.
Everything remains the same from Step 2 except the evaluate formula:
date_field IN
[cdate(year({?FromDate})-1, Month({?FromDate}), day({?FromDate})) TO cdate(year({?ToDate})-1, Month({?ToDate}), day({?ToDate}))]
Hope this helps.
-Abhilash

Similar Messages

  • Sales report per year for copmany code  & sales org wise

    Hi all
    Does anybody knows how to take total  sales report per year for copmany code  & sales org wise
    Please advice me with Tcode if it's possible.
    Thanks a lot in advance!
    U.maha

    Hi,
    Check your configuration for SIS.If it is not there maintain settings for SIS.
    SPRO-Logistic Information system-Updating-Updating control-settings:sales
    You also need to run these T-codes.  OLI7,OLI8,OLI9
    (Test first in quality client).
    Thanks,
    Vrajesh

  • Smart Form for Monthly Sales Report

    Is any possible smart form for Monthly Sales Report
    if possible let me know....
    Phani.

    Hi Phani,
    There is no standard for this delivered by SAP. You would have to create your own form and print program.
    Sales Reports usually come out of LIS or BW. In the case of BW,  tools like Business Explorer might help you.

  • Monthly Sales report of a given Year

    Hi Experts,
    I have a requirement that User enters Fiscal year in Selection Prompt, based on the year, user wants monthly sales  like
    Jan-2010 | Feb-2010 | March 2010 | ..........| Dec-2010
    How can i get this?
    My report layout is like
    Vendor nbr     Vendor name  201001  201002   201003  201004     201005     201006     201007     201008     201009
         201010     201011     201012     Grand Total of sales revenue                                                                                                                             
    Thanks
    David

    Hi David,
    Can you add a column for Year?
    If Yes, then you Section the Year column in the report. This will make the months appear below this specific year.
    Then put the prompt for the Year. So when the user selects the year (eg: 2010), he will get all the months under the year 2010.
    Thanks
    Niranjan

  • Monthly Sales Report

    Hi All!
    Is there any kind of report in SAP B1 that shows comparison of monthly sales year over year by state.  So, for example, CA sales Jan-Dec 07 vs. Jan-Dec 08? 
    Thanks,
    Mike

    Hi Mike,
    Only 3 types of reports built-in for sales analysis.  Namely: By Customers, By Items or By Sales Employee.
    You need either a XL Report or a query to define this report.
    Thanks,
    Gordon

  • Compare month sales with previous year same month sales

    hi all.
    we need to compare given month of this year with same month of last year. we need to compare sales quantity and value.
    the query is on 0RT_C40 multiprovider. We have tried all options using 0Calmon, calday, fiscal year... but whenever we specify offset, we are not getting data. there is valid data for previous year.
    plz let us know what else to do? check with 0RT_C40.
    thanks in advance.
    regards: gaurave

    Gaurave,
    Are you selecting the time period in a selection in columns or rows, or are you selecting the time period in the Filter or Free Characteristic area.
    When you make the initial selection of say Period 11.2007 in the Free Characteristic area, and then within a selection but on an offset to derive 11.2006, the fact that you have made your selection of 11.2007 in the Free Char area will restrict the entire query results to this time period.
    Both your picks on time should be in selections in the Columns or the Rows.
    Regards
    Gill

  • SSRS Matrix report. Variance expression by Month. Need to compare month from prior year to current month of current year VS2010

    Please help.  I have a matrix report.  In the report I have row group  PO Type.  One the Column groups I have a parent group by Fiscal Year, and then a child group by Month.  When I run the report, I get two years of data back broken
    out by month.  Please see below.
    Now here is where I am getting stuck.  I need to take the variance between the current month of the current year, from the same month of the prior year.  So I need to show the difference between Oct , 2014 from Oct, 2013. November, 2014 from November
    2013... etc. etc.
    In the example below, how do I create a column or row showing the variance for Contracts for October 2014.  I need to take the contracts for October 2014 which is 3 and subtract that from October 2013 which is 8.  Any suggestions? How do I do that
    for each month?  Then I need to do it for the quarter... then the year?  But I'll be happy if I can just get the month working first.
    Any help will be appreciated. 
    here is what my rdl file looks like.
    Here is what my report looks like when I render it.

    Hi Adrian_s2012,
    According to your description, you want to compare values for the month of current year with the month of prior year and get the variance. Right?
    In Reporting Services, we don't have any function to get this "Year to Year" Growth. In this scenario, if you data source is a cube, we suggest you use Analysis Services to achieve your requirement. If this data source is just from database, it will be hardly
    to calculate the variance because we need to compare the values within every two different column group and matrix generate adjacent columns one by one. Even we make it by using custom, every time executing the long code when generating result
    in a cell will reduce a lot of performance, we really don't suggest to do that in SSRS. Here is a thread with much easier requirement, please take a reference of that:
    http://social.msdn.microsoft.com/Forums/office/en-US/842e2dcb-d949-4297-9d91-eac989692cb5/difference-between-the-grouped-column?forum=sqlreportingservices
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Suppressing a prior Year Month Column on Cross Tab Report

    I have two cross tab report in the footer that compares orders booked against what was shipped by month.  I need to suppress the columns (Month) for the prior year but keep the Totals.
    I have a pdf of the report

    Try to add a formula as a column in the crosstab instead of a field. Create a formula like this
    if year()=year(currentdate)-1 then
    year()
    else
    month()
    This works only for two years of data, means you need to have the record selection formula like this
    year()>=year(currentdate)-1 and year()=year(currentdate)
    Regards,
    Raghavendra

  • Need to apply MTD logic for actual and prior year

    Hi Team,
    We are facing an issue with MTD calculation based on formula variables,
    Issue: MTD Only (Actual and Prior Year) – show the same value for MTD. 
    Requirement:
    When the query is run for a selected month, the query should be run for that month based on the Last TECO Date (Input Variable).
    • For example, dashboard is run for January 2014, the calculation of MTD should be based on the Last TECO Date : i.,e if I enter older date/month (not current date)[ 1/20/2014 means it should calculate for 1/1/2014 – 1/31/2014]
    • If the dashboard is run for the current month, the MTD calculation should be on Last TECO Date = 1st day of month – Current Day
    The above same calculation logic should be applicable for MTD prior year: instead of the input variable value, the value for previous year should be considered
    Final Calculation:
    If Last Labour Date is blank, 0, else Last TECO Date – Last Labour Date (by individual line item)
    Here we created two formula variables for last teco date and last labour date.
    Also created 2 Customer Exit variable for MTD Actual calculation.
    We have pulled the formula variable and CE variable into the selection and created a new CKF (Teco date).
    We have done the final calculation on the basis of the ( (labour date ==0)*0 + last teco date-last labour date )for MTD ACTUAL.
    MTD Prior Year-
    when have done calculation on the basis of the( (labour date ==0)*0 + last teco date-last labour date )for MTD Prior year by giving offset -12 to the value.
    Here for MTD Actual and MTD Prior year values are coming same  ,we tried with by doing customer exit variables as well, Still values are coming same.
    please give your valuable inputs/suggestions to proceed for this requirement .

    I assume the Sales measure is a monthly measure. The Prior year calculation as I described will give you the sales for the same month in the previous year when selecting month in your report. When selecting year it will add up all months of the prior year until now and you will indeed see the Prior year YTD.
    If you want to see the total sales for the previous year you have to use the same calculation as 'Prior year' and map it to the year level of your time dimension. This will work as a 'partition by year'.

  • How to use the Time Variants PYTD and Prior Year Annual?

    Hi,
    We have a time dimension which has the generic columns i.e Month, Year.
    We need to calculate the Time variants for the Facts Say Sales. I was able to calculate the Prior Month, Current YTD
    I have some doubts regarding the other variants:
    1. Prior Year : Does this include the Prior Year Annual?
    2. Prior YTD: How to calculate it?
    Somehow I am getting the same results for PYTD and Prior Year.
    The formula used are :
    Prior Year:
    AGO(Sales, Year, 1)
    PYTD:
    AGO(Sales CYTD, Year, 1)
    Has anybody encountered similar issue?

    I assume the Sales measure is a monthly measure. The Prior year calculation as I described will give you the sales for the same month in the previous year when selecting month in your report. When selecting year it will add up all months of the prior year until now and you will indeed see the Prior year YTD.
    If you want to see the total sales for the previous year you have to use the same calculation as 'Prior year' and map it to the year level of your time dimension. This will work as a 'partition by year'.

  • Sales Man wise Sales Report.

    Dear All,
    I need to develop the Report SalesMan Wise in the below format.
    *_SL No/Sales Man/Customer/Customer Name/Target of Current Year (Previous Year Sales1.35)/Jan Sales/Feb Sales./Mar Sales/Apr Sales/ till Aug Sales (2011 Year) i.e Last 7 Months + Current Month.   Average of Last 7 months/   Sales of Previous Year/ % Achievement of Target/.I need the Link of Tables and the Logic to be given in this Report. Is this report Feasible.
    *Sales Man I can get from VBPA Table but that is only Fetching me Sales Order Number.
    *I am not getting the Link between Partner Function VE (Sales Employee) and Invoice Table VBRK.
    Can you please provide me the valuable Inputs how to go about this Report so that I can prepare detial FS of this.
    Regards,
    Parag S.

    Yes. Your ABAPer can copy a SAP Standard Report & modify it to suit your requirement.
    But ideally you should go for new report creation. You can get Sales Employee Number in Sales Order & from Document Flow Table get the Invoice Number.
    Only issue in your case is Sales Man-wise Target figures. You will have to create a Z table & store the Sales Man Code & Year-wise targets in these Table which later be fetched in your program.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Can i get month, quarterly, half yearly, yearly wise sales report basing on

    hi,
    sap gurus,
    good evening to all,
    how can i get month, quarterly, half yearly, yearly wise sales report basing on division and material.
    is there any std transaction code for that.
    customization is requried for that.
    regards,
    balaji.t
    09990019711

    Standard SAP SD Reports:=
    Statistic Group:
    Purpose u2013 To capture data for Standard Reports, we require to activate Statistic Group as under:
    --> Item category (Configuration)
    --> Sales document type (Configuration)
    --> Customer (Maintain in Master data)
    --> Material (Maintain in Master data)
    When you generate statistics in the logistics information system, the system uses the combination of specified statistics groups to determine the appropriate update sequence. The update sequence in turn determines for exactly which fields the statistics are generated.
    Configuration:
    IMG --> Logistics Information System (LIS) --> Logistics Data Warehouse --> Updating --> Updating Control --> Settings: Sales --> Statistics Groups -->
    1. Maintain Statistics Groups for Customers
    2. Maintain Statistics Groups for Material
    3. Maintain Statistics Groups for Sales Documents
    4. Assign Statistics Groups for Each Sales Document Type
    5. Assign Statistics Groups for each Sales Document Item Type .....
    All Standard Reports which are available are as under:
    SAP Easy Access: Information Systems -> Logistics -> Sales and distribution ->
    1. Customer -> Incoming orders / Returns / Sales / Credit memos / Sales activities / Customer master / Conditions / Credit Master Sheet
    2. Material -> Incoming orders / Returns / Sales / Credit memos / Material master / ...
    3. Sales organization -> Sales organization / Sales office / Sales employee
    4. Shipping point -> Deliveries / Returns
    5. SD documents -> Orders / Deliveries / Billing documents ...
    & so on.
    Regards,
    Rajesh banka

  • Monthly wise sales report

    hai,
         i m working on sales report where in i need to get month wise sales of the products and the related cost incured to company by the sales in the matrix form as shown below  can u help me in which way can i get this monthly report
              march     april     may   june    july......feb
    mtrl    25            30         0       19      23   ........(mtrl quantity)
    cost   30000     15000      0      45000  ..........(amt in rs)
    where in the above i m able to get yearly sales in one column (i.e i m able to show for one particular customer total sales in one column) but i m unable to split sales monthly and unable to show in a report so how can i able to sow in this matrix form

    Dear Raj,
    Please find the code for monthly wise report in PA0001 Table for calculation of Administrator time Recording.
    http://scn.sap.com/message/14216250#14216250

  • Prior Year Sales vs. Prior Period Sales

    Using Crystal Reports XI, connecting to an Access Database.
    I have a report that compares 2007 to 2008 sales for the most recent 4 weeks.  It summarizes sales first by Item Class (group 3), then by Item Type (group 2), then by Region (group 1).  Some Classes of items have sales in both 2008 and 2007, but some don't.  For those Item Classes that have no 2007 sales, I want to show the most recent 4 weeks in 2008 vs. the 4 weeks just prior to that.  In other words, if the report is showing week 10 to 13 in the 2008 column, I want to show weeks 9 to 12 in the 2007 provided that there are no 2007 sales for that item class.
    I can do this easily enough for Item Class, however I am having trouble getting accurate sub-totals for Item Type and Region.
    What I have now is this formula to show Net Sales for "2007".  {Command.class} is Item Class.  @PriYr4wkSale is the real 2007 gross sales.  @Prev4wkSale is the week 9 to 12 gross sales.  @PriYr4wkSpl is the spoils, which I add to gross sales to get net.
    if Sum ({@PriYr4wkSale}, {Command.class}) > 0 then
        Sum ({@PriYr4wkSale}, {Command.class}) + Sum ({@PriYr4wkSpl}, {Command.class})
    else
        Sum ({@Prev4wkSale}, {Command.class}) + Sum ({@Prev4wkSpl}, {Command.class})
    If I change this to summarize over {@ItemType} I get erroneous data because {@PriYr4wkSale} is always positive, so the formula doesn't pick up sales for the Previous 4 wk period.
    Does anyone have any ideas for a formula I can place in the details section (and then subtotal by group) that will show the sales amount conditionally, based on whether or not an item has prior year sales?  The problem I've run into with this approach is that any given detail record (say in 2008) doesn't know if there were prior year sales or not).
    Edit: How can I make the post narrower, so it fits within one browser window, width-wise?
    Edited by: M Anderson on Jun 3, 2008 1:12 AM
    Edited by: M Anderson on Jun 3, 2008 1:13 AM

    Hi "M",
    I know when I've tried something similar, the problem was that the formula didn't work because it wasn't getting a result of "0" (i.e. no sales) but "null".
    Try:
    if not isnull(Sum ({@PriYr4wkSale}, {Command.class})) then...
    Heather

  • Prior Year YTD and MTD Sales Figure

    Hi,
    I am working on a report where I need to YTD  and MTD figure for current and previous year:-
    I have followed following steps for current year MTD and YTD figures:-
    Create 3 Date variables for Sales on Date with manual input, MTD and YTD on Date characetristics with Customer Exit input. After that I created 3 RKF where I restricted Sales value by each of these date variables.
    Now my question is, Do I need to create two more variables for Prior year MTD and YTD figures with customer exit and then create two more RKF's wherein I will restrict Sales figure with respective variable.
    Is that correct?
    Regards

    Hi,
    you can eighter use the -365 preset  but i suggest creating  2 seerate variables to avoid problems.
    regards
    Ashwin

Maybe you are looking for

  • Select LONG column from Remote table

    Hi to all. I have the following problem: I can't select a LONG column from remote database, when there are Join operation in the query. Example: SELECT long_column FROM remote_table@DB -> that's OK, but: SELECT long_column FROM remote_table@DB INNER

  • 24 inch iMac CD problem

    What's up with this????????? 24Inch iMac with 2 gigs of memory no other active applications Wow iTunes takes a long time down loading a music CD 10 minutes for one 554mb disc CD is loud. sounds like a floppy drive struggling to read the disc Making a

  • Picture Distorted with Blu-Ray Player

    I have an older Sony Trinitron KV-32FV26 TV and if I connect a Blu Ray Disc Player (Insignia or a Samsung) through Component cables the picture is all distorted and cannot be viewed but if I connect a Sony DVP-NL800H standard DVD player through the s

  • OBIEE 11.1.1.6 OSSM scorecard and strategymanagement - change permissions

    Dear Reader, We are on our way to get a strategymap in to our production environment and i'm strugling with permissions. For a group of users I only want them to be able to follow an action link or to focus on KPI's but not to open them. Where can i

  • Linux calls in java

    Does anybody knows how to do operating System call inside a Java Program? Thanks MANUEL ROJAS