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 Integer Variables
Power Automate
Answered

Adding Integer Variables

(0) ShareShare
ReportReport
Posted on by 69

I swear this is probably the most simple thing ever but I have been trying to find the answer but dont seem to be able to get a solution. I have a questionnaire and each question I have created a score integer variable for the result. I am then wanting to sum the variables to give me the total score. I have the following flow:

 

Simmo86_1-1606415942496.png

 

But I get the following error........

 

Simmo86_0-1606415886898.png

 

I am sure it is something simple but any help would be much appreciated! 

 

Many thanks in advance.

 

Alex

 

Categories:
  • Verified answer
    abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Simmo86 

     

    You can't use the add() under the compose. You need to use this as an expression. Also add() expression allows to add two numbers at a time. Please see below.

     

    image.png

     

    so in your case looks you need to convert the mapping dynamic variable to integer as well.

     

    add(int('yourdynamicvariable1'),int('yourdyamicvariabel2'))

     

    Thanks

  • Simmo86 Profile Picture
    69 on at

    Thank you so much, makes perfect sense and works now!

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 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard