exam questions

Exam PL-100 All Questions

View all questions & answers for the PL-100 exam

Exam PL-100 topic 3 question 2 discussion

Actual exam question from Microsoft's PL-100
Question #: 2
Topic #: 3
[All PL-100 Questions]

HOTSPOT -
A company is building a Power Apps app to track key project tasks.
Users assign three tasks a risk status on a scale of 0 to 100 by using slider input controls named RiskStatus on the app. The highest risks use the risk status value of 100.

If the combined value of all the tasks is 150 or above, a header bar on the screen must display the text HIGH RISK.
You need to configure a solution to change the text on the header bar.
How should you configure the app? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: On each RiskStatus slider input
You can change the value based on input.
Box 2: Updateif(..)
Use the UpdateIf function to modify one or more values in one or more records that match one or more conditions. The condition can be any formula that results in a true or false and can reference columns of the data source by name. The function evaluates the condition for each record and modifies any record for which the result is true.
Reference:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/working-with-formulas#change-a-value-based-on-input https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-update-updateif

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
santoshpatil
Highly Voted 3 years, 11 months ago
Answer Should be "On Header Control" and If(SUM)
upvoted 87 times
RustamShai
3 years, 8 months ago
Just tested and it's correct
upvoted 2 times
...
Powerscraps
3 years, 9 months ago
Agreed, definitely
upvoted 1 times
...
emizehcnas
3 years, 10 months ago
I agree
upvoted 2 times
...
Aadhil
3 years, 10 months ago
But the option here for IF(SUM) is checking if its <150 (Less than)
upvoted 7 times
IndraB
3 years, 10 months ago
Yes but the True Value is empty. "High Risk" ist in the false condition
upvoted 14 times
...
...
...
OanaBoghici
Highly Voted 3 years, 11 months ago
I think the first answer is On header control and for the second it would be the If(SUM... formula
upvoted 18 times
...
Edriska
Most Recent 1 year, 10 months ago
Where should you apply logic to change the text? On the header control Which formula should you use? IF(SUM(RiskStatus1 value, RiskStatus2 value, RiskStatus3.value)<150, “”, “HIGH RISK”) The explanation is: You should apply the logic to change the text on the header control, because that is where the text is displayed. You can use the Text property of the header control to set the text based on a formula. You should use the IF function to check the condition of the sum of the risk status values. The SUM function can be used to add up the values of the slider input controls. If the sum is less than 150, you can display an empty string (“”) as the text. Otherwise, you can display “HIGH RISK” as the text. This way, the header control will only show “HIGH RISK” when the condition is met.
upvoted 2 times
camille68
1 year, 2 months ago
No, it should be >150!
upvoted 1 times
...
...
AlaaSah
2 years ago
On the header Control If (Sum(...)) that's the correct answer, and it's tested
upvoted 2 times
...
MuhammadSaadFahim
2 years, 3 months ago
1. On the Header Control 2. If(Sum(),"","High Risk")
upvoted 2 times
...
RazielLycas
2 years, 6 months ago
Reading more than once I guess it's on the HEADER (text property) and the IF(SUM, the condition is tricky because is sum<150, but if you pay attention to the formula the text "high risk" is on the ELSE part.. obviously a normal person will use the >= and the true part of the condition but hey, it's MS!
upvoted 3 times
...
Domenic
3 years, 3 months ago
"On Header Control" If(Sum(...))
upvoted 1 times
...
MarKar
3 years, 3 months ago
I tested with If(Sum(Slider1.Value + Slider2.Value) < 50; ""; "High RISK") on the text of a header for me it will be (1st) and (2nd)
upvoted 1 times
...
satishk4u
3 years, 5 months ago
Header Control If(Sum(RiskStatus1.Value+RiskStatus2.Value+RiskStatus3.Value)<150,"","HIGH RISK") Tested. working fine.
upvoted 5 times
Shamir06
2 years, 6 months ago
If the combined value of all the tasks is 150 or above, a header bar on the screen must display the text HIGH RISK. They are clearly telling the requirements that if it is >= 150 ...Update as High Risk .
upvoted 1 times
...
...
Dude
3 years, 5 months ago
For the second one, the following answer is definately correct, If(Sum(RiskStatus1.Value,RiskStatus2.Value,RiskStatus3.Value) < 150,"","HIGH RISK"), although there is a few ways to achieve the same outcome, i.e., Context Variables, however, this would mean setting the text property to the variable.
upvoted 2 times
...
DiegosPizza
3 years, 6 months ago
Header Control If(Sum(RiskStatus1.Value+RiskStatus2.Value+RiskStatus3.Value)<150,"","HIGH RISK")
upvoted 4 times
...
DiegosPizza
3 years, 6 months ago
on the Header Control: If(Sum(Slider1.Value+Slider2.Value+Slider3.Value)>=150,"High Risk","") works, just tested in my power App. As soon you modify the slider value, the sum is updated and calculated on the fly.
upvoted 4 times
...
Miclarsen
3 years, 7 months ago
Tested this in powerapps. Setting the text function on the header using IF(SUM most definitely works. There may be multiple ways to achieve this though, but this works.
upvoted 2 times
...
Parth91
3 years, 7 months ago
I just tried and the answers are, 1. On the header control 2. the formula should be: If(Sum(Slider1.Value,Slider2.Value, Slider3.Value) > 150, "High Risk", "")
upvoted 3 times
...
RalfCS
3 years, 8 months ago
Let's assume you added formula to "on the header". Then your user moves e.g. slice1. Why should the formula "suddenly" calculate something? There is no trigger, no source of saying "do something, calculate something". The formula would just sit there because it never receives a request to process a change (od data entered by the user). Therefore, this cannot be the right answer. So 'on slicer' is correct.
upvoted 4 times
TheExamMaster2020
3 years, 2 months ago
The functions in PowerApps update like they would in Excel automatically when a "cell value" changes. That's to say at least in this scenario. The input fields act like cells in Excel. https://docs.microsoft.com/en-us/power-platform/power-fx/overview "Power Fx works with this same formula, with the cell references replaced with control property references:"
upvoted 2 times
...
...
RalfCS
3 years, 8 months ago
Let's assume you added formula to "on header". Then your user moves e.g. slice1. Why should the formula "suddenly" calculate something. There is no trigger, no source of saying "do something, calculate osmething". The formula would jut sits there and never receives a request to process a change. Therefore, only a change in the slicer can trigger an action.
upvoted 2 times
yeti110
3 years, 8 months ago
Just try it out, this kind of updates / references just work in PowerApps
upvoted 1 times
...
...
Hungnd21
3 years, 8 months ago
I'm not sure about second one. 1st: wrong formula 2nd: missing ", it must be "HIGH RISK" not HIGH RISK" 3rd: wrong, missing the first parameter - DataSource 4th: absolutely wrong
upvoted 5 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...