Skip to main content
Community site session details

Community site session details

Session Id : IE8NFyc3yiLAT0v1ICaJZN
Power Automate - Building Flows
Answered

Adding multiple variables in Power Automate

Like (0) ShareShare
ReportReport
Posted on 20 Oct 2022 08:22:48 by

Good day

 

I have a flow that has to add multiple variables under the "SumAll" Compose item:  

janineb_0-1666252618616.png

My formula looks like this:

add(variables('var2MulBusinessCase'), add(variables('var3MulKeyRisks'), add(variables('var4MulFitness'), add(variables('var5MulLegal'), add(variables('var5MulCreditRisk'), add(variables('var5MulESG'), add(variables('var5MulCompliance'), add(variables('var5MulCSG'), add(variables('var6MulTeamPerform'), add(variables('var7MulTurnaround'), add(variables('varmul1QltyRep'))))))))))))

 

This is the error I'm getting:

"Unable to process template language expressions in action 'SumAll' inputs at line '0' and column '0': 'The template language function 'add' expects two numeric parameters: the first summand as the first parameter and the second summand as the second parameter. The function was invoked with '1' parameter(s)."

 

Your kind assistance would be appreciated.

 
 
  • Brendan_Val Profile Picture
    15 on 20 Nov 2023 at 07:00:53
    Re: Adding multiple variables in Power Automate

    Hi,

     

    that didn't work for me so I had to add 2 sums in a separate compose then add the missing one to the ones i already added. I only had to add 3 sums together.

  • Verified answer
    shoog Profile Picture
    2,164 on 20 Oct 2022 at 09:19:25
    Re: Adding multiple variables in Power Automate

    The very last add function only has 1 parameter, removing that should work:

    add(variables('var2MulBusinessCase'), add(variables('var3MulKeyRisks'), add(variables('var4MulFitness'), add(variables('var5MulLegal'), add(variables('var5MulCreditRisk'), add(variables('var5MulESG'), add(variables('var5MulCompliance'), add(variables('var5MulCSG'), add(variables('var6MulTeamPerform'), add(variables('var7MulTurnaround', variables('varmul1QltyRep'))))))))))))

     

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading started