Skip to main content

Notifications

Power Apps - Microsoft Dataverse
Unanswered

Total from Second Table

(1) ShareShare
ReportReport
Posted on by 15
Below is my scenario:

Table A is the master table, Table B is transaction table so there is a one to many relationship.
 
For each Item in Table A multiple activities can be created in Table B - this is working

There is a column in Table B called Amount...i want to get total of all items in this column and display in Total Income Column in Table B 
Tried to do this using Power Automate which works but its giving a warning of number of times the flow is getting triggered. Currently the flow is getting triggered on when an item is modified. How can i get it to trigger only when the Amount column in Table B changes?
 
Or Any better way to do this?
  • Suggested answer
    Sebastian030 Profile Picture
    Sebastian030 86 on at
    Total from Second Table
    As the user @ankit_singhal suggested, a roll up column is your easiest way to achieve this.

    Roll ups are asynchronus and calculated on a sheduled basis / as soon as a row is saved.

    You can find more Informations here:

    Create and define calculation or rollup columns in Microsoft Dataverse - Training | Microsoft Learn

    Define rollup columns with Power Apps - Power Apps | Microsoft Learn
  • Suggested answer
    FLMike Profile Picture
    FLMike 30,829 on at
    Total from Second Table
    Hi,
     
    The answer is you have to add a Trigger Condition.
     
    In the Trigger Condition you would specify which Column or Columns you want it to trigger for. Then it will not trigger for any other columns.
     
     
    Please review that.
  • Suggested answer
    ankit_singhal Profile Picture
    ankit_singhal 375 on at
    Total from Second Table
    you can use Roll up field as well. Also, in power automate you can set filter it will trigger on amount change only. you can set the condition in trigger body 
  • Suggested answer
    Inogic Profile Picture
    Inogic 899 on at
    Total from Second Table
    Hi,
     
    If you want your flow to get triggered only when there is any change in Account field then you have to give one condition in the Power automate flow.

    In the “Select Columns” just add the logical name of the field on which you want to trigger the flow. Then it will only trigger on change of that particular field.

    In the below example – I have a flow which will triggered on change of the “name” field in the Account entity. It will only get triggered when the name field changes.

     
    Thanks!
    Inogic Professional Services: Power Platform/Dynamics 365 CRM
    An expert technical extension for your techno-functional business needs
    Drop an email at crm@inogic.com
    Service: https://www.inogic.com/services/
    Tips and Tricks: https://www.inogic.com/blog/
  • Shashank Bhide Profile Picture
    Shashank Bhide 932 on at
    Total from Second Table
    Flow might be running under a human user context, create an application user and run the power automate under that and see if you still getting the error.

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,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard

Featured topics