Help - Can you calculate how many points in total someone has given on all questions in a form?

%3CLINGO-SUB%20id%3D%22lingo-sub-2882565%22%20slang%3D%22en-US%22%3EHelp%20-%20Can%20you%20calculate%20how%20many%20points%20in%20total%20someone%20has%20given%20on%20all%20questions%20in%20a%20form%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2882565%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20to%20make%20an%20assessment%2Fquiz%2Fform%2Fsurway...%3CBR%20%2F%3EThere%20will%20be%20multiple%20questions%3C%2FP%3E%3CP%3EOn%20each%20question%20the%20responder%20will%20choose%20a%20point%20from%200%20-%204%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAt%20the%20end%20-%20when%20all%20questions%20are%20answered%20they%20will%20get%20the%20total%20sum%20of%20points.%20And%20an%20explanation%20like%3CBR%20%2F%3E%26nbsp%3BYou%20got%2015%20points%20that%20indicates%20that%20you%20should....%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3ESince%20I'm%20not%20fluent%20in%20technical%20English%20-%20especially%20Survey%20words%20-%20I%20get%20lost%20in%20founding%20out%20which%20type%20of%20form%20question%20to%20use%20and%20even%20more%20if%20they%20can%20be%20calculated.%3CBR%20%2F%3E%3CBR%20%2F%3ESo%20please%20help%20anyone%3F%3CBR%20%2F%3ESimply%20links%20to%20videos%2C%20articles%20where%20it%20is%20described%20will%20be%20wonderful!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2882565%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EForms%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Forms%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EQuiz%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESurvey%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

Hi

 

I'm trying to make an assessment/quiz/form/surway...
There will be multiple questions

On each question the responder will choose a point from 0 - 4

 

At the end - when all questions are answered they will get the total sum of points. And an explanation like
 You got 15 points that indicates that you should....




Since I'm not fluent in technical English - especially Survey words - I get lost in founding out which type of form question to use and even more if they can be calculated.

So please help anyone?
Simply links to videos, articles where it is described will be wonderful!

 

1 Reply

@AnnA_Webbinstitutet one way that you can achieve this is shown below, but you can't do it with Forms on its own, you need a Sharepoint list and a flow in Power Automate.

 

First we have the form. Each question is a text question but you set a restriction that it must be a number:

 

0-Form.png

 

Next, create the SharePoint list. The responder's email will go into the Title column (it's just something I always do). Then we have 1 number column for each of the questions in the form:

 

1-SP-NumberColumns.png

 

We also need a column for the total, so create a calcuated column and in the formula set it to add up all the number columns you've just created:

 

2-SP-CalcColumn.png

Next, in Power Automate do not use a template to create your flow but add a new cloud instant flow:

3a-Flow.png

 

For your trigger you should select the Forms "when a new response is submitted" and select your form from the dropdown. Then the first action with a Forms trigger is always "get response details": again you select the form and when you click in the Response ID field the dynamic content box will appear and you select Response Id (it's the only thing you can select).

 

3-Flow.png

Next, add a Compose action for each of the questions in the form:

 

4-Flow.png

 Next, we want to add the answers to the item in the SharePoint list. So add a SharePoint "create item" action, click in each field and select the appropriate item from the dynamic content box. You'll see that there is an "output" for each of the compose actions you created earlier.

5-Flow.png

Next, add another Compose action and click in the inputs field. Over in the dynamic content box select the Expression tab and enter 

int(outputs('Create_item')?['body/Total'])
 
- you can type int then a (bracket then select Total from the create item section of the dynamic content box and it will put the rest in for you. The reason for int is that by default a Compose total turns the output to a string and we want it as an integer.

6-Flow.png

 

Next, we add a numbe rof nested Conditions. For the first one select the output of the ComposeTotal from the dynamic content box is greater than or equal to 15 - there are 5 questions each with up to 4 points so a maximum total of 20. 

In the green if yes channel add a "send an email (v2)" action and enter the text you want and select the relevant outputs from the dynamic content box.

 

7-Flow.png

In the red if no channel add another condition with the output of the ComposeTotal is greater than or equal to 10 and then add another row with the ComposeTotal is less than 15. In the green if yes channel add another "send an email (v2)" with the text you want (you can copy actions to your clipboard to save time entering them manually).

7a-Flow.png

 

In the red if no channel add another condition with ComposeTotal is greater than or equasl to 5 and less than 9. And then add a "send an email (V2) into the green if yes channel (for a score from 5 to 9) and in the red if no channel (for any score less than 5)

 

8-Flow.png

 

As yoiu'll see there are different emails with different text depending on the score.

 

9-Flow.png

 

So when a form is submitted and the flow runs it will add the scores to the SharePoint list which will calculate the total:

10-SP-Result.png

 and the relevant email will be sent to the responder:

11-Email.png

 

As all this will probably be new to you, come back with any questions.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User