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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PHEstaciMa1
Helper I
Helper I

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

Click here to schedule a short Teams meeting to discuss your question.

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

Click here to schedule a short Teams meeting to discuss your question.

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors