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 / Help with IF, ELSE & B...
Power Apps
Answered

Help with IF, ELSE & Blank checking to display objects

(1) ShareShare
ReportReport
Posted on by 6
Hi there, I am pretty new to Powerapps so please be gentle with me 😊
I need some advice and guidance on how to check for two values, but only one when the Job Number is not blank.
 
Scenario:
I have a SharePoint list called Assembly Master.
 
I want to display ALL Assembly Jobs and put them all into 5 different galleries depending on the QC Status. A bit like McDonalds when you order, you see the screen that shows where your order is, Ordered, Preparing & Ready.
 
Against each record is a QC Status. There are 5, Not Started, WIP, Pass, Fail & End of Day

I want to display 5 different galleries, displaying all the jobs that are in WIP or Pass etc

I think I have this working all ok with this code for each gallery, using a different QC Status for each:
    Filter(
     ‘Assembly Master’,
         'QC Status'.Value = "Not Started"
    )

Now what I need is to add the ability to display a list of Job Numbers down the left had side and to select one and the galleries only display the selected Job Number.


 
As you can see, I have the search field, “txtMainSearch” there and the gallery “grdJobNumber”
 
So, if I enter the Job Number 090470-4-4, the galleries will only display the 090470-4-4 jobs and status.


 
My search text field is called txtMainSearch.
 
My Jobs Gallery, looks at the same SharePoint list with the following code.
 
Filter('Assembly Master', StartsWith('Job Number',txtMainSearch.Value))


Any help & advice would be greatly appreciated!
Cheers
I have the same question (0)
  • Verified answer
    IPC_ahaas Profile Picture
    1,401 Moderator on at
    So what's not working exactly? Are you wanting to remove the search function and only display all records in their respective Galleries (based on QC Status)?
  • SP-27091646-0 Profile Picture
    6 on at
    Hi IPC Ahaas
    Many thanks for taking the time to review my post, its a bit vague i know, the requirement wasn't the best at the beginning and i have had some more detail from my boss now and it made it clearer for me. I managed to get this to work for me, using the && to combine two checks of my data.
     
    Filter('Assembly Master','QC Status'.Value="Not Started" && StartsWith('Job Number',txtMainSearch.Value))

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard