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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / CHECK IF 3 LABELS HAS ...
Power Apps
Answered

CHECK IF 3 LABELS HAS THE VALUE

(0) ShareShare
ReportReport
Posted on by

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

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,638 Most Valuable Professional on at

    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.

  • Ram Prakash Duraisamy Profile Picture
    5,885 Super User 2026 Season 1 on at

    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

     

     

  • Gorilla_8 Profile Picture
    on at

    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.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard