web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to convert Forms L...
Power Automate
Answered

How to convert Forms Likert Scale into value and compute average?

(0) ShareShare
ReportReport
Posted on by 7

I am using a 6 point Likert Scale in Forms ("Oustanding", "Beyond Expectation", "Meets Expectation", "Below Expectation", "Issue", "Unknown"). I have 9 items, which are assessed along these lines.

 

How can I transform the data in Flow efficiently into values from 5 ("Oustanding") to 1 ("Issue") and compute the average of these values (with "Unknown" being ignored in the computation of the mean)?

 

Thanks!

Categories:
I have the same question (0)
  • v-zhos-msft Profile Picture
    on at

    Hi @dsFra ,

    I am afraid that there is no way to achieve your needs in Microsoft Flow currently.

    According to your discription, first, we need get the 6 point, then transform the points into values.

    However, in MS flow, we can only get the response details but not the form details.

    Here is a similar idea you can vote with:

    https://powerusers.microsoft.com/t5/Flow-Ideas/Microsoft-Form-Return-form-details/idi-p/71336?advanced=false&collapse_discussion=true&filter=location&location=idea-board:FlowIdeas&q=get%20the%20forms%20details&search_type=thread

     

    Best Regards,

    Community Support Team _ Zhongys

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • dsFra Profile Picture
    7 on at

    Thanks for your reply. But is there really no way?

     

    I would just need to create some hard coded variable transformation: if the answer equals "Oustanding" then assign value "5", if "Beyond Expecation" assign "4" etc. In the end I need to compute an average and that's it.

     

    I was trying to do this with an expression in the logic of "if(equals(...,"Outstanding),5,if(equals(...,"Beyond Expectation"),4, ... etc ... )). It didn't give me the right result, unfortunately, but maybe I had just a simple flaw in there.

  • Verified answer
    AlanPs1 Profile Picture
    2,471 on at

    Hi @dsFra 

    This is possible but not straight forward.

    I see where you are going with "if(equals(...,"Outstanding),5,if(equals(...,"Beyond Expectation"),4, ... etc ... ))" and what I propose below, may be able to further enhanced but here is a working example that has been tested and does provide the results you are looking for in a float so 1.5 is possible when averaging off the final compute.

     

    Here is the form:Capture-316.png

     

    Here is the FlowCapture-315.png

     

    Here are the actions and expressions:Capture-317.png

    Capture-319.png

     

    if(equals(variables('Q1'), 'Oustanding'),int('5'),if(equals(variables('Q1'), 'Beyond Expectation'),int('4'),if(equals(variables('Q1'), 'Meets Expectation'),int('3'),if(equals(variables('Q1'), 'Below Expectation'),int('2'),if(equals(variables('Q1'), 'Issue'),int('1'),if(equals(variables('Q1'), 'Unknown'),int('0'),''))))))

    Capture-320.png

    if(equals(variables('Q2'), 'Oustanding'),int('5'),if(equals(variables('Q2'), 'Beyond Expectation'),int('4'),if(equals(variables('Q2'), 'Meets Expectation'),int('3'),if(equals(variables('Q2'), 'Below Expectation'),int('2'),if(equals(variables('Q2'), 'Issue'),int('1'),if(equals(variables('Q2'), 'Unknown'),int('0'),''))))))

    Capture-321.png

    if(equals(variables('Q3'), 'Oustanding'),int('5'),if(equals(variables('Q3'), 'Beyond Expectation'),int('4'),if(equals(variables('Q3'), 'Meets Expectation'),int('3'),if(equals(variables('Q3'), 'Below Expectation'),int('2'),if(equals(variables('Q3'), 'Issue'),int('1'),if(equals(variables('Q3'), 'Unknown'),int('0'),''))))))

    Capture-322.png

    div(add(add(variables('A1'), variables('A2')), variables('A3')), variables('Divider'))

    If implemented as above for 3 questions it works. You would need to scale out to suit you.

     

    If you have found my post helpful, please mark thumbs up.

    If this post has solved your problem, please click "Accept as Solution".

    Any other questions, just ask.

    Thanks, Alan

  • dsFra Profile Picture
    7 on at

    Works perfectly. Thanks a lot!

  • AlanPs1 Profile Picture
    2,471 on at
    You’re most welcome.
    Happy Flowing.
    Thanks, Alan
  • Ranners66 Profile Picture
    3 on at

    Thanks Alan this really helped me.

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard