cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dyee4613
Level 8

SumIF in PowerApps (Filtering Issue)

Hi.  This is a basic problem but I'm having trouble with it.  I want to create a sumif but my knowledge of the filter function isn't that great so I keep running into some dumb error.  Here is the formula as I understand it.

 

Sum(Filter(Data1,Multipack = "Yes").Units)

 

The error is "expected a text value".   This doesn't make sense to me as multipack is a text field and "Yes" is a text value.  I've run into issues like this in the past so an explanation of the error and what it means would be really helpful for me to avoid it in the future.  Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: SumIF in PowerApps (Filtering Issue)

Hi @dyee4613 ,

Please try this formula:

Sum(Filter(Data1,Multipack = "Yes"),Units)

The right synax of sum is:

sum(table,formula)

Here's a doc for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-aggregates

 

Best regards,

Community Support Team _ Phoebe Liu

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 REPLIES 3
Ollek
Level: Powered On

Re: SumIF in PowerApps (Filtering Issue)

Hi @dyee4613  

is the Multipack a choice field i SharePoint list?  Then your have to change your like this Sum(Filter(Data1,Multipack.Value="Yes"),Units)

 

I hope this will work for you.

Kind Regards 

Olle 

 

Community Support Team
Community Support Team

Re: SumIF in PowerApps (Filtering Issue)

Hi @dyee4613 ,

Please try this formula:

Sum(Filter(Data1,Multipack = "Yes"),Units)

The right synax of sum is:

sum(table,formula)

Here's a doc for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-aggregates

 

Best regards,

Community Support Team _ Phoebe Liu

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
dyee4613
Level 8

Re: SumIF in PowerApps (Filtering Issue)

Your solution worked!  I guess a comma was what I needed.  I could have swore I tried that but I guess not, thank you!  It was with an excel sheet, not a sharepoint list.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 86 members 3,993 guests
Please welcome our newest community members: