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 Platform Community / Forums / Power Automate / Adding multiple variab...
Power Automate
Answered

Adding multiple variables in Power Automate

(0) ShareShare
ReportReport
Posted on 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.

 
 
Categories:
I have the same question (0)
  • Verified answer
    shoog Profile Picture
    2,164 on at

    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'))))))))))))

     

  • Brendan_Val Profile Picture
    15 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 862

#2
Valantis Profile Picture

Valantis 738

#3
Haque Profile Picture

Haque 553

Last 30 days Overall leaderboard