cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
YoYo1982
Helper I
Helper I

Data classification in Powerapps or Powerautomate

Hi all,

 

I have build a Powerapp where the user can answer some question. Data type is choices/bool.

The goal is to classify those data with a result (low, medium, high). E.g. if 5 out of 10 questions are answered with yes it is classifyed as high.
I know how to do this in Powerautomate but is this also possible in Powerapps? Advantage would be, that the user would see direct the impact of his choosen answers.

Is this possible and useful and if so, how could that implemented or should I stick to Powerautomate?

 

Any thoughts are welcome!

1 ACCEPTED SOLUTION

Accepted Solutions
YoYo1982
Helper I
Helper I

@mahoneypat 

Haven´t done anything with Power Bi so far and guessing it´s to much effort learn it right now but thanks anyway!

 

@v-albai-msft 
Thanks a lot for your detailed answer. I appreciate it!!
I´ve acutally figured another solution out of my own.
I used the oncheck/uncheck property within the answers bools to count a variable and then show or hide lables if they are in a particular range.
But I will check your solution to see if MS Form fits better to my other requirements.


View solution in original post

4 REPLIES 4
mahoneypat
Solution Sage
Solution Sage

Have you considered Forms and Power BI instead?  Might be a better fit for this use case.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about the Power Platform, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


v-albai-msft
Community Support
Community Support

Hi @YoYo1982 ,

Do you want to create a questionnaire inside PowerApps like using MS Form?

If yes, you can do it.

I did a simple test on my side for your reference. Assume that:

1. The entered answers will be saved into a SP list by clicking a submit button.

2. User can see his result after submit his answers

So I create an app with 10 dropdown controls(With Yes/No choice).

v-albai-msft_0-1617088496039.png

 

Then add a button, rename it to “Submit”. Set its OnSelect to formula like below(save these 10 answers into a one-column collection):

Patch(listname,Defaults(listname),{Question1:Dropdown1.Selected.Value,.....});

ClearCollect(Result1,{Value:Dropdown1.Selected.Value},{Value:Dropdown1_1.Selected.Value},{Value:Dropdown1_2.Selected.Value},{Value:Dropdown1_3.Selected.Value},
{Value:Dropdown1_4.Selected.Value},{Value:Dropdown1_5.Selected.Value},{Value:Dropdown1_6.Selected.Value},{Value:Dropdown1_7.Selected.Value},
{Value:Dropdown1_8.Selected.Value},{Value:Dropdown1_9.Selected.Value});

Set(varY,CountRows(Filter(Result1,Value="Yes")));

For displaying the result, I add a label under the button and set its to below. So, If answers with yes equals/more than 5, it will display as “High”:

If(varY>=5,"High",varY<5&&varY>=1,"medium",varY=0,"low")

v-albai-msft_1-1617088496044.png

 

Besides, you can also add below formula into the button, so after you submit your answers, you will receive a prompt message:

Notify("Your answers has a result with:   "& If(varY>=5,"High",varY<5&&varY>=1,"medium",varY=0,"low"));

v-albai-msft_2-1617088496048.png

For more about Notify function, you can refer to this article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-showerror

Best regards,

Allen

YoYo1982
Helper I
Helper I

@mahoneypat 

Haven´t done anything with Power Bi so far and guessing it´s to much effort learn it right now but thanks anyway!

 

@v-albai-msft 
Thanks a lot for your detailed answer. I appreciate it!!
I´ve acutally figured another solution out of my own.
I used the oncheck/uncheck property within the answers bools to count a variable and then show or hide lables if they are in a particular range.
But I will check your solution to see if MS Form fits better to my other requirements.


Hi @YoYo1982 ,

Yes, this can be achieved by many solutions.

Glad that you have found a solution. You can mark your reply as an solution, this will benefit other community members who stuck with the same question.

Best regards,

Allen

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,869)