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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (871)