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
amehmood
Helper I
Helper I

create a measure using data from two unrelated tables.

 

Hi

I need assistance to create a measure using data from two unrelated tables. Table 1 contains population data by year, 2013 to 2020. Table 2 contains data on the level of injures: “Deaths”, “serious injury” etc these records are by dates. I need a measure to calculate rate = counts of “Death”/population * 100,000. The calculate rate could be for the year as well as by quarter of a year. The population within a year is the same for all quarters of the year.

 

Here is the data

https://drive.google.com/open?id=1n84BTQ6_kXCuvClFylDW_jSyFFV29Tip

 

2 REPLIES 2
amitchandak
Super User
Super User

@amehmood , typically the population remains the same in a year.

Create a date column and join it with the common date  table

 

Date = Date(Year,1,1)

Population should be taken once per year, what month we select

 

You can try a measure like this

sumx(summarize('Population', Date[year], "_1", calculate(max('Population'[Population]), filter(All(Date), Date[Year] in values(Date[Date])))),[_1])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks

 

I have also calendar table, can we make use of it, if possible pls send me Bi file.

 

Thanks

 

 

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.