Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Annah
Regular Visitor

Need help calculating the Death Rate.

Texas  2016 (Death & Population) _50%.PNG

 

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.

1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

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.

Did I answer 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


View solution in original post

5 REPLIES 5
mwegener
Most Valuable Professional
Most Valuable Professional

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.

Did I answer 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


saraMissBI
Resolver I
Resolver I

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

az38
Community Champion
Community Champion

@Annah you are already have the column Deathrate in your model. Whats exactly wrong with it?

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

You mean to say whatever popullation is showing is correct. If yes then add below measure

Rate=Divide(Deaths,Poppulation,Blank())

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.