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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
PHEstaciMa1
Helper II
Helper II

Calculate Percentage from 2 different tables

hi all, I'm trying to calculate weekly compliance percentage of each department for every week coaching session versus the number of personnel present on a particular week. However, the number of coaching session and attendance of personnel is from two (2) different tables.

 

Example. 

Table 1 HR Wk10 # of Coaching Session - 2

Table 2 HR Wk10 # of Personnel Present - 3

Compliance Wk10 = 67%

 

Power BI Compliance.png

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1758163589482.png

 

 

Jihwan_Kim_0-1758163558375.png

 

 

Compliance %: = 
DIVIDE( SUM(coaching_session[session]), SUM(personnel_present[present]) )

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

View solution in original post

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1758163589482.png

 

 

Jihwan_Kim_0-1758163558375.png

 

 

Compliance %: = 
DIVIDE( SUM(coaching_session[session]), SUM(personnel_present[present]) )

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

thanks jihwan, it worked... I somehow got the relationship wrong

Hi @PHEstaciMa1,

 

Thank you for confirming, and we’re glad to hear that the solution provided by @Jihwan_Kim worked for you. Thank you so much for your answer.
The issue was indeed related to the relationship setup in your model, and once corrected, the calculation returned the expected results.

If you encounter any further challenges, please feel free to open a new discussion in the forum.
Thank  you.

Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.  Show the problem there clearly.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.