Wrong sales calculation

hello.
make 2 restricted key figures.
1 is sales for 1-30 past days from report data
2 is sales for 31-60 past days from report data
when i begin analyze this data, i see next numbers:
200973     1000/1402          197 Ì     
     Ðåçóëüòàò          197 Ì     152 Ì
what's up with second key figure? why result show 152 but detail is empty??
key figures are simple:
calday 0-29 and 30-59
key figure - quantity
and that's all.
help plz. thank you.

found the problem.
there are condition on query. so results calculated without that condition... on hole selection...
is that correct?

Similar Messages

  • Last year sales calculation in calculated column

    Hi everybody!
    Please help me to solve issue with last year sales calculation in calculated column. I have 'Fact' table with sales for every period in it and related table 'Time' with 1, 2, 3 'PeriodID' column for string MAT 2011, MAT 2012, MAT 2013.
    I know the solution for measure:
    =CALCULATE ( SUM(Fact[Sales]); FILTER (ALL ('Time'); 'Time'[PeriodID] = MAX(Time[PeriodID]) - 1))
    But for the purpose of my analysis I need to make a calculated column. What I want to see looks like this table:
    Product
    Period
    Sales
    SalesLY
    A
    MAT 2013
    17
    10
    B
    MAT 2013
    20
    23
    C
    MAT 2013
    45
    33
    D
    MAT 2013
    13
    16
    A
    MAT 2012
    10
    8
    B
    MAT 2012
    23
    31
    C
    MAT 2012
    33
    5
    D
    MAT 2012
    16
    22
    A
    MAT 2011
    8
    0
    B
    MAT 2011
    31
    0
    C
    MAT 2011
    5
    0
    D
    MAT 2011
    22
    0

    Thanks for the idea!
    It's an option. I slightly modified expression to make it more generic:
    =CALCULATE
          SUM (Fact[Sales]);
          FILTER (
                        Fact; Fact[Product] = EARLIER (Fact[Product]) && Fact[PeriodID] = (EARLIER(Fact[PeriodID]) -1)
    Where Fact[PeriodID] is calculated column with '=RELATED (Time[PeriodID])' formula. To my opinion this is more universal approach.
    But it has the cons. EARLIER is memory demanded function. In case of 32-bit OS or numerous nested EARLIER error might occur.
    Is there any alternative solution?

  • Wrong tax calculation for minimum sales order scenario

    Hi all! We are trying to use minimum sales order value for our sales order processing in CRM. The sales order value and the calculated tax looks fine when the sales order is created. Eg.
    Quantity = 10
    PR00   $4 each    Total value of $40
    AMIW  $50
    AMIZ   $10
    MWST $6.25 (tax of 12.5%)
    When we create the billing document in CRM, the net value is shown as $50. However, when we look at the Conditions, the tax is calculated based on a tax base value of $100 and hence ended up with $12.50.
    Quantity = 10
    PR00   $4 each    Total value of $40
    AMIW  $50
    AMIZ   $10
    0TTE   $0
    MWST $12.5 (tax of 12.5%)
    Does anyone know what I might have missed out that would cause this problem?
    Any comments would be very much appreciated.
    Cheers!
    SF

    Hi Devi,
    If you want to do the billing in CRM, then you need to use the billing pricing procedure in CRM. Below is the list of the configurations I usually do:
    1. Create new transaction type if needed
    2. Create new item catagory if needed
    3. Assign item category to transaction type if 1&2 is created
    4. Create new document pricing procedure
    5. Assign pricing procedure to sales organisation and new document pricing procedure
    6. Create new billing type if required
    7. Creat new billing category if required
    8. Assign billing item category
    9. Assign revenue account for sales transactions
    10. Assign accounting document type to billing type
    11. Create new sales order type in R3 if 1 is done
    12. Create new item category in R3 if 1 is done
    13. Make sure that item category is assigned to the new sales order type in R3
    14. Create delivery item category in R3. This has to be the same item category as that in the sales order as the system copies the item category of the sales item into the delivery.
    Hope that helps.
    Regards
    SF

  • Wrong depreciation calculated for base value 04 + EA-FIN activated

    Hi,
    after activating EA-FIN, depreciation for assets using base value 04 (= half of replacement value) is calculated wrong.
    While AW01 for a particular asset shows depreciation values based on the FULL replacement value (like it would be base value 03) AW01_AFAR (the u201Coldu201D asset explorer) shows the correct depreciation for base value 04.
    The wrong base value can also be seen using the "display depreciation calculation" button in both transactions.
    There are no enhancements for base value determination active.
    I didnu2019t find any SAPNET notes nor SCN entries regarding this case, any ideas?
    Best regards, Christian

    For what it's worth, I did a search and didn't find anything either. 
    It sounds like you've already tried this, but if the base value (the actual $$ value) is different in the trace on both tcodes then you have a problem.  I would be sure to recalculate the values when you enter AW01 and AW01_AFAR to ensure that it's correct before looking at the trace.
    The formula for the replacement value is: 
    ( u_ganlc-kansw + u_ganlc-answl +
                   u_ganlc-kmafa + u_ganlc-mafav + u_ganlc-zusma +
                   u_ganlc-mafam + u_ganlc-mafal +
                   u_ganlc-kaufw + u_ganlc-aufwv +
                   u_ganlc-aufwp + u_ganlc-aufwl ) / 2 .
    I'd look at ANLC for the asset and do the calculation yourself to confirm the value. 
    You've probably done all of that so I predict an OSS message in your future !
    -nathan

  • Wrong excise calculations in MIRO

    Dear All,
        we have created a PO and partial MIGO and MIRO has been done and all the entries has been posted correctly. Now while doing MIRO for the remaining partial quantity excise values are calculating wrong in MIRO. GRN has been done and part 1 and part 2 entries also posted. the tax code has 12% , 2% , 1 % and VAT 5.5% . In part 1 and 2 12% amount 2734.00 has been posted.  while doing MIRO ED value is calcuating as 1367.00.
    i have checked in FTXP and in J1ID the values has not been changed. Kindly suggest how to proceed.
    thanks and regards,
    RGS

    thank you so much..!!  i check the table J_1IGRXREF as the per link suggested and found only half of the amount is updated there. i.e., 1367.00
    Again i checked the table with the excise invoice number and found two entries of 1367.00 with two material document both those two material document has the same accounting document.
    i..e,
    material document 1          1367.00           accounting document 1
    material documnt  2           1367.00           accounting document 1
    however only one material document i can able to display in MIGO with 2734.00 when i display the other document it says document does not exist.
    can i suggest to reverse the GRN and then to do it again ?

  • FA: Wrong deprecation calculations

    Dear Value Consultant
    I already calculate deprecation with wrong percent cause from the beginning I assigned the assets item to wrong accounts category
    Now what I can do? my case the assets is calculated deprecation for 3 period past and already post those journal in GL , I want to to reassign it again to correct category and calculate correct deprecation for previous month
    How I can handle this case ?
    Facts:
    The transaction accounting for deprecation asset is already post from GL but with wrong amount (for three-month back)
    How I can correct the previous transaction, create new transaction with correct value, and correct assign category
    Thanks

    Since you have already posted your prior 3 months of depreciation in GL there is nothing you can do to correct the FA interface data for those months.
    In the current period you can assign your assets to the correct categories. You can do this manually for a small number of assets. For a large number of assets you can use the mass reclassification functionality in FA. That will move all assets that you specify to the correct category.
    When entering your criteria do NOT choose the amortize adjustments option. If you do this Oracle will calculate the change in depreciation and divide it evenly over the remaining life of the asset. By not choosing this option Oracle will calculate the change in depreciation and book it all to the current period.
    In order to correct your depreciation balance in GL you will have to manually enter a journal for each of the previous 3 periods to get the correct balance. But if you do this you will have to make another correction in the current period once Oracle posts the depreciation journal to correct the life to date depreciation. OR, just leave the previous 3 periods alone and let Oracle do the correction in the current period.
    I hope that this helps you.

  • Wrong percentage calculation in Hierarchy

    Dear All,
    I have a hierarchy Customer Group->Customer Name->Document No. I am calculating percent of Total for top 20 customers.
    Problem here is that percentage is calculated correct till the Customer Name Level but fails for document No level.
    Please help.
    Thanks, Franco.

    Hi Franco,
    According to your description, you are Crete a calculated measure to return the percentage on each hierarchy level, the problem is that percentage is calculated correct till the Customer Name Level but fails for document No level, right?
    Based on my research, the issue can be caused by that there a unknown members on the document No leavel. So the total value is bigger than that on other hierarchy level. You can use exclude the unknown member to calculated percentage.
    [Measures].[Sales LCY]/Sum({[DimCustLedgerEntry].[Customer].[All DimCustLedgerEntry]-[Dim].[Hierarchy].&[Unknown]
    },[Measures].[Sales LCY]) ,FORMAT_STRING="PERCENT".
    Reference
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/0a4324af-dc41-4953-94b9-0c2f2a3d2668/mdx-custom-set-excluding-unknownmember
    http://msdn.microsoft.com/en-us/library/ms170707.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • Fd10n how are sales calculated ?

    FD10N has a Sales column. If I double-click on a number in this column, I get a list of line items totalling to this number. How does SAP decide what to include / exclude when calculating the total. Is this configurable?
    Thanks, John

    Hi:
              FD10N sales column constitute of total invoices generated through SD module..Invoices routing through SD module are reflected in FI subsidiary ledgers (FBL5N ) with some document type like RV...If you run FBL5N for a particular month all items criteria and filter document type RV and exclude its reversal if any then it should tally with FD10N sales columns..FD10N is a standard report which can not be changed..Hope it will help you.
    Regards

  • Sales calculation

    Hello,
    I need to calculate monthly sales of my company.
    As for now i have used the following condition in VBRK table.
    Total sales invoices generated per month (excluding canceled invoices)  - Total return invoices generated per month.
    I pass these invoices in VBRP table to get he individual line items and sum them up for the given period.
    The report shows division wise, sales group wise, sales district wise etc. whick also i pick up from VBRP.
    Is there any condition that i need to use?
    Ishan Khandelwal

    Hello
    You can use std SAP report for your requirement.
    Use following tcodes for those reports
    Desc.
    Tcode
    Sales summary
    VC/2
    Sales org analysis-Invoiced sales
    MC+2
    Sales org analysis-Incoming orders
    MC(I
    Sales org analysis-Returns
    MC+Y
    Sales office Analysis- Invoiced Sales
    MC-E
    Sales office Analysis- Returns
    MC-A
    Material Returns-Analysis
    MC+M
    Material Analysis- Invoiced Sales
    MC+Q
    Regards
    JP

  • Customer extended to wrong sales area

    Hi,
    We have 3 sales area,
    Sale area one :- 1000-10-20
    Sale area two :- 1000-10-30
    Sale area three :- 1000-10-40
    Customer is created in sales area one, we want to extend this customer to sales area two but by mistake it has been extended to sales area three. I want the customer only in sales area one and two and not in three.i.e in XD02 after entering the customer code, company code, after clicking customer's sales area only sales area one and two should be visible. How can I correct this.
    In similar way some of the views are been added in material master. How can I correct this.
    Vipin

    Hello
    You can use transaction VD06, but what you will do is you will only set a flag for deletion
    Deletion process is not that easy, because you could potentially have some documents created for that customer. so if system will allow you to delete completely, that it will create inconsistencies. If you want to delete the customer master data completely you will need to work with archiving process.
    Its better you only block the customer (please use VD05 for it)
    regards
    Rafal
    Edited by: Rafal Drezek on Jul 9, 2009 1:57 PM

  • Infotype 0008 - Wrong Salary Calculation

    Hello,
    We are having a problem with Infotype 8 annual salary calculation in 4.7. We have 173.33 working hours per month and Capacity utilization level 100%. The way It is calculating annual salary below..
    Monthly Salary = 5000
    It's multiplying working hours 173.33 with 12, so it comes to 2079.96.
    Then monthly salary is getting multiplied by 2079.96 x 5000 = 10399800 but what we want to see is 12x5000 = 60000 in annual salary amount instead of 10399800.
    Please help if you have come across this kind of problem.
    Thank you very much.

    Hi Mohammad,
    The system is treating your pay amount as an "Hourly" amount rather than a "Monthly" amount.  Please check your assignments to the Personal Calculation Rule in table V_503_B.  This tells the system whether the Employee Subgroup is treated as hourly or salaried.  If your position is assigned to the proper Employee Subgroup, the proper amount will default in IT0008-Baisc Pay.
    Paul

  • Wrong Sales UOM in Article and Billing document

    Hi,
    We have an issue in Aggregated Sales Idoc Posting. There is an article which is having Base UOM as "EA" . It has "CAR" = 12 EA.
    So 2 UOMs are there. From POS when the file is posted with 1 CAR , in SAP Billing and Article documents created only with "EA" and not with"CAR".
    In Aggregated "WPUUMS" IDOC,Sales UOM field is there and we checked the Idoc and it contains "CT" for CAR as Sales UOM , but while posting ,it takes the Bases UOM. In this case "EA". Its posting the right quantity as 1 for CAR.
    Please help

    Hi,
    There is no any option to change currancy at time of invoice creation
    But round the way solution is available
    Create sales order with CLP Currancy (VA01) >>> Delivery (VL01N) >>> Create invoice with CLP currancy (VF01)
    Then go to t-code EWUO
    And change the currancy of sales document
    Kapil

  • ISA ERP Sales Order takes wrong sales area

    Hi experts!!
    I am facing a very strange issue:
    I have configured my eshop(B2B scenario, ERP edition) for 1000 10 10 sales area. So far everything was fine until some customers were extended to 1000 20 20 sales area, and now SOME sales orders for those customers that were extended are created from the eshop to 1000 20 20 sales area. I cannot find any difference between sales areas. But the second one is NOWHERE in Internet Sales Configuration.
    Please Help!!!

    Instead of using an external breakpoint, you can use "generate test data" described in Note 517767.
    That is much easier than with a breakpoint...and you can use it in future for other analysis of BAPI's too.
    Both ways are possible, but in my point of view its easier with test datas at the transaction SE37.
    Best regards,
    Toni

  • VL10B picking wrong sales org.

    When we do a stock transport order, PO type ZUB, we ship from our plant to another plant. Each plant has it's own sales org. assigned to it. We use transaction VL10B to create the outbound delivery note.  We have 4 satellite plants that we will ship to and each has it's own sales org.  I've looked in configuration under STO in SPRO and the correct sales org is assigned. I've also looked at sales org. assignment and the correct sales org is assigned to the correct plant.  However, when I create the delivery, it is seems to be using the sales org from the supplying plant and not the destination plant.
    What can be causing this issue?
    Thanks very much.

    That is the design, read this Inter-company STO with SD Delivery, Billing & LIV

  • PO GR wrong amount calculated

    Hello Experts,
    I have an issue to disscuse about PO/GR.
    Scenario, 
    PO qty  3000000.00 lb
    Material xxxyyy (raw material)
    Recieved  (GR) 20000 qty   amount 5000 dlls
    but the price was incorrect and user reversed the movement and the price recalculate wrong again the amount so now the result is that GR won't match against what we have to pay.
    I there a solution directly in FI to handle the difference of what we have in GR and what we going to pay?
    Thanks in advance for your comments
    Regards

    Hi,
    System takes amont from material master, check Your std or mvt price for this material and if it's necessery chenge it - keep in touch with controlling departement if You will going to change std price.
    Regards
    Lukasz

Maybe you are looking for

  • Need disk 2 of Creative Suite 4 Web Premium

    So, my laptop crashed and I needed to re-install Windows 7 and all of my software including CS4-Web Premium. I put in disk one and entered my code, no problem. Install started up. A few minutes later, it asked for disk 2. I put it in and nothing. Dri

  • Can i record sounds on macbook pro without an external soundcard

    can i record sounds on macbook pro without an external soundcard? i need to connect my korg triton extreme with macbook pro and record. does it need an external soundcard for avoiding latency of sound?

  • Luamail: a mail client built into luakit

    see http://dieter.plaetinck.be/luamail_a_ma - uakit.html

  • Modbus TCP server/slave implementation

    Does anybody have experience to implement a modbus server or slave application? My computer needs to communicate with a PLC. The configuration is: computer is TCP server or slave, PLC is TCP client or master. Computer to write input registers for PLC

  • Empty array slots

    Hi all. I have a string which broken down into sentences using a regex [.!?]. Then these are stored into a array of string, which are then added to a vector but when i have a fullstop followed by another fullstop. It stores a blank in the vector thou