Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

Sum of a Column from a Data Table

Hi there,


There is a lot of post about this but a can't seem to make this work. 


Here is my data table.




I want to have a test book that displays the total of the Fee Amount colour. I have tried sum(Sales_Pipeline, "Fee Amount") but nothing is returned. 


What am I doing wrong? 

Super User III
Super User III

Hi @LaingBennett ,


Sum(YourGalleryName.AllItems,'Fee Amount')


Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Super User III
Super User III

Hi @LaingBennett 

Assuming that fee amount is the name of your column (which contains a space), you should try using single quotes instead of double quotes.

Sum(Sales_Pipeline, 'Fee Amount')

If the value that this returns isn't correct, it will most likely be related to delegation issues if you're using a SharePoint list as your data source.

Resident Rockstar
Resident Rockstar

Hi @LaingBennett ,

For the Data table, you can use the Same code for Sum All records.

"Total Sum "&Sum(GroupByTest,'LINE No')


Vijay Tailor

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

I have tried this and can't get it to show any data. 


I have just moved the data into a Google Sheet and can't get a value to return either. 


Hi @LaingBennett 

This should work, so I'm not quite sure why it's not showing any data for you.

To confirm whether or not this is a delegation issue, how many rows do you have in your spreadsheet?I notice in your original screenshot, there is a red error icon against your label. Can you tell us the error message that appears against this label?



Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,190)