SSAS DAX formula for same period last year not same month last year

The DAX function sameperiodlastyear, only works if the period we are interested in, is the same as a month.
However our Period 3 for 2014 was 05-march to 04-April and Period 3 in 2013 was 01-March to 31-March
I have a dim_Date table with a separate Year Number and Period Number so you be able to match on Period Number and Year - 1
The sort of formula I am after is this, so that the P3 total for 2013 matches the value reported as 'PY' against P3 2014
so for example
PY:=calculate(sum(amount), dim_date(year) = dim_date(year-1) && dim_date(period) = dim_date(period)
I cannot find an exact example of how to construct the DAX formula to achieve this.
I have tried DAXPatterns.com, but that does not have an exact example.
Thanks in advance
Sotn

All built-in time intelligence functions work on the standard Gregorian calendar. The only fiscal calendars that can be handled by the built-in functions are those that end on another day than December 31, but otherwise respect the standard months/quarters.
The problem you are encountering in your [PY] is that CALCULATE() only allows simple boolean predicates (no calculations allowed. FILTER() is the function that allows you to execute arbitrary logic in your CALCULATE() filter arguments.
Try this:
PY:=
CALCULATE(
SUM( <fact table>[amount] )
, FILTER(
ALL( dim_date )
, dim_date[year] = MAX( dim_date[year] ) - 1
&& dim_date[period] = MAX( dim_date[period] )
Here's what's going on in that FILTER(). FILTER() is an iterator - it steps row-by-row through the table that you pass as the first argument, and returns only those rows that meet the criterion you set in the second argument.
We pass ALL( dim_date ). This strips the current filter context from the pivot table and returns every row of dim_date.
In the second argument to FILTER() we define the logic that will determine which rows to return. This comes in two parts, connected with the logical and operator, &&. I will only explain one in detail as we're using the same pattern in each part.
dim_date[year] is referring to the value of the column [year] based on where you are in the table (remember, FILTER() is stepping row-by-row through), so will return one value from the current row based on FILTER()'s iteration.
It then compares that value to what is returned by MAX( dim_date[year] ) - 1. This expression is not evaluated in the current row context of FILTER(), rather in the filter context of the pivot table (in a pivot table your row and column labels are referred
to as rowfilters and columnfilters - this nomenclature can get confusing). Thus, it returns whatever the current year of the pivot table is and subtracts one. When the value of [year] in dim_date matches the value returned by this expression, that row is part
of the set returned by FILTER().
Once FILTER() has completed its iteration, it returns the filtered table, and that table is used to set the filter context that SUM( <fact table>[amount] ) is evaluated in.

Similar Messages

  • Payroll - Check for Previous Period which did not run before

    Hi all,
    I have an employee who was terminated hence payroll was not run for him from his poiint of termination, i.e. he was terminated from period 03, 04, 05 onwards.
    Now currently it is period 06,... I wish to run payroll for him, for his period 03, 04, 05, I need to be able to detect that I am running payroll for the 2 conditions:
    1) That the period i'm running FOR (03,04,05) is before the currnet period.
    2) And that for periods 03, 04, 05 I am running the payroll for this employee for the FIRST TIME.
    Are there any commands in the schema that I can use to know this?
    Regards,
    Kevin

    Hi Kevin
    When simulation or payroll is running for the employee at the bottom of the screen it tells you which period it is processing as payroll runs thru each pay period.
    The log when expanded also does the same. If an employee has not had pay run for 3 months prior it is still a retro. Also check info type 0003 see if the PDC recalc date has been set and this will tell you how far back pay will run, if pay has been run the pay results.
    if its the schema commands then print your paryoll schema to the screen and then expand and search for "retro", this will give you the retro commands or run program RPDASC00 and fill in the schema name etc.
    Rona

  • Can SAP run the depreciation for closed Period and posting to diff month?

    My client forgot to run the depreciation for Jan 2011, and now the Jan period has been closed and report also done.
    My solution was to re-open the Jan and does the depreciation, once completed reclassify Jan depreciation posting to Feb 2011 manually.
    I am just wandering whether SAP can handle this different way.
    Can SAP performs Jan (Closed Period) depreciation and post to Feb period automatically or any other suggestions?
    Cheers

    Hi
    Yes, you can do that
    Follow this thread... Unable to post depreciation- Error AA730
    Using ABF1, you can do it
    Br, Ajay M

  • Formula for If column A is not Food or Diesel

    Hi
    I have two columns an Item column which lists Food, diesel, cash, boiler etc and an Amount column. What I want to do is add everything up in the Amount column apart from the Food and Diesel is there a formula to do this?
    Thanks

    Really easy when we have read carefully the iWork Formulas and Functions User Guide.
    Assuming that the table "Tableau 1" contain the products names in column A and the amounts in column B, in the cell A1 of the table Tableau 2 insert:
    =SUM(Tableau 1 :: B)-SUMIF(Tableau 1 :: $A,"=Food",Tableau 1 :: B)-SUMIF(Tableau 1 :: $A,"=Diesel",Tableau 1 :: B)
    which means :
    sum every cells of column B
    substract sum of food's amounts
    substract sum of diesel's amounts.
    Yvan KOENIG (VALLAURIS, France) lundi 22 mars 2010 12:03:58

  • Two different retrieval results on two spreadsheets for same account

    I am encountering some very bizarre retrieval behavior that I've never seen before. The version is 11.1.1.3. I have a dynamically calculated account, which produces a Contract-to-date value for Net Sales.
    The formula is:
    IF(@ISMBR("Jan"))
    @MDSHIFT("CTD Sales", 24, "Period", , -1, "Years", ) + "Net Sales";
    ELSE
    @PRIOR("CTD Sales") + "Net Sales";
    It's always worked correctly as far as I can determine. I took a copy of the outline and put it in my dev system and have been working on some other development. In testing, I noticed that my CTD Sales wasn't retrieving the correct number. This is on a spreadsheet with multiple other accounts on it. It works fine up through FY12, then in January of FY13 and thereafter, produces incorrect numbers, with no apparent pattern of error. So I put just the Net Sales and CTD Sales members onto another spreadsheet, without all of the other stuff, and retrieved that, and it produced the correct numbers. It's not a matter of having a spreadsheet formula in the retrieval spot that I've forgotten about (I've done that before). I also copied the spreadsheet with the wrong numbers, and retrieved in Smart View (was retrieving in Essbase add-in before), and got the same wrong numbers.
    In addition, I actually have three dynamically calculated CTD accounts on the sheet, and the bizarre behavior is happening for all three. With all of the other accounts on the sheet, wrong numbers. With only those accounts on the sheet, correct numbers.
    Also, for more information, one of my calculation scripts uses these CTD members, and it is producing the correct result, so this appears to be isolated purely to spreadsheet retrieval.
    So how can the same exact dimension intersection produce two different numbers on two different spreadsheets? Why would having other account members on a spreadsheet affect the results of one of the accounts? Has anyone ever encountered this before?
    Sabrina

    are you sure you have same combinations from rest of dimensions in both spreadsheets...like retrieving for same month ???Absolutely, 100% sure.
    Also does the difference exists for all months retrieval or only for Jan retrieval?It starts in January and the difference continues for the rest of the months/years after. The amount it's off by changes each year, but remains the same for each month in the year. So Jan through Dec of FY13 are all off by 50,321,000. Jan through Dec of FY14 are all off by 186,378,000. Jan through Dec of FY15 are all off by 351,757,000.
    Also note that if you have a retrieval as shown in the screenshot in the following link... for the last 5 months (AUG to DEC) under FY11 will actually retreive for FY12. this is a wierd behaviour.No, I have the year above each month.
    Sabrina
    Edited by: SabrinaD on Aug 3, 2010 12:31 PM

  • Request Smartcard Logon certificates for more than 2 years from Certificate Authority

    Dear all,
    I have setup a Certificate Services in a Windows Server 2008 R2 domain and I request certificates via the CA webpage
    http://ipofdomainserver/certsrv using the SmartCard logon custom template.
    The problem is that my certificates are only valid for 2 years even though when I created my custom Smartcard logon I selected for validity period 5 years. 
    I read in documentation that issued certificates cannot have a greater validity than the root that signed them.
    What and where I should modify to be able to request certificates from the template for more years than standard 2 ?
    Ps: WINSC-CA is valid for 5 years. Should I generate a new WINSC-CA ? How ?

    I was successfully able to create a root CA for 20 years, issued a certificate and login using smartcard using the following procedure:
    1. I increased the CA lifetime to 20 years by using this link http://www.expta.com/2010/08/how-to-create-certificates-with-longer.html
    Created the file CAPolicy.inf in %SYSTEMROOT% with following content
    [Version]
    Signature=”$Windows NT$”
    [certsrv_server]
    RenewalValidityPeriod=Years
    RenewalValidityPeriodUnits=20
    2. Renew CA root using this guide  https://technet.microsoft.com/en-us/library/cc780374(v=ws.10).aspx
    Console Root -> Certification Authority -> select domain -> Right click -> All Tasks ->
    Renew CA certificate
    3. Delete from Console Root -> Certificates (local computer) -> Trusted Root Certification
    Authority -> Certificates the *WINSC-CA that has the previous lower validity, and from 
    Certificates (local computer) -> Personal, the *WINSC-CA that was lower validity
    4. I performed a reboot here
    5. Change in Console Root -> Certificate Templates -> Smartcard Logon Custom Template (my custom duplicate template) -> Properties -> Validity 10 years
    6. Change in registry HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CertSvc\Configuration\<CAName>\ValidityPeriod
    to value 10 for 10 years.
    7. Request a new certificate from CA webpage http://ipofdomain/certsrv and let the webpage write it to
    smartcard (I was making sure there is no other certificate on the smartcard)
    8. Try to log in. At this point it should throw an erorr that smartcard logon is not supported for this
    account type. This is becuase we need to enroll it again for domain authentication
    9. Console Root -> Certificates (local Computer) -> Personal -> Right click -> All Tasks ->
    Request new Certificate -> Next -> Active Directory Enrollment -> Next -> Select Domain Controller Authentication -> Enroll -> Finish.
    Now you should be able to login using your smartcard and 10 years generated certificate.
    Though I have a problem at step 3, after CA server reboots the *WINSC-CA certificate with lower
    validity is restored automatically, but the certificates are generated for 10 years.
    What am I doing wrong ? How can I delete the lower validity root CA ?

  • How to get the same period last year value using Fiscal Calendar?

    Hi there,
    I am using DAX in a Tabular Model project but I am getting stuck trying to get the following:
    We are using a Fiscal Calendar (from 01 April to 31 March). 
    Previous Period Value
           Value
    2012
    April
    15
    May
    10
    Jun
    20
    2013
    April
    15
    30
    May
    10
    20
    Jun
    20
    25
    I have tried to use sameperiodlastyear but there is an error saying that this function cannot be used for non contiguous dates. DATEADD is given the same error...
    Could anyone help me getting the right measure expressions for [Previous Period Value]?
    Thanks and best regards,
    Joss

    Hi Joss,
    In SQL Server Analysis Services, we can can compare revenue with the hierarchy periods (year, month, day) by using the PARALLELPERIOD function, and now you want to compare with custom periods. (NOTE: We cannot compare it with the PARALLELPERIOD function
    since
    PARALLELPERIOD function returns a member from a prior period in the same relative position as a specified member. So if the first time span not equal to the second one (such as the first period is 3 days, and the second period is 2 month)).  Here
    is a sample query about PARALLELPERIOD function for your reference.
    with
    set Hotels as
    [Hotels].[Hotel ID].&[1015],
    [Hotels].[Hotel ID].&[5640],
    [Hotels].[Hotel ID].&[8800]
    set Period as [Arrival Date].[Date].[Month].&[2012]&[1]:[Arrival Date].[Date].[Month].&[2012]&[12]
    member [Arrival Date].[Date].[0] as sum({ Period })
    member [Total Amount N-1] as (PARALLELPERIOD([Arrival Date].[Date].[Year], 1, [Arrival Date].[Date].[Year].&[2012]), [Measures].[Total Amount])
    select
    [Measures].[Total Amount],
    [Measures].[Total Amount N-1]
    } on 0,
    nonemptycrossjoin
    Hotels,
    Hotels.[Hotel].children,
    *{[Arrival Date].[Date].[0]}
    } on 1
    from [Booking_Cube]
    Regards,
    Charlie Liao
    TechNet Community Support

  • User exit to calculate Same period Last Year

    Dear gurus,
    can some help me to code the user exit to calculate the same period last year for bex variable
    i.e
    System date :18.05.2010
    Same period last tear : 18.05.2009
    Your help  highly appreciated
    Thank you
    BR

    Hi,
    The above code creates problem only when date is 29th of Feb.
    To find whether year -1 is leap yr or not include following code also:
    l_year = sy-datum(4)-1 .
    l_mod4 = l_year mod 4.
    l_mod100 = l_year mod 100.
    l_mod400 = l_year mod 400.
    if ( l_mod4 = 0 and l_mod100 ne 0 ) or l_mod400 eq 0.
    if( l_date = 29)
    l_date= l_date -1.
    endif.
    endif.
    Modify your code according to youe need. Hope this helps you.
    Thanks,
    Jitender.

  • SSRS 2008 Column Chart with Calculated Series (moving average) "formula error - there are not enough data points for the period" error

    I have a simple column chart grouping on 1 value on the category axis.  For simplicity's sake, we are plotting $ amounts grouping by Month on the category axis.  I right click on the data series and choose "Add calculated series...".  I choose moving average.  I want to move the average over at least 2 periods.
    When I run the report, I get the error "Formula error - there are not enough data points for the period".  The way the report is, I never have a guaranteed number of categories (there could be one or there could be 5).  When there is 2 or more, the chart renders fine, however, when there is only 1 value, instead of suppressing the moving average line, I get that error and the chart shows nothing.
    I don't think this is entirely acceptable for our end users.  At a minimum, I would think the moving average line would be suppressed instead of hiding the entire chart.  Does anyone know of any workarounds or do I have to enter another ms. connect bug/design consideration.
    Thank you,
    Dan

    I was having the same error while trying to plot a moving average across 7 days. The work around I found was rather simple.
    If you right click your report in the solution explorer and select "View Code" it will give you the underlying XML of the report. Find the entry for the value of your calculated series and enter a formula to dynamically create your periods.
    <ChartFormulaParameter Name="Period">
                      <Value>=IIf(Count(Fields!Calls.Value) >= 7 ,7, (Count(Fields!Calls.Value)))</Value>
    </ChartFormulaParameter>
    What I'm doing here is getting the row count of records returned in the chart. If the returned rows are greater than or equal to 7 (The amount of days I want the average) it will set the points to 7. If not, it will set the number to the amount of returned rows. So far this has worked great. I'm probably going to add more code to handle no records returned although in my case that shouldn't happen but, you never know.
    A side note:
    If you open the calculated series properties in the designer, you will notice the number of periods is set to "0". If you change this it will overwrite your custom formula in the XML.

  • Calendar assignment in OAVH for '03' period control for calendar year dependent fiscal year.

    Hi
    We have a year dependent Fiscal Year in our client's system. It is a 5-4-4 Fiscal Year variant starting from March till Feb.
    While trying to create a new asset we faced an error "You cannot save this asset(Correct depreciation error)." I checked and found that the error is due to a missing calendar assignment in OAVH for the period control key '03' (Pro rata at mid-period) for our fiscal year variant. Till the last fiscal year it had been maintained, but for current fiscal year the assignment is not maintained.
    Can someone help me to understand how the calendar assignment is done in OAVH for a 03 period control key for a year dependent fiscal year like ours?
    I tried using the transaction OA84 (Generate Period Control), but it provides the calendar assignment for all other period control methods except for '03'. Is there some specific reason as to why OA84 does not generate for '03' period control?
    I checked the last fiscal year's assignments in OAVH for our fiscal year variant for '03' period control, but could not understand how it was configured, because it did not relate to the fiscal year variant assignment that we have done in OB29. Also, I even checked whether we need to enter the mid date of the periods, but that also was not done for the last fiscal year. I am unable to understand how the dates have been assgined.
    Given below is our last Fiscal Year's OAVH settings for '03' period control:
    FYV
    Period Cont
    Description
    Year
    Month
    Day
    Period
    AG
    3
    Pro rata at mid-period
    2014
    3
    17
    0
    AG
    3
    Pro rata at mid-period
    2014
    4
    18
    1
    AG
    3
    Pro rata at mid-period
    2014
    5
    16
    2
    AG
    3
    Pro rata at mid-period
    2014
    6
    16
    3
    AG
    3
    Pro rata at mid-period
    2014
    7
    18
    4
    AG
    3
    Pro rata at mid-period
    2014
    8
    15
    5
    AG
    3
    Pro rata at mid-period
    2014
    9
    15
    6
    AG
    3
    Pro rata at mid-period
    2014
    10
    17
    7
    AG
    3
    Pro rata at mid-period
    2014
    11
    14
    8
    AG
    3
    Pro rata at mid-period
    2014
    12
    15
    9
    AG
    3
    Pro rata at mid-period
    2014
    12
    31
    10
    AG
    3
    Pro rata at mid-period
    2015
    2
    13
    11
    AG
    3
    Pro rata at mid-period
    2015
    2
    28
    12
    Please advice.
    Thanks in Advance.
    Regards
    Ambarish

    Dear Ambarish,
    As it is a year dependent fiscal year variant, we should create the year for the variant via OB29, then generate the period via OA84.
    Best regards.
    Beam

  • Error saying 'Posting period 000 is not defined for fiscal year variant K4'

    Hi All,
       When I try to add a new entry in the transaction OB52, I get an error message saying 'Posting period 000 is not defined for fiscal year variant K4'. The entry that I add is,
    Variant           :  0001
    Account Type: +
    From Period    : 1
    Year               : 1995
    To Period        : 12
    Year               : 2010
    From Period2  : 13
    Year               : 2000
    To period2      : 16
    Year               : 2010
    Please let me know what customising needs to be done to solve this issue.
    Thanks a ton.
    Best Regards,
    Jeff

    Hi,
    Hava you checked in OB52 screen, by default 0001 posting period variant will be there for +, A, D, K, S account types.
    If it is already existed in your OB52 screen, you won't create one more record with the same name. You have to edit the existing 0001 posting period with new values.
    Thanks
    Chandra

  • Create values for analogous periods in the same table with DS

    Hi,
    in the course of a pilot we want to create additional columns with data for analogous periods.
    We have values for a month and need to create new columns for values for last month and last year in order to compare.
    Attached youu2019ll find a few sample rows resembling the basic concept of what we have
    Region     Country     Year     Month     Value
    Europe     Spain     2009     1     285
    Europe     Spain     2009     2     129
    Europe     Spain     2009     3     153
    Europe     Spain     2008     1     288
    Europe     Spain     2008     2     284
    Europe     Spain     2008     3     125
    Europe     France     2009     1     135
    Europe     France     2009     2     125
    Europe     France     2009     3     284
    Europe     France     2008     1     208
    Europe     France     2008     2     221
    Europe     France     2008     3     220
    In this case, new columns would be
    LastMonth (125 for Spain month 1 year 2009, since this is the value for month 3 year 2008)
    LastYear (288 for Spain month 1 year 2009, since this is the value for month 1 year 2008).
    Can you help on what function to use in the DS query transformation?
    thanks everybody, and enjoy!

    Hi David,
    Probably the easiest way of resolving this would be to add extra columns which show the projected date each row should be shown on e.g.
    Region     Country     Year     Month     Value     LM_Year     LM_Month     LY_Year     LY_Month
    Europe     France     2008     1     208     2008     2     2009     1
    Europe     France     2008     2     221     2008     3     2009     2
    Europe     France     2008     3     220     2008     4     2009     3
    Europe     France     2009     1     135     2009     2     2010     1
    Europe     France     2009     2     125     2009     3     2010     2
    Europe     France     2009     3     284     2009     4     2010     3
    This would be written to a staging table then used as a source with the original source file to produce the target table. I've illustrated an example of how this could be achieved below:
    Create two dataflows; DF 1 and 2.
    In DF 1 read source, add additional columns to show the date (year, month, etc) this should be projected as. This would need to be done for both the last month and last year. Load staging table.
    In DF 2 Read the source and outer join to the new staging table twice. Use the region, Country, Year, Month, to join and use the new additional projected date columns. Ensure the last month date fields are used on one staging table and last year date fields are used on the next staging table. The value from the two staging tables is then used in the last month and last year value.
    Load into target table.
    To calculate the projected date columns you would probably want to format the source fields into a date then add the required number of months. e.g. to_date('01' || month || year, 'DDMMYYYY') + 12
    Obviously this would need the stage table to be truncated before each load and you would need to assess your load strategy. When doing these calculated fields if you have any retrospective updates on the source then these would then need recalculating, therefore this assumes it's a complete reload each time.
    Edited by: Richard Saltern on Jul 16, 2010 2:01 PM
    Edited by: Richard Saltern on Jul 19, 2010 10:10 AM

  • How to create a running total formula for different calendar years

    Hello everyone,
    I am looking for some help in creating a running total formula for different calendar years in Oracle. This is what I currently have organized in the crosstab report: vertically I have the cities from our database organized, then horizontially have the following information for each city:
    2006 /2007 /2008
    Amount /Amount Spent /Unspent Amount Amount Recieved/Amount Spent /Unspent Amount Amount Recieved/Amount Spent/Unspent Amount
    Recieved
    I am trying to create a formula that will specify each calendar year. For example, I'd like to have a formula in 2007 which would total the: 2007= {2006 unspent amount + the unspent amount in 2007} and same for 2008= {2007 unspent amount + the unspent amount in 2008}. I hope this is clear, I have simplified the report into a basic interpretation of what i've been trying to accomplish.
    Would anybody know if this is possible and how to approach this?
    Really appreciate it! Thanks.
    Alex

    Hi,
    you can try and define a running total as a calculation in the crosstab as:
    sum(Unspent Amount) over (partition by city order by year)
    i find the crosstab format comfusing sometime since the aggregation is auto applied.
    I would start with a flat table and then "duplicate is as a cross tab"
    for your running total you can sort the data by the city,year and get it to 3 lines for each city, for example:
    city year Unspent Amount all other amount...
    X 2007 10
    X 2008 20
    X 2009 30
    Y 2007 5
    Y 2008 15
    Y 2009 25
    then you can use a funtion to calculate the amount :
    sum(Unspent Amount) over (partition by city order by year)
    this is the sql i used just to check it:
    SELECT city,year,"Unspent Amount"
    ,SUM("Unspent Amount") over (PARTITION BY city ORDER BY YEAR)
    FROM (
    SELECT 'X' city, 2007 YEAR, 10 "Unspent Amount" FROM dual UNION ALL
    SELECT 'X', 2008 ,20 FROM dual UNION ALL
    SELECT 'X', 2009 , 30 FROM dual UNION ALL
    SELECT 'Y', 2007 , 5 FROM dual UNION ALL
    SELECT 'Y', 2008 , 15 FROM dual UNION ALL
    SELECT 'Y', 2009 , 25 FROM dual
    Tamir

  • Result Analysis Values For particular period/year!!

    Hi Experts
    We are in a customer project, tenure of a project is around 2 to 3 years. As company follows Accounting standard AS-7 where we need to recognize the revenues in the same period in which the cost incurred. So, to achieve that we have planned the cost and revenue periodically for the years 2011-2012 ,2012-2013. But when i am running RA (KKA2) the results shows planned revenue and cost  as sum of all the years ,so accordingly POC will be based on overall Plan Cost and not Annual(Period ) based.
    But our requirement is that when i run RA for given period of particular year then RA should show planned cost and revenue for that particular period/year and accordingly  rest of the values like; POC, WIP, Reserves etc.. should get calculated .
    Please suggest how to approach to achieve the same.
    Thanks in advance..

    I think it is possible to meet your requirement through valuation method settings.
    please read sap help on RA.
    Please follow the below path to access the RA help
    SAP help portal -- Financials >> Controlling >> Product Cost Controlling >> Cost Object Controlling >> Product Cost by Sales Order >> Period-End Closing in Product Cost by Sales Order: Scenario >> Result Analysis

  • Problem with bex query listing sales "this month" and "same month last year

    Hi,
    I've created a query in BW BEx, where I have a mandatory variable for 0calmonth, and I list 0material and sales (in volume, liter). And I have a restricted key figure giving me sales (volume in liter) restricted with 0calmonth = variable - 12, to give me the sale for the same month the user select, previous year.
    This seems to be working, the sum is correct, but when adding up the number for the sales in the month previous year, the numbers does not fit the sum in the end.
    I think the report only lists materials with sales the month selected in the variable, if a material has not been sold that month, but in the same month last year, it's not listed in the reports, but it's added in the sum in the end.
    Example.
    We have three records like this:
    material - calmonth - volume
    101 - 01.2010 - 5
    101 - 01.2011 - 8
    201 - 01.2010 - 7
    The report will give the following (calmonth variable = 01.2011)
    Material - volume this month - volume same month last year
    101 - 8 - 5
    Sum 8 - 12
    Any way to solve this issue? We noticed because we run BO - Webi on top of the BEx query, and BO sum's the values per material, and in webi the report would give us the sum 8 and 5.
    Any input is appreciated.
    Regards,
    Øystein

    Hi,
    thanks for your reply.
    The error is that the report only seems to list materials that has been sold "this month", and if the same material was sold the same month last year, it will also list the volume for this.
    But if the material is only sold in the same month last year, it's not listed in the report, but it's calculated into the sum at the end.
    The report is listing material, which is why the error presents itself, as you said
    Getting 8 minus 12 is correct unless you drill down by material. In that case, it should be 8 minus 5 and 0 minus 7.
    The row with 0 - 7 is not shown, and my guess is that the report will only list materials that has sales this month (which has been selected in the variable)
    Regards,
    Øystein
    Edited by: Oystein Gundersen on Mar 21, 2011 4:36 PM

Maybe you are looking for

  • How do i use my account if i don't have a credit card

    i live in a location where credit cards are almost not used except for super rich people and corporations and i need to update my stuff. how is that going to work???

  • Ship to party can not be found in freight order for cost calculation

    Dear All, Cost charge can not be calculated because of missing ship to part. Please help me about this problem In my rate table, there are 3 combinations which are Product + Carier + Ship to party.and cost will be calculated according to weight. Also

  • Service cancellation fee

    I need to cancel our service. We have 4 lines, all being smartphones. How do I do it? I'm SURE Verizon charges a cancellation fee, ha!

  • G4 Tower Mac wont boot up

    Good evening I have just been given a G4 Tower Mac (quicksilver, I think), when I go to start it up it gets to a blue/grey screen with a small folder that keeps swapping from the icon to ?, and does not go any further. Any advise please.

  • List-processing: limitations to 255 chars per line?

    Hi, check the sample code below and if possible, execute it in some of your systems: start-of-code REPORT  ZISM_TEST52 LINE-SIZE 300. DATA:   line(300) TYPE c. WRITE '0123456789' TO line+250(10). WRITE: / 'From variable', /. WRITE  line. WRITE: / 'Di