cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
John88
Frequent Visitor

Sum form entries for logic?

Hi there - I have a form where the user has to rate 10 questions 1-3. I would like to set up a flow that calculates the total sum of all answers (out of 30) for each response and then sends an email if the total is equal to/higher than a certain number.

 

Any help would be appreciated - thanks very much!

1 ACCEPTED SOLUTION

Accepted Solutions
ScottShearer
Super User
Super User

@John88 

This is harder that it probably should be and there are likely a numbr of solutions.  One solution is as follows:

  1. Create an array variable
  2. Add the response to each rating question to the array.  The response must be converted to an integer so that they can be added.
  3. Loop through the array and increment a variable by the value of each item in the array.

You can then use a condition and decide if an email should be sent.

AddForm1.jpgAddForm2.jpgAddForm3.jpg

 

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

Scott

View solution in original post

2 REPLIES 2
ScottShearer
Super User
Super User

@John88 

This is harder that it probably should be and there are likely a numbr of solutions.  One solution is as follows:

  1. Create an array variable
  2. Add the response to each rating question to the array.  The response must be converted to an integer so that they can be added.
  3. Loop through the array and increment a variable by the value of each item in the array.

You can then use a condition and decide if an email should be sent.

AddForm1.jpgAddForm2.jpgAddForm3.jpg

 

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

Scott

Thanks so much for your help Scott - is it possible to create form entries which are integers without the need for conversion? The ratings system is only my initial idea, and I'm more than willing to change the format of the form to accommodate an more streamlined flow. Thanks again, John

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
Users online (2,367)