Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Sumif

(0) ShareShare
ReportReport
Posted on by 4

Hi All,

 

I have a table "fruit"

 

fruit          quantitiy

apple        1

apple        1

orange      3

orange      2

 

how could I get the total number of apples 2 and total number of orange "5"?

  • Re: Sumif

    You can use the GroupBy function, which will create a new table grouped by the column you need, and then use the AddColumns function and the Sum function to calculate the aggregate value. For example, this expression:

    AddColumns(
     GroupBy(fruit, "fruit", "by_fruit"),
     "total_quantity",
     Sum(by_fruit, quantity))

    Returns a table with a column "fruit" and a column "total_quantity" which has the information you need.

  • hpkeong Profile Picture
    hpkeong 2,944 on at
    Re: Sumif

    Hi

     

    I attach sample screenshot.

     

    You can either using fixed formula or using dropdown and many other method.

     

    Hope this helps.

     

    Any method is up to youAny method is up to you

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,691

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 65,019

Leaderboard