web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / SumIF in PowerApps (Fi...
Power Apps
Unanswered

SumIF in PowerApps (Filtering Issue)

(0) ShareShare
ReportReport
Posted on by 301

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.

Categories:
I have the same question (0)
  • Ollek Profile Picture
    77 on at

    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 

     

  • Verified answer
    v-yutliu-msft Profile Picture
    on at

    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

     

  • dyee4613 Profile Picture
    301 on at

    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.

  • Iamjibza Profile Picture
    3 on at

    many thank 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard