cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
romy
Level: Powered On

Sum of DataField in BrowseGallery

Hi:@All

What formula do I need to make the sum of a Gallery?

Sum(Filter(Gallery,Production >0)Production)

Use this formula, but I do not have any results

1 ACCEPTED SOLUTION

Accepted Solutions
PowerApps Staff AKotb
PowerApps Staff

Re: Sum of DataField in BrowseGallery

the first parameter of the sum function should be the datasource the gallery is using

and you can use the Value function to convert strings to numbers

 

Sum(
  Filter(
    MyDataSource,
    Value(Production) > 0
  ),
  Value(Production)
)

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Re: Sum of DataField in BrowseGallery

Hi @romy

 

It is missing a comma ,

 

Sum(
  Filter(
    Gallery,
    Production >0
  ),
  Production
)

Also for this to work Production column needs to have numbers in it.

romy
Level: Powered On

Re: Sum of DataField in BrowseGallery

It does not work

PowerApps Staff AKotb
PowerApps Staff

Re: Sum of DataField in BrowseGallery

the first parameter of the sum function should be the datasource the gallery is using

and you can use the Value function to convert strings to numbers

 

Sum(
  Filter(
    MyDataSource,
    Value(Production) > 0
  ),
  Value(Production)
)

 

View solution in original post

Highlighted
romy
Level: Powered On

Re: Sum of DataField in BrowseGallery

Thank so much

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 240 members 6,316 guests
Please welcome our newest community members: