cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

If(Datacard < 0, TrueDoThis, FalseDoThis)

I have a Data Card, Format: Number that I want to evaluate if the content is less than zero.  I get "This data type is unsupported for evaluation.  Data type: Control??  I am sure someone has overcome this one.  I have tried Value(datacard), datacard.value and datacard.text.  Any help will be greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

You won't use the DataCard itself, but instead one of the child controls - usually the third control, and usually a label.

 

If your field is a label (even if it's a number in source, like CDS, will still be a label in the card):

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

 

View solution in original post

2 REPLIES 2
Super User II
Super User II

You won't use the DataCard itself, but instead one of the child controls - usually the third control, and usually a label.

 

If your field is a label (even if it's a number in source, like CDS, will still be a label in the card):

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

 

View solution in original post

Heck yeah!!!  You are the man!!!  I had all the parts but failed to put them all together.  Thanks again!!

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (95,736)