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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
stevedata
Frequent Visitor

Sum on measure table not working correctly

Hi All,

 

hoping you can help me with an issue i am having summing up % values for data (multiple rows belonging to a category) when creating a table.

 

  example source data

CategoryActivityTotal InvitesAttendees
EventsEvent1105
EventsEvent23015
EventsEvent32015

 

In PowerBI Desktop I have added a new column to calculate rate of attendance - formula used is below

data   new calculated column = [Total Invites]/[Attendees]
categoryactivityTotal InvitesAttendeesAttendance Rate
EventsEvent110550%
EventsEvent2301550%
EventsEvent3201575%

 

when I create a table in PowerBI, based on the category Events, the % it shows is not correct - 

CategoryTotal InvitesAttendeesAttendance Rate
Events6035 175%

 

how do I get to show this rate as 58%?

 

Regards

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

You need to create a measure to return the average of your Attendance column, or just change the aggregation to Average in your visual (if you just added the Attendance column directly).

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
mahoneypat
Microsoft Employee
Microsoft Employee

You need to create a measure to return the average of your Attendance column, or just change the aggregation to Average in your visual (if you just added the Attendance column directly).

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


@mahoneypat  thanks for your response - I have just realsied that with the example numbers I provided this works and average is 58% but with my actual data I am using the issue is still not resolved - see below for when i select 'dont summise', 'sum, and 'average' options.

 

Don’t summise   new calculated column = [Total Invites]/[Attendees]
CategoryactivityTotal InvitesAttendeesAttendance Rate
Eventsevent1482348%
Eventsevent2201050%
Eventsevent37387119%

 

 

Sum    
CategoryTotal InvitesAttendeesAttendance Rate
Events141120217%

 

 

Average    
CategoryTotal InvitesAttendeesAttendance Rate
Events14112072.4%

 

72.4 is indeed the average accross all 3 events but instead of this I want the 85% number that shows the rate between total attendance vs total invites i.e. 120/141 = 85%

@mahoneypat ah just realsied in  my 'event 3' data theres an issue there where i have more attendees than invotes so your solution was correct, thanks again!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.