The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Here are a few common calculations, Gross Margin %, Revenue and Cost.
So, given Revenue and Cost, what is my gross margin %?
GM % = DIVIDE(( SUM([Revenue]) - SUM([Cost]) ),SUM([Revenue]),0)
Given Cost and desired Gross Margin %, what should my Revenue be?
Revenue Measure = IF(HASONEVALUE(Revenue[Person]),DIVIDE(SUM([Cost]),( 1 - SUM(Revenue[GM])),0),SUMX(SUMMARIZE(Revenue,[Person],"__Revenue",DIVIDE(SUM([Cost]),( 1 - SUM(Revenue[GM])),0)),[__Revenue]))
Given Revenue and desired Gross Margin, what should my Cost be?
Cost Measure = IF(HASONEVALUE(Revenue[Person]),SUM([Revenue])*(1 - SUM(Cost[GM])),SUMX(SUMMARIZE(Revenue,[Person],"__Cost",SUM([Revenue])*(1 - SUM(Cost[GM]))),[__Cost]))
eyJrIjoiYTFhNzBkNTMtY2NkNS00YmZiLWE5ZGUtOTJhOWI5ZWY4YWE0IiwidCI6IjRhMDQyNzQzLTM3M2EtNDNkMi04MjdiLTAwM2Y0YzdiYTFlNSIsImMiOjN9
What do you do when you have a dynamic margin? In your example, you have used 45% consistent as a margin to find the cost. I want to use random % to find my cost based on sales. Is it possible?