Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I need to divide the deaths by population(pop) to get the Death Rate for that Disease and year. Population for the same year is repeted 10 times because the diseases/causes are 10 different diseaseas. How can I achieve this? Please help.
Solved! Go to Solution.
Hi @Annah ,
try this.
Population = SUMX(SUMMARIZE('Table','Table'[Year_State],"@Pop",AVERAGE('Table'[Pop])),[@Pop])
Death Rate = DIVIDE(SUM('Table'[Deaths]),[Population])
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hi @Annah ,
try this.
Population = SUMX(SUMMARIZE('Table','Table'[Year_State],"@Pop",AVERAGE('Table'[Pop])),[@Pop])
Death Rate = DIVIDE(SUM('Table'[Deaths]),[Population])
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hi @Annah ,
You can simply create a new calculated column "Death Rate", and put in the formula:
Death Rate = 'Table'[Deaths] / 'Table'[Pop]
Then specify the format of the new column as percentage
Please give kudos if my answer helps, and mark as a solution if it resolves the issue 🙂
Hello, I have already used that calcuation but it did not resolve the issue. Thank you anyway. I appreciate your help
You mean to say whatever popullation is showing is correct. If yes then add below measure
Rate=Divide(Deaths,Poppulation,Blank())