cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LaingBennett
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.

 

LaingBennett_0-1602841380536.png

 

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? 

5 REPLIES 5
WarrenBelz
Super User III
Super User III

Hi @LaingBennett ,

Try

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.

timl
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.

VijayTailor
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')

VijayTailor_0-1602843206340.png

Thanks,
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?

timl_0-1602845488330.png

 

Helpful resources

Announcements
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)