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 Automate / Adding multiple variables
Power Automate
Unanswered

Adding multiple variables

(0) ShareShare
ReportReport
Posted on by 27

I'm trying to nest the add expression in order to add three variables using the below formula: add(variables('Answer1'), add(variables('Answer2'), add(variables('Answer3'))))

 

I'm getting the following error message: Unable to process template language expressions in action 'Compose' 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).

 

Appreciate any help here!

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @tcm213 ,

     

    Please try this

    add(add(variables('Answer1'),variables('Answer2')),variables('Answer3'))
     
    Best Regards,
    Wearsky
  • tcm213 Profile Picture
    27 on at

    @v-xiaochen-msft Hi Wearsky! I tried to expand it to add 28 variables, and it isn't working. Any clue where I'm going wrong?

     

    add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(variables( 'Answer1' ),variables( 'Answer2' )),variables( 'Answer3' ),variables( 'Answer4' ),variables( 'Answer5' ),variables( 'Answer6' ),variables( 'Answer7' ),variables( 'Answer8' ),variables( 'Answer9' ),variables( 'Answer10' ),variables( 'Answer11' ),variables( 'Answer12' ),variables( 'Answer13' ),variables( 'Answer14' ),variables( 'Answer15' ),variables( 'Answer16' ),variables( 'Answer17' ),variables( 'Answer18' ),variables( 'Answer19' ),variables( 'Answer20' ),variables( 'Answer21' ),variables( 'Answer22' ),variables( 'Answer23' ),variables( 'Answer24' ),variables( 'Answer25' ),variables( 'Answer26' ),variables( 'Answer27' ),variables( 'Answer28' )))))))))))))))))))))))))))

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard