cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
donalmc
Advocate III
Advocate III

Expression to add more than two variables

Hi,

I must be missing something obvious, I have a list of variables: 5 integers and 1 float*.

How do I add them together to create a new variable?

It seems the add function for expressions only allows me to add 2 numbers at a time.

 

Thanks.

Donal

 

*because it seems I can't mul a variable by a decimal?

3 REPLIES 3
alrez
Community Support
Community Support

Hi,

 

Due to the step based process that Flow works in it might not be possible to add all of these together at the same time. It should be fairly easy to just write all of your variables to their own variables in the flow and increment each one into a totals variable. I'm not certain how flow handles combining Integers and Floats but it seems like it most cases it should be able to handle it.

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ScottShearer
Super User
Super User

@donalmc 

Here is an example of the technique suggested by @alrez 

ScreenCaps1.pngScreenCaps2.png

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
donalmc
Advocate III
Advocate III

Thanks guys - looks like incrementing the sum is my only option.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,785)