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

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:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,865 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

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