So were able to work out our percent profit margins using measures. Within Power Query click Add Column - Custom Column In the Custom Column dialog box enter the following formula. This is where we need to use the CALCULATE function to apply calculation right-click on the table and choose the New Measure option.
Percentage Revenue Distribution RevenueCALCULATE sum Revenue Distribution RevenueALLSELECTED 100 Verify your formula is correct and you are able to save the new column.
This video shows you how to use the SUM function to quickly and easily calculate percent totals for an entire column in Power BI. Order Pct ALLEXCEPT DIVIDE Total Orders. PercentageofTotal SUM Sales Sales Number CALCULATE sum Sales Sales Number ALLEXCEPT salesSales Sales ID Sales Sales ID in VALUES Sales Rep Sales ID Now we get the correct result. So were able to work out our percent profit margins using measures.