Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
4 years ago
Solved

Total % over rows.

I have a sales table with the company, date, invoice number, product and amount. I would like to know the formulas for the columns Amount2 and amount3 . Amount 2 is the % of each product on the tot...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi teixidor ,

     

    Here's my solution.

    1.Importe2 is to put the Imprte1 field into the value, and then select show value as 'Percent of grand total'.

    Tips: You can rename the field.

     

    2.Importe3 is measure, it is as follows.

    Importe3 = var _total=CALCULATE(SUM('Table'[Importe1]),ALLEXCEPT('Table','Table'[empresa]))
    return DIVIDE(SUM('Table'[Importe1]),_total)

     

    You can check more details from the attachment.

     

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.