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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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