cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User
Super User

Re: If statement with grater with value

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

Re: If statement with grater with value

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

Highlighted
Kudo Kingpin
Kudo Kingpin

Re: If statement with grater with value

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."

Highlighted
Super User
Super User

Re: If statement with grater with value

@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.

Highlighted
Super User
Super User

Re: If statement with grater with value

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.

Highlighted
Helper I
Helper I

Re: If statement with grater with value

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

Helpful resources

Announcements
Check this Out

Announcing

Class of 2020- Season 2

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,810)