web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Getting a total value

(0) ShareShare
ReportReport
Posted on by 25

Hi, 

 

I have the following flow where i would like to get the total of a particular field(Gremiumamt value) within an entity. The body of the apply to each 3 step is just the value of list contact. The body of the apply to each step 8 is the value of the list committee members step.  I wrote the length part at the end of the flow as follows:  length(variables('committee office'))

 

 01.JPG

 

The result is like this (I'm expecting a result of 0 which I'd like to use later in the flow: 

 

02.JPG

 

Can anyone point me in the right direction?

 

Thank you

Categories:
  • Krishna92 Profile Picture
    Microsoft Employee on at

    @byrdwatcher1977 

     

    Could you please try removing the <br> tag from the append action I think that is making the difference in the length action.

     

    If this information helps you please give it a thumbs up and mark the solution as resolved.

  • JohnnyL345 Profile Picture
    25 on at

    @Krishna92 , thanks. I think I managed to resolve it by initialising an array variable, appending to the array variable and then composing the result. I'm wondering how I can use the result, the one I've composed (total committee office and gremium further

    in my flow though. Can you advise me here please?

     

     03.JPG

  • Krishna92 Profile Picture
    Microsoft Employee on at

    @byrdwatcher1977 

     

    If that is a Compose action, then you will be able to see it in the next step in dynamic content as output.

    Or you can also fetch content from it using below query, please put this query in expression tab

     

    outputs('Total_committee_office_and_gremium')
  • JohnnyL345 Profile Picture
    25 on at

    @Krishna92 , I don't have any problems with my string variables and accessing them outside my apply to each to step. But I don't seem to be able to see this array one even after doing what you suggested. 

     

    08.JPG

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard