Skip to main content

Notifications

Community site session details

Community site session details

Session Id : +bKfG7FMguFWyMHsMT1/HF
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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

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

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

#2
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

#3
CU07050602-0 Profile Picture

CU07050602-0 4

Overall leaderboard

Featured topics

Loading started