DAX statment for Rate calculation

I need to write a DAX statement to calculate rate and the formula is below
Case when Quantity = 0 then Rate = 0 else RevAmount - WriteOffAmount / quantity end as Rate .
Moyz Khan

Moyz,
If you were doing this calculation for a Calculated Column: Calc=IF([Quantity]
= 0, 0, [RevAmount] - [WriteOffAmount]/[quantity]) and then you could do a measure like this: =Sum('table'[Calc])
For a just a Measure: =SUMX('table', IF('table'[Quantity]
= 0, 0, 'table'[RevAmount]
- 'table'[WriteOffAmount]/'table'[quantity]))
Hope this helps.
Reeves
Denver, CO

Similar Messages

  • Exchange Rate calculation not happening for Special GL in FAGL FC_VAL

    HI ,
    Exhcange rate calculation for all reconciliation accoout going on but for specilal gl not happens.
    Could you please tell  me whether system calculates or not for special gl or calculates only reconciliation account in FAGL_FC_VAL

    Its going well

  • Creating a rate calculator [was: how do i create this?]

    I want to create a rate calculator on a website with 2 input fields: calling from and calling to.  Here is what i've got:
    CALLING FROM table:
    COUNTRY     $/MIN
    Africa            0.10
    Europe          0.20
    Asia              0.30
    CALLING TO table:
    COUNTRY     $/MIN
    Africa           0.20
    Europe         0.30
    Asia             0.50
    USA             0.10
    Basically to get the rate $/min the CALLING FROM selected country and the CALLING TO selected country will be added together i.e calling from africa to USA would be $0.20/min (0.10 + 0.10).
    - How do i create the database for this? (in access)
    - How do i then create the rate calculator in a webpage? (asp/php)???
    I would really appreciate anyone who will be able to help me in this.
    Thank you very much.
    Natalie
    [Subject line edited by moderator to indicate nature of question]

    Create a database table with 3 columns
    Country
    ToRate
    FromRate
    Populate these values as appropriate.
    Create two drop down menus on your page; FromRate and ToRate.  Populate these with the values (Display value and rate) from the table.
    Then, you could either:
    1) Submit the form to a server side script that adds and displays the values
    2) Use Javascript to add and display the values

  • Cost center planning for overhead calculation

    Gurus,
    I have a doubt regarding the cost center planning for overhead calculation.
    My scenario is:
    There is a service cost center from which a certain percentage I want to allocate to the products as overhead. Now while doing so I have created a cost center and a cost element of type 43 (internal activity allocation). This cost element is the base for overhead calculation. Also I have created one cost element of type 41 (overhead rates). I have defined the credit (of cost sheet) with the cost element of type 41 and the cost center as mentioned.
       Now I am facing a problem while planning the cost center with cost element type 43 through KP06.The system is throwing the error message: 'Cost element xxxx can only be used for activity input'. My understanding is we must carry out the planning for the cost center to allocate a certain percentage to the product cost estimate. If I am not allowed to use the cost element of type 43 to plan, what should I use for the planning?
    Request your suggestion.
    Thanks in advance!
    Snigdho.

    Hi
    Since you mentioned catg 43 cost element, I thought you are using Activuty Type
    To apply overhead on the product during CK11N, you need not plan any value on the cost center... The values planned in the cost center can not be used as a BASE in your costing sheet....
    It goes like this
    1. Your cost estimate has BOM + Routing
    2. So, the cost elements that you would see during CK11N, can be broadly classified into 3 types
    a. Primary cost ele - Material Consumption accounts for BOM components
    b. Secondary cost ele (Catg 43) - If you use any actvity type in the routing
    c. Secondary cost ele (Catg 41) - These cost elements are parasites... They need some basis to calculate the overhead value... That basis can be either the (a) or (b) above.....
    I think, what you are planning to do is Plan Primary cost ele in a cost center and trying to use the same as the Basis.. That wont work!
    What you need to do is
    a. PLan the values in the cost center, say, 100,000 USD
    b. Absorb it on the basis of 2.a or 2.b
    If 2.b is not applicable in your case, since you are not using activity types, then 2.a is the Only option left for you
    Hope it is clear....
    Regards
    Ajay M

  • Base amount for tax calculation in billing document

    Dear Experts,
    Can you help me in this scenario
    when i create a billing document
    Selling Price :74,766.36
    Output Tax: 5233.65
    Final Amount: 80,000.01
    the total should be 80,000 in this case as per customer PO.
    the actual difference is coming from Tax rounding off done by SAP.Initially we added DIFF condition to adjust the Tax amount.
    But it is affecting the Output VAT report, where it shows 0.01 values. business does not want that, so we added DIFF condition to Selling Price.
    Net                 74,766.35  THB
    Tax                  5,233.65
    This is how it post to accounting
    01  8000485 Custome. 80,000.00
    50  2100100 Revenue Gds - Dom 74,766.36-
    50  2623600 Output Tax 5,233.65-
    40  2100100 Revenue Gds - Dom 0.01
    But the base amount for tax calculation is not chaning even after adding DIFF condition.
       Tax amount         Base amnt           Tx   Tax ra
        5,233.65-          74,766.36-           O7    7.000
               Output Tax rate 7%
    Is it possible to change the base amount for tax calculation to include DIFF value?
    Can you please advise? If i maintain Tax condition at header level, does this solve it.
    Regards
    Pradeep

    Hi,
    Please check your condition type settings for Rounding Rule
    may be it is marked as commercial
    mark as B and check it might work

  • How is Opportunity Win Rate calculated

    Metrics are not always so easy to figure out.
    So is there a list / document that explains how these fields are calculated?
    Specifiically how is the Opportunity Win Rate calculated?
    Thanks.

    Win Rate = ((# of wins) / (# of wins + # of losses))
    I believe Win = Closed/Won and Lose = Closed/Lost
    Refer Doc ID 565203.1 in metalink for more details.

  • ACTUAL ACTIVITY RATE CALCULATION

    Hi Gurus,
    Is it possible to calaculate actual activity rate based on plan hours......
    I know that we can splitt the actual cost based on plan hours by selecting splitting rule 22...
    Now im doing actul activity rate calculation through ksii...
    Then system considering actul hours confirmed in production for actual activity calculation.....
    Pls suggest me.
    RAM

    Thank you for prompt reply.
    Suppose this month we have produced only . 10 finished products.... But actual capacity is 20..... What ever cost moniterd by the production cost centers will be loaded on total 10 products only  at the time of revaluation of production orders if we calaculate actul activity rate based on actual hours....... so the cost of the product is getting increased... so that he want to calculate actual rate aslo with planned hours..... Is there any other solution for this..
    Pls suggest me ...... its very urgent.
    Ram

  • No daily exchange rate defined for rate type Corporate

    We are entering a transaction in AR for currency XDR (Nav Path in Receivables: Transactions->Transactions; Form Name: ARXTWMAI, FOrm Version: 11.0.62).
    The currency XDR is supposed to be IATA Rate related and has nothing to do with Corporate Exchange Rate (i.e. Bank rate). We have IATA Rate and Corporate conversion rate types (Nav Path in Receivables: Setup->Financials->Currencies->Rates->Conversion Type).
    While entering the transaction, we get this message:
    "FRM-40735: ON-INSERT trigger raised unhanled exception ORA-20000.
    ORA-20000: GLMCCURB: There is no daily exchange rate defined from XDR to MUR for MAY-00 for rate type Corporate.
    ORA-06512: at "APPS.RA_MRC_CUSTOMER_TRX_BIUD", line 318
    ORA-04088: error during exception of trigger 'APPS.RA_MRC_CUSTOMER_TRX_BIUD'
    ORA-06512: at "APPS.ARP_PROCESS_HEADER_INSRT_COVER", line 786
    ORA-06512: at line 1
    APP-01728: An assignment does not exist for these parameters.
    Cause: An attempt was made to find a sequence for this document flexfield. The option says Sequential Numbering is only partially used.
    Action: None is necessary unless you expected this document flexfield to have a sequence defined."
    We checked the Daily Rates from XDR to MUR (Nav Path in Receivables: Setup->Financials->Currencies->Rates->Daily) and it shows only IATA rates, which is correct since XDR is not for Corporate rate type.
    What we don't understand is why the error message prompts for an exchange rate to be defined from XDR to MUR for rate type Corporate.
    Where is it defined that the transaction should look for rate type Corporate? Should I define it to look for IATA rate type for such kind of transaction?
    Can anyone advise. Thanks.

    Andrew Li,
    1.For the first message, please check to your DBA, maybe there is some patches should apply.
    2. For the error msg APP-01728: An assignment does not exist for these parameters. Do you use document sequence number ? If Yes, make sure your document sequence has been assigned to proper SOB, and then please check profile option for Sequential Numbering. The Sequential Numbering profile should Partially Used or Always Used.
    I hope it will solve your problem
    Regards
    Mahendra
    null

  • Using a "Posting Key" relevant for the calculation of sales

    Hi All,
    if I make a posting by F-02 using a "Posting Key" relevant for the calculation of sales, I wonder: in which table SAP registers the data of sales?
    Is there the way to modify the relevance for sales of that posting?
    Thanks

    Hi
    As far I know, sales figures are getting updated in the following summary tables:
    KCN1 for Customer related.
    LFC1 For Vendor realted.
    Regards

  • How to configure release procedure for rate contracts release

    Dear all,
    How to configure release procedure for rate  contract following are the requirements
    they are two release codes c1 & c2 <=100000,>=100000
                    if  c1 is not there c2 has to be approved
         Change in the value of the rate contract contract
         Change in the validity of the rate contract
         Addition of deletion of line items
    While using a non u2013 released rate contract in the PO an error message should shoot out.
    Also the logic should be changed while using the rate contract in the PO.
    The usage of the rate contract should be till the validity of the rate contract. i.e. the measurement should be end date of the rate contract and the PO creation date and not the delivery date of the PO. &
    It should be possible to refer existing valid rate contracts in purchase orders.
    Regards,
    bhaskar

    Hi,
    In SAP rate contract is known as value contract denoted with wk. The release procedure for rate contract is same as that of other contracts and scheduling agreements. The tables  for contracts will vary with SA (Scheduling agreement) .You may try and maintain condition records based on the customer combination and maintian the validity date of condition records as per your requirement.For contract and PO will have the same header/item table as EKKO/EKPO, and the release
    class in standard is the same FRG_EKKO, you can use the same for contract.
    To distinguish if it's a contract or PO, EKKO-BSART can be used.
    For contract EKKO-BSART will be MK or WK, while PO will have NB/UB etc..
    You can restrict the document type to set up the release strategy for only contract.
    Of cause, you can also create your own release class Z* for contract copying standard
    one FRG_EKKO via CL01/Class type 032, and then assign the class Z* to customizing:
    OLME:
    -> contract
    ->Release Procedure for Contracts
    ->Define Release Procedure for Contracts
    ->Release Groups
    If you have already created the PO release class.
    Assign a new chracteristic of Document Category -BSTYP
    Please check below link for detailed release procedure. I hope this wil help you out .Thanking you.
    http://wiki.sdn.sap.com/wiki/display/ERPSCM/RELEASE+PROCEDURE#RELEASEPROCEDURE-TABLESUSEDFORRELEASEPROCEDURES

  • Alternate base for ED calculation in PO

    Dear All,
    Kindly guide on below isse.
    Suppose I have to Procure material A @ Rs. 100 then its PBXX / PB00 value will be Rs.100 and system will pick this value as Base for Excise calculation however there is a discount of 25% leading the price of the Material  to Rs. 25.
    Now I want the system to consider this Rs.25 as base for calculation of Excise duty. Please guide to configure the scenario.
    I am using TAXINN procedure.
    Regards,
    Sananna

    Hi,
    As per SAP standard & statutory norms Taxes such as ED and VAT are always calculate on Gross the condition type for the same is BASB in FI tax procedure. If you wish to add any other condition type such as discount & freight which added to Gross and Excise duties should calculate on this ( Basic+ Freight + discount= Excise 10%) to be calculated in that case in subtotal column of MM pricing procedure you need to enter 4
    In the dame way if you wish the system to calculate Excise duties as (Gross u2013 Freight- Discount= Excise 10% ) then you have to adjust in condition record in FV11 for relevant condition type such as JMOP instead of 10% it might be less than 10 you have arrive to that calculation in the reverse way then maintain the condition in the FV11 If you are using TAXINN procedure or if you are using TAXINJ procedure then in FTXP for the relevant tax code you need to change the calculation in the same way but remember if you carry out this changes in FTXP it will be applicable to all the PO which are using  same tax code .Hope this clear.
    Regards

  • Base Value change for CST calculation

    Hi,
    I've a requirement that CST should get calculated on an assessible value and not on Net Price in the PO. e.g.
    Basic Price: 100
    BED@10%: 10
    ECess@2%: 2
    SHECess@1%: 1
    Subtotal 1: 113
    Assessible Value for CST: 90
    CST@4%: 3.60
    Total: 116.60
    How can we change base value for CST calculation in Tax Procedure?
    We are using Tax Procedure TAXINN.
    Thanks in advance.
    Regards.
    Manoj

    Hi All,
    I got the solution for my issue so closing the thread.
    I changed the Tax procedure.Add two new condition types, one for Assesseble value for CST calculation and another one which is a copy of JVCS(CST condition).In case when no assesseble value is maintained, new condition type for CST will be zero.
    Regards.
    Manoj

  • Standard Program for Retirement Calculation or Year of Service

    Hi,
    I like to know whether there is any standard report program for Retirement Calculation or Year of Service. If it is available please share it ..

    Year of service     s_ph9_46000216
    or u can run flexible employee data S_AHR_61016363, select seniority, date of entry etc
    S_L9C_94000095  choose employment status 'retiree'

  • Default account assignment for Rate difference for sales a/c

    When we try to clear the vendor through F110 we are facing error. Document posted with SDRU currency. It is expiry currency. It need to clear through USD . Vendor contain customer in the master data. But we are unable post in System No 1
    Another system we are able to post. It is automatically taking GL accounts for rate difference accounts for sales and purchase accounts.
    Here the entry is like below
    001 18      vendor                           139,99                
    002 25      Customer                   488,98       
    003 50      Bank                340,98                
    004 40      Rate difference for sales a/c           4,69                   
    005 50      Rate difference for purchases         12,70
    We want to compare both systems to find out the reason why it is not posing in one system
    Rate difference for purchases account assigned to OBYC-KDM
    But we are unable to find the Gl account Rate difference for sales a/c where it is assigned.
    We have seen OBKP, VKOA, OBA1 . Please let us know where this Rate difference for sales a/c may be assigned
    Please let us know Default account assignment for Rate difference for sales a/c

    Hi,
        Regarding the rate differences. These accounts come from OB09 where it is defined for the Reconcilliation account in the customer/ Vendor.
    The account "Rate difference for purchases" is coming from OB09 , it is not from OBYC-KDB in this case.
    Kind regards

  • Report script command equivalent for @relative calculation command

    HI ,
    We have a calculation script which has a fix statement like below :
         FIX( Grade, "w/o LO", "Line Options", AtLaunch, @DESCENDANTS("470.92"), @DESCENDANTS("Price Item"), @RELATIVE("Total Region", 0) )
    We are trying to make a reportscript which gives us the format of the set of database being calculated.
    So we are tranforming the above calc script commands into equivalent report script commands. We are struck with the @Relative command.
    Can somebody tell us what is the equivalent report script command for @Relative calculation script function.
    Regards
    OKU

    There's no direct analogue, but you can use the <LINK command along with <DESCENDANTS and <LEV to get pretty close. See: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/rwriter/link.htm
    JExport (if pre 9.3) or DATAEXPORT (if 9.3 or greater) may also be options and will in fact allow @RELATIVE to be used.
    Regards,
    Cameron Lackpour

Maybe you are looking for

  • HT1688 Recently upgraded from Iphone 3gs to Iphone 5...

    I am trying to delete my old contacts phone numbers from my new iphone 5 and they keep reappearing when i go to type a message to someone.  Does anyone know how to permanently delete the old phone numbers??

  • Msn iqy return no data

    My IQY files stopped working yesterday.  Has something changed or are there some web issues? Dean E. McKaig Any progress on the fix here?  MS lack of concern here really SUCKS!!!

  • How is it possible to include in the procedure  part of HTML ?

    Hi, how is it possible to include in the procedure HTML tags? Such description give error message: <%public void statt()%{%> <option value="US">United States</option> <option value="AF">Afghanistan</option> <option value="AL">Albania</option> <%}%> T

  • Trying to use Nokia PC Suite but it keeps losing c...

    This is getting very annoying! Every minute or so it will say phone disconnected then about a minute later it'll saying phone connected. I've never had this problem before. Any advice?

  • How can I format my Satellite P30

    Hi, I've got a Satellite P3-133 and i need to format it, but when i put the disc in it shows up as pictures? heres the page i gt when i put the disc in: http://img129.imageshack.us/img129/9740/toshiba4eb.png Thanks