cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Quiz Questions/ Creating Quiz- Don't seem to be working

Hi,

Hoping someone might be able to advise on this. This is the second post I ave made, for some reason the original is missing. 

 

So I am currently creating a quiz in PowerApps. It looks like only three of the questions are working, and the final two are not. If it helps I was using the Shane Young YouTube video. 

 

So the three questions that are working are these below:

If(Q1.Selected.Value = "3",Set(Score, 1),Set (Score,0));

And(Q2.Selected.Value = "950mm",Set(Score,Score+1));

And(Q3.Selected.Value = "225mm",Set(Score,Score+1));

 

Then when I move onto the next page/screen, thats when it seems to stop, and the score no longer adds up:

And(Q2_1.Selected.Value = "Crane banked off site",Set(Score,Score+1));

And(Q1_1.Selected.Value = "19-24 mph 8.5-10.5 m/s",Set(Score,Score+1));

 

Is it because I have to many 'And' statements or is it because I am working across two pages/screens. I cannot seem to  think of any other issues, as the code has been copied from the first three questions, but changed slightly depending on the answers - What the code is supposed to do, is add up the score and then display a total at the end on the lower right of the screen. As mentioned it works perfectly on the first three questions and then doesn't on the final two. 

I have added two screenshot to explain the issue better.

 

Hope someone can make sense of it. Thanks in advance. 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yuxima-msft
Community Support
Community Support

Hi @Anonymous 

 

Duplicated post?

Could you please reference the reply of it firstly?

https://powerusers.microsoft.com/t5/Creating-Apps/Quiz-Questions-Not-working-issues-with-formula-code-Seeking/m-p/307816

 

More information:

function-if

 

Best Regards.

Yumia

View solution in original post

1 REPLY 1
v-yuxima-msft
Community Support
Community Support

Hi @Anonymous 

 

Duplicated post?

Could you please reference the reply of it firstly?

https://powerusers.microsoft.com/t5/Creating-Apps/Quiz-Questions-Not-working-issues-with-formula-code-Seeking/m-p/307816

 

More information:

function-if

 

Best Regards.

Yumia

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.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

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.

Top Solution Authors
Users online (3,081)