cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BazMan
Regular Visitor

Counting responses of a certain type in Microsoft Forms

Hi All, 

 

I have a form where the answers are mainly Yes or No. I have a simple flow that sends a message on teams whenever a forms response is submitted.  Is there a way to count how many answers were 'No' and include that number in the Teams message?

 

Thanks in advance

Barry

 

2 REPLIES 2
amitprajapati
Frequent Visitor

Hi @BazMan You can use the parallel branching in Power Automate. Below is my suggested way:

1. Create a Flow on trigger of Submit Response of MS Flow and get the response:

amitprajapati_0-1621668881549.png

2. Initialize the Array variable of type Array:

amitprajapati_1-1621668902772.png

 

3. Add parallel branch to check if question has no response if question has no response then add string "yes" to array:

amitprajapati_2-1621668986379.png

Step 4: compose a variable to store the length of array and length of array will be number of no you have received in form

length(variables('Is No present'))
amitprajapati_4-1621669361734.png

 

I have summited the below response from MS Form:

amitprajapati_5-1621669450571.png

 

Output:

amitprajapati_6-1621669471587.png

Hope this help, do verify the answer.

 


 

 

 

OzNick
New Member

Hi,
I have a form with many multiple choice questions, (Peg 1 - Peg 50), each with Radio buttons Armoury and Home Storage.

Do I create a condition branch for each Question or add each question to the branches? 

OzNick_1-1644804121411.png


In my Initialize Variable I have "is Armoury present", but I'm not sure about the next step.

 

OzNick_0-1644804046229.png

 

Thanks for your help.

Helpful resources

Announcements
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 tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,905)