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 / If statement: Return "...
Power Apps
Answered

If statement: Return "Lab" text whenever i have a number 320

(0) ShareShare
ReportReport
Posted on by 67

Hi experts,

 

I would appreciate if I can get your help with creating the following is statement.

 

My power app data source is SP-list. One of the columns (numbers) is called "Capacity",

In My app, in the gallary I have created a Label box, when the value "Capacity" is 320 i need to show a text "Lab".

I Have tried the following formula but didn't work: If(320 in ThisItem.'capacity',"Lab",ThisItem.'capacity').

 

Thank you in advance

BR

Categories:
  • WarrenBelz Profile Picture
    156,774 Most Valuable Professional on at

    Hi @Appsforourlife ,

    Assuming the Capacity needs to be exactly 320, put the Label in the gallery with the Visible

    ThisItem.Capacity = 320

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • Appsforourlife Profile Picture
    67 on at

    @WarrenBelz 

    Very appreciated for quick help 🙏

    Correct, when capacity is exactly 320.

    This return a "true or false" I wish if we could make it to return "Lab"

    best!

  • Verified answer
    WarrenBelz Profile Picture
    156,774 Most Valuable Professional on at

    @Appsforourlife ,

    You simply need to put a Label with "Lab" in the gallery record and have that code as the Visible property. If you want to return "Lab", then

    If(
     ThisItem.Capacity = 320,
     "Lab"
    )

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Verified answer
    Appsforourlife Profile Picture
    67 on at

    @WarrenBelz thank you 🙂

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard