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

If statement with grater with value

Hi All,

 

I am sure that this is a simple one, but I am trying to find a solution asap 🙂

 

I would like to show a field in PowerApps only when another field's value greater than $150

 

attached a screenshot, can you please advise?

 

thank you

 

reg

Eyad

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @EMohaisen ,

You just need this in the Visible property of the control you want to hide

Value(DataCardValue7.Text)>150

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

5 REPLIES 5
WarrenBelz
Super User
Super User

Hi @EMohaisen ,

You just need this in the Visible property of the control you want to hide

Value(DataCardValue7.Text)>150

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

douglasromao
Kudo Kingpin
Kudo Kingpin

Hi @EMohaisen ,

 

You need to convert the Text to Value and also use the TextBox instead of using the DataCard.Text.

I've attached a sample, but the formula should look like this:

 

If(Value(DataCardValue1.Text) > 150, true, false)

 

Hope that this helps 🙂

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

@EMohaisen ,

You do not need the If/true/false as both are boolean tests (true/false) and the formula will translate directly to the Visible property of the control.

I agree with both suggestions
Use:
Value(DataCardValue7.Text)>150

 

This will also work though true or false not necessary:
If(Value(DataCardValue7.Text)>150,true,false)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Thank you @WarrenBelz and All!! that works for me!! 🙂

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.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,978)