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 / Filtering galleries fr...
Power Apps
Answered

Filtering galleries from list infos

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi guys,

 

I'm having a bit of trouble filtering a gallery for on of my apps. Basically, I have a dropdown with names that already filters my gallery. But I also want to filter with an other condition coming from a SharePoint list that I have trouble coding. In my app, every name is linked with tasks and each tasks with 7 prerequisites (just yes or no conditions). Maybe you guessed it, I want to add another filter that allows me to display only the tasks in my gallery when at least 1 of the prequisites has not been met.

 

I tried with "and" and "or" but I cannot make it work.

 

Does someone has an idea on how to do this?

Categories:
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    Can you try to update your expression to below format?
     
    Filter(DataSource, Column1 = Dropdown.Selected.Value && Or(Text(PreReq1) = "No", Text(PreReq2) = "No",Text(PreReq3) = "No",Text(PreReq4) = "No",Text(PreReq5) = "No",Text(PreReq6) = "No",Text(PreReq7) = "No")
     
    Here Data source is the name of data source with column Column1 to filter dropdown results. PreRe1 - PreReq7 are the name of columns which holds the value for Yes/No. I am assuming that it is a Yes/No type column.
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share more details about the Filter formula you used in your app?

    Does these 7 prerequisites represents 7 individual Yes/No type column in your SP List?

     

    I suppose that these 7 prerequisites represents 7 individual Yes/No type column in your SP List, and you want to display only the tasks in your gallery when at least 1 of the prequisites has not been met (PrerequisiteColumn set to No), is it true?

     

    I have made a test on my side, please consider take a try with the following Filter formula:

    Filter(
     'YourSPList',
     NameColumn = Dropdown1.Selected.Value,
     PrerequisiteColumn1 = false || PrerequisiteColumn2 = false || PrerequisiteColumn3 = false || PrerequisiteColumn4 = false || PrerequisiteColumn5 = false || PrerequisiteColumn6 = false || PrerequisiteColumn7 = false
    )

    or

    Filter(
     'YourSPList',
     NameColumn = Dropdown1.Selected.Value,
     PrerequisiteColumn1 = 0 || PrerequisiteColumn2 = 0 || PrerequisiteColumn3 = 0 || PrerequisiteColumn4 = 0 || PrerequisiteColumn5 = 0 || PrerequisiteColumn6 = 0 || PrerequisiteColumn7 = 0
    )

     

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

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
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard