Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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
  • SP-27091646-0 Profile Picture
    6 on at
    Help with IF, ELSE & Blank checking to display objects
    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))
  • Verified answer
    IPC_ahaas Profile Picture
    1,278 Super User 2025 Season 1 on at
    Help with IF, ELSE & Blank checking to display objects
    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)?

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1