cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

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
Highlighted
Super User III
Super User III

Re: Sum of a Column from a Data Table

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.

Highlighted
Super User III
Super User III

Re: Sum of a Column from a Data Table

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.

Highlighted
Memorable Member
Memorable Member

Re: Sum of a Column from a Data Table

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




Highlighted
Helper II
Helper II

Re: Sum of a Column from a Data Table

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. 

 

Highlighted
Super User III
Super User III

Re: Sum of a Column from a Data Table

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
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,416)