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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
OzzB77-
Frequent Visitor

Individual percentage for each row, based on columns from two different tables

Hi.

I have been trying to calcualte percentage of each row in table O, based on a row values from table P. They are both connected to a calendar for weekend date, plus to each other with through ID (not active relationship, one to many). I have tried measures, one works works for total percentage but not for individual rows.

FillRate = (SUM(PlacementsFromTimesheet[Placements])/SUM(OpeningFromJob[Openings]))*100

I have tried divide, selectedvalue, etc nothing works for me.

I need something like (Table P [Placements]/TableO [Openings])*100 for each row.

 

Some Id's would be present in Table O but not in Table P, same for the weekend date, they will be NULL.

Need Help.

Thanks.

 

OzzB77_0-1701347930906.png

@amitchandak @Ahmedx 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@OzzB77- , For that you have to create common ID and Date/Weekend tables and join them back with both tables, and use them in Visual

 

Power BI- DAX: When I asked you to create common tables: https://youtu.be/a2CrqCA9geM
https://medium.com/@amitchandak/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-soluti...

 

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

View solution in original post

3 REPLIES 3
OzzB77-
Frequent Visitor

@amitchandak Sorry to bother you again, is there a way that I can put zero against the empty/Null fields that are coming though. As selecting from common table gives Placements and Openings from each table but against id's in Table O, there is no value in Table P. So it shows empty and skews the average. If it could be replaced with zero it would be accurate.

amitchandak
Super User
Super User

@OzzB77- , For that you have to create common ID and Date/Weekend tables and join them back with both tables, and use them in Visual

 

Power BI- DAX: When I asked you to create common tables: https://youtu.be/a2CrqCA9geM
https://medium.com/@amitchandak/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-soluti...

 

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

Hi @amitchandak ,

 

I added a common table for Id and it worked. Thanks for your help.

 

OzzB77

 

 

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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