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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Data in Browse gallery
Power Apps
Answered

Data in Browse gallery

(0) ShareShare
ReportReport
Posted on by 34

Hi,

 

I'm having a problem on function to be used to display data in browse gallery. Im trying to display item that follows certain conditions. Data is from my sharepoint list. What i want to do is to filter data that satisfy column 'confirmed 1' as confirmed or pending, column 'confirmed 2' as confirmed or pending and column 'Approved' as pending.

 

haziqrahim_1-1701567316629.png

My working function right now as below

 

Filter('Jig Order','Approved'="Pending",StartsWith(Requestor, TextSearchBox1.Text))

 

The function above does not work to filter other column that contain value "rejected" as in the picture.

 

Really appreciate if anyone could help

 

Thanks a lot

 

I have the same question (0)
  • Verified answer
    Static Profile Picture
    118 on at

    Hi @haziqrahim 
    Well ,based on your requirements, you want to filter items where 'Confirmed 1' is either 'Confirmed' or 'Pending', 'Confirmed 2' is either 'Confirmed' or 'Pending', and 'Approved' is 'Pending'. You can got this using the And and Or operators. Here's how you can modify your formula:

    Filter('Jig Order', 'Approved' = "Pending" && (StartsWith(Requestor, TextSearchBox1.Text) || IsBlank(TextSearchBox1.Text)) && ('Confirmed 1' = "Confirmed" || 'Confirmed 1' = "Pending") && ('Confirmed 2' = "Confirmed" || 'Confirmed 2' = "Pending") )

     

    Here dete4ail i think expalnation what I show above.

    'Approved' = "Pending": Ensures that the 'Approved' column is equal to "Pending".
    StartsWith(Requestor, TextSearchBox1.Text) || IsBlank(TextSearchBox1.Text): Filters based on the 'Requestor' column matching the text in TextSearchBox1, or if TextSearchBox1 is blank, it skips this condition.
    ('Confirmed 1' = "Confirmed" || 'Confirmed 1' = "Pending"): Checks if 'Confirmed 1' is either "Confirmed" or "Pending".
    ('Confirmed 2' = "Confirmed" || 'Confirmed 2' = "Pending"): Checks if 'Confirmed 2' is either "Confirmed" or "Pending".

    I hope this will help to you.

    Best regards

    Anton N.

  • haziqrahim Profile Picture
    34 on at

    Great solution.

     

    Also I found the solution by using an 'Or' instead of '||' function.

     

    Thanks a lot

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard