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.

View solution in original post

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,141)