web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to write If condit...
Power Apps
Unanswered

How to write If condition for Text Property in PowerApps ?

(0) ShareShare
ReportReport
Posted on by 227

Hi,

 

I am new to PowerApps and have Excel as my Datasource. I have columns titled as "Canceled" and "Ref No". The "Canceled" column contains values "Y", "N" or " ". The "Ref No" column contains Reference Numbers. Below table is for demo purpose. I would like to display the message when there is data present in  Reference Number  column and Canceled column contains "N" or " ". The message can be "Check Reservation". I am using Label and not sure what should be the Text property of the table using if condition ?

The Table# is Table1

Ref. NoCanceled
RU123Y
KP159N
OP190 

 

Thanks in advance for time and help!

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Newbie12 

    Put a dropdown control and a label on the screen and set the dropdown Items property as Table1.  (FYI, don't use "." or spaces in your field names, camel case is preferred).  In the label Text property 

    Lookup(Table1,RefNo=Dropdown.Selected.RefNo, Canceled).

     The user can then select the reference number from the dropdown and label will display whether it is cancelled.  Make sure that there are no duplicates in the RefNo column.  Lookup only finds the first one if there is. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 993

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 545

Last 30 days Overall leaderboard