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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
BeaudryL
Frequent Visitor

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
Solution Sage
Solution Sage

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
Frequent Visitor

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
Solution Sage
Solution Sage

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.