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 III
Super User III

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 III
Super User III

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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (81,749)