Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Calculating Gross Profit Margin

Hi: For Microsoft Dynamics 365 Business Central, I'm using the Chart of Accounts table and I'd like to calculate gross profit margin by subtracting cost of goods sold from revenue and dividing that ...
  • amitchandak's avatar
    6 years ago

    Anonymous ,

    If they are coming from two tables

    calculate(divide((sum(Table2[revenue])-sum(Table1[COGS])),sum(Table2[revenue]))

     

    From one table

    calculate(divide(sumx(Table[revenue]- Table[COGS]),sum(Table[revenue])))