cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
arvidb
Level: Power Up

add() expression only allowing 2 parameters

So, I am using Flow to load a Microsoft Forms response to a JSON file in Azure Blob Storage. All is working well. However, my form consists of tickbox questions that translate to numeric values that I want to add up.

 

The add() expression only allows for 2 paramaters while I have up to 8 paramaters (question scores) I would like to add up at once. The only solution I have found so far is to keep nesting add() expressions to allow for more than 2 parameters to be added at once.

 

Is there another workaround for this? If not, why is there no sum() expression in addition to add() that allows for more than 2 paramaters to be added?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: add() expression only allowing 2 parameters

HI @arvidb 

 

The add() expression just allows two inputs as you have marked. Instead of nesting many add() functions, i would suggest you to use arrays and increment array variable. Please have a look at the screenshot below: 

addloop.png

Hope This Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

2 REPLIES 2
Super User
Super User

Re: add() expression only allowing 2 parameters

HI @arvidb 

 

The add() expression just allows two inputs as you have marked. Instead of nesting many add() functions, i would suggest you to use arrays and increment array variable. Please have a look at the screenshot below: 

addloop.png

Hope This Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

arvidb
Level: Power Up

Re: add() expression only allowing 2 parameters

@yashag2255 

 

Thanks for your response. This wasn't the exact solution I needed but it pointed me in the right direction so I accepted your answer as a solution.

 

My solution is as follows:

 

I initialize a variable set to 0, use an apply to each with an increment variable task for each separate form question with a corresponding value I want to add using int(<form-question-reference>).

 

The initialized variable now contains the sum off all increment variables added up.

 

Annotation 2019-06-03 155542.png

 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 218 members 2,648 guests
Please welcome our newest community members: