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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
BeaudryL
New Member

Trying to calculate survey response rates

I have page with chart which can be filtered by department, instructor, etc. and I want a card displaying response rate for data in chart (with whatever filters they choose).

example: For instructor = Susan:  should be 8 responses/45 enrollment = 18%

what happens:  sum(responses)/sum(enrollment) returns 8/175 - it's counting the enrollment for each row in EvalData Table 1

 

Very new to PowerBi - just can't figure it out 😞

 

TABLE 1     
COURSEDEPARTMENTINSTRUCTORQVALUERESPONSES
courseAMATHSusanQ141
courseAMATHSusanQ241
courseAMATHSusanQ331
courseAMATHSusanQ441
courseAMATHSusanQ531
courseBMATHJohnQ141
courseBMATHJohnQ231
courseBMATHJohnQ331
courseCSCIENCESusanQ131
courseCSCIENCESusanQ221
courseCSCIENCESusanQ331

 

TABLE 2 
COURSEEnrollment
courseA20
courseB18
courseC25
1 ACCEPTED SOLUTION
sayaliredij
Super User
Super User

Hi @BeaudryL ,

 

You can make relationship both direction and it should work

 

sayaliredij_0-1706733702067.png

 

Thanks and Regards,

 

Sayali

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful!! 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
BeaudryL
New Member

I thought it should be this simple, but kept fighting it - turns out I had an additional field (one of many) that was in both tables that was causing the issue. Got rid of the duplicate field and it worked. It's the little things!

 

sayaliredij
Super User
Super User

Hi @BeaudryL ,

 

You can make relationship both direction and it should work

 

sayaliredij_0-1706733702067.png

 

Thanks and Regards,

 

Sayali

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful!! 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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