Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Og5dEdGST8cC/hWjkRwZ5K
Power Apps - Microsoft Dataverse
Unanswered

Power fx "rollup" or "sum if" function

Like (1) ShareShare
ReportReport
Posted on 8 Apr 2023 17:29:36 by 35

Hi, I am looking to get a feature working as below:

 

Table "Purchase Invoice" has a many to one relationship with table "subcontract"

 

I want to know how much total invoice amount belongs to a particular subcontractor, which is basically by conditional rollup all purchase invoices that belong to this "subcontract".

 

The roll up column seems to behave very odd, firstly it takes ages to update to a new value if you add a new record, 2, the calculation is even wrong and I can't even tell what's going on.

 

Can this be done by power fx formula? Because rollup feature is just so old it just keeps doing funny things.

 

This powerfx formula would be similar to what I have done in Excel using:

 

 

=SUMIF(PURCHASE_INVOICE[SUBCONTRACT],[@SUBCONTRACT],PURCHASE_INVOICE[INVOICE_AMOUNT])

 

 

Come on even excel is more powerful and handy than DATAVERSE!!

 

Categories:
  • EricRegnier Profile Picture
    8,714 Most Valuable Professional on 08 Apr 2023 at 21:54:11
    Re: Power fx "rollup" or "sum if" function

    Hi @bugescape,

     

    Rollup fields/columns update every 12h which it's why "it's slow". This is by-design for performance reasons. For Power FX, are you using Formula columns or you're trying Power FX within a canvas app? Unfortunately SUMIF is not yet supported in Formula PowerFX Dataverse columns. 

     

    Feel free to submit the idea though (and I'll vote!) at: https://ideas.powerapps.com/d365community/forum/f1458c72-ae29-ed11-9db2-000d3a8c451e

    The alternative I would suggest is to calculate the sum in Power Automate. That will work nicely and relatively simple.

    Hope this helps!

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 19

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 17 Super User 2025 Season 1

Overall leaderboard

Featured topics

Loading started