I have 4 labels, and I wanna check if 3 has a value less than '19', but I don't wanna use 'if', there is another way to do that?
I tried with is match...CountIf... and Find...
I am stuck on the logic
Thanks
Solved! Go to Solution.
There is no way to do this other than using If() statements. Put something like the following in the OnVisible property of the screen or some other "On" property that will fire when you want the label to change.
Set(varcount,0); If(Value(Label1.Text) < 19,Set(varcount, varcount+1)); If(Value(Label2.Text) < 19,Set(varcount, varcount+1));If(Value(Label3.Text) < 19,Set(varcount, varcount+1));If(Value(Label4.Text) < 19,Set(varcount, varcount+1))
once that action is done varcount will contain the number of labels greater than 19.
There is no way to do this other than using If() statements. Put something like the following in the OnVisible property of the screen or some other "On" property that will fire when you want the label to change.
Set(varcount,0); If(Value(Label1.Text) < 19,Set(varcount, varcount+1)); If(Value(Label2.Text) < 19,Set(varcount, varcount+1));If(Value(Label3.Text) < 19,Set(varcount, varcount+1));If(Value(Label4.Text) < 19,Set(varcount, varcount+1))
once that action is done varcount will contain the number of labels greater than 19.
Hello @Gorilla_8,
As suggested by @Pstork1 there is no other way than If condition to achieve your case Some case we can use Switch Statement but we cannot make a condiition check over there
Please mark as Answer if it is helpful and provide Kudos
Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com
Thanks guys @rampprakash and @Pstork1!
I think in another one, I make a "average" between the labels to show me the result, works pretty well too.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
178 | |
52 | |
41 | |
36 | |
28 |
User | Count |
---|---|
240 | |
82 | |
71 | |
69 | |
66 |