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 / Aggregate rollup field...
Power Apps
Unanswered

Aggregate rollup field over related table field of related table

(0) ShareShare
ReportReport
Posted on by

How can I aggregate a rollup field over a related table field of a related table?

Instead of a many-to-many relation, I chose to use a "Junction" table in between my Order table and Machine table. The Junction table has a lookup to each of the other two tables. The Machine table contains a Price column of type currency. How can I aggregate my rollup column named Total Price (also of type currency) over the Price column in the Machine table?

 

When editing the rollup field and aggregating the Junction table, it seems I can only acces the lookup field to the Machine table, but I can't go further to acces the columns of the Machine table. Dot notation doesn't work.

JurSap82_0-1690645728002.png

 

 

JurSap82_2-1690645160410.png

 


 

I have the same question (0)
  • Verified answer
    steeevid Profile Picture
    323 Super User 2024 Season 1 on at

    roll up field will be retired soon it's a complete garbage i wouldnt suggest using it, just use power automate with fetchXML or expanded quary, write a SQL to achieve your logic and translate it into fetchXML, and then use it in power automate.

    below is an example:

     

    Stevieed_0-1690650292501.png

     

    Stevieed_1-1690650309677.png

     

    in my example, purchase invoice table is a child table of the project table.

     

    no matter how many layer of the 2 tables have, all you need to do is to find the filter condition that is able to retrive the related records you want. For example in your case, you might want to use a get row by ID to lookup the related junction table, get the lookup ID to the other table, and then fetchXML with condition lookup value = lookup GUID of the junction table

    Or if you familar with expanded quary, you can write that in single action

     

  • JurSap82 Profile Picture
    on at

    Thank you @Stevieed.
    I was able to make it work with a fetchXML query.  

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