cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Gorilla_8
Level 8

MAKING A FIELD APPEARING A TEXT THROUGH A RESULT OF ANOTHER FIELD

Hello, I'm trying to make a field call a text through a determinant result in a field, but I don't know why it doesn't recognize the operators, here are some prints ...

 

 

 

Sem título.png

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: MAKING A FIELD APPEARING A TEXT THROUGH A RESULT OF ANOTHER FIELD

You can just do a label and put an if statement for the "Text" value so...something like:

 

Text=If(Value(label1.Text)>2,"Greater than two","Less than two")

 

If you wanted three options it could be:

 

If(Value(label1.Text)=1,"One", Value(label1.Text)=2, "Two", Value(label1.Text)=3,"Three", "Blank)

View solution in original post

3 REPLIES 3
PowerAddict
Level 10

Re: MAKING A FIELD APPEARING A TEXT THROUGH A RESULT OF ANOTHER FIELD

Are you trying to compare the value in the label to a number? If so wrap the label text in the Value function. Something like:

Value(lblResult.Text)>

Or if you are simply trying to check the label text to replace the comma with a blank value, then this:

If((lblResult.Text) = "0,38465138", Substitute(",",""))

Let me know exactly what you are trying to do and I can help further.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com
Gorilla_8
Level 8

Re: MAKING A FIELD APPEARING A TEXT THROUGH A RESULT OF ANOTHER FIELD

No, I'm trying to show three types of text ...

for example>

if the value of lblResult <= 2 it shows on another card the text "replace", if> = shows another text, got it?

Super User
Super User

Re: MAKING A FIELD APPEARING A TEXT THROUGH A RESULT OF ANOTHER FIELD

You can just do a label and put an if statement for the "Text" value so...something like:

 

Text=If(Value(label1.Text)>2,"Greater than two","Less than two")

 

If you wanted three options it could be:

 

If(Value(label1.Text)=1,"One", Value(label1.Text)=2, "Two", Value(label1.Text)=3,"Three", "Blank)

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,195)