Forum Discussion

JackEnviro's avatar
JackEnviro
Helper I
7 years ago
Solved

Infinity issue with DIVIDE multiply and subtract

Hi All    The formula below works but with an infinity issue   Sales Total (Net) = SUMX('Invoices',('Invoices'[LineItem_UnitAmount]*'Invoices'[LineItem_Quantity] - 'Invoices'[CreditAmount] )/Inv...
  • MFelix's avatar
    7 years ago

    Hi JackEnviro ,

     

    Have you tried the following code:

     

    ttt =
    SUMX (
        'Invoices',
        DIVIDE (
            ( 'Invoices'[LineItem_UnitAmount] * 'Invoices'[LineItem_Quantity] - 'Invoices'[CreditAmount] ),
            Invoices[LineItem_TaxAmount]
        )
    )

    If this doesn't work can you share some sample information and expected result?

     

    Regards,

    MFelix