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

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

Reply
chrismoncrief
Frequent Visitor

Calculating Average in Total Line

I am sure this is something simple that I am missing, but I have created reports that have the total line enabled on my report.  Each line in the report calcuates an percentage for the line.  However, in the totals line all the options I find either sum the percentages, or gives me an average of all the percentages.  

 

chrismoncrief_0-1739334982389.png

 

Above is an example from the report.  What I am looking for in the total line is for it to display the percentage of $15,444.84/$28,625.15.  The only options I have found gives me a total of 164.72% summing the two numbers, or 82.36% which is then the average of the two numbers.  Nothing I have found would display the total as 53.95%.  Any help would be appreciated.

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1739335835334.png

 

percentage measure: = 
DIVIDE( SUM(data[actual]), SUM(data[plan]) )

 

 


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

2 REPLIES 2
shafiz_p
Super User
Super User

Hi @chrismoncrief  The following measure should work. Please try this below code:

Total Percentage = 
DIVIDE(
    SUM('YourTable'[NumeratorColumn]),
    SUM('YourTable'[DenominatorColumn])
)

 

If the problem still exist, kindly provide sample data and your expected result to get the exact solution.

 

Hope this helps!!

If this solved your problem, please accept it as a solution and a kudos!!

 

Best Regards,
Shahariar Hafiz

Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1739335835334.png

 

percentage measure: = 
DIVIDE( SUM(data[actual]), SUM(data[plan]) )

 

 


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.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors