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 Apps
Unanswered

Filtering Gallery

(0) ShareShare
ReportReport
Posted on by 6

Hi Users, 

 

I need help, please. I am trying to filter a gallery based on response, but I already added 2 drop down filters. I need to add this to complete a patch formula that would filter out by responses Filter('App', 'Corrected'=false) but I am not sure how to add it to what I already have. 

 

This is what I have so far, 

 

If
//This is for all and all//
(DDAisle.Selected.Value = "--All--" And DDSupervisor.Selected.Value = "--All--", 'Audit',

//This is for all aisles and selected supervisors//
DDAisle.Selected.Value = "--All--" And DDSupervisor.Selected.Value <> "--All--",
Filter ('Audit','Supervisor Assigned'.DisplayName = DDSupervisor.Selected.Value),

//This is for selected aisles and all supervisors//
DDAisle.Selected.Value <> "--All--" And DDSupervisor.Selected.Value = "--All--", Filter('Audit', 'Aisle for App'=DDAisle.Selected.Value),

//This is for selected aisles and selected supervisors//
DDAisle.Selected.Value <> "--All--" And DDSupervisor.Selected.Value <> "--All--",
Filter('Audit', 'Aisle for App'=DDAisle.Selected.Value And 'Supervisor Assigned'.DisplayName = DDSupervisor.Selected.Value))

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @Pixel20 - irrespective of whichever filtered output is returned from your conditions, I assume you want to filter the final output where the "Corrected" field = false?

     

    Assuming the "Corrected" field is a Yes/No data type, and your data source is SharePoint, try the below:

     

    Filter(
     With(
     {_all_data: 'Audit'},
     With(
     {
     _all_aisles_selected_supervisors: Filter (
     'Audit',
     'Supervisor Assigned'.DisplayName = DDSupervisor.Selected.Value
     )
     },
     With(
     {
     _selected_ailes__all_supervisors: Filter(
     'Audit',
     'Aisle for App' = DDAisle.Selected.Value
     )
     },
     With(
     {
     _selected_ailes__selected_supervisors: Filter(
     'Audit',
     'Aisle for App' = DDAisle.Selected.Value And 'Supervisor Assigned'.DisplayName = DDSupervisor.Selected.Value
     )
     },
     If 
     //This is for all and all//
    (
     DDAisle.Selected.Value = "--All--" && DDSupervisor.Selected.Value = "--All--",
     _all_data,
     //This is for all aisles and selected supervisors//
     DDAisle.Selected.Value = "--All--" && DDSupervisor.Selected.Value <> "--All--",
     _all_aisles_selected_supervisors,
     //This is for selected aisles and all supervisors//
     DDAisle.Selected.Value <> "--All--" && DDSupervisor.Selected.Value = "--All--",
     _selected_ailes__all_supervisors,
     //This is for selected aisles and selected supervisors//
     DDAisle.Selected.Value <> "--All--" && DDSupervisor.Selected.Value <> "--All--",
     _selected_ailes__selected_supervisors
     )
     )
     )
     )
     ),
     !Corrected
    )
    

     

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

  • Pixel20 Profile Picture
    6 on at

    Hi yes, I am looking to filter where the final data output of the "Corrected?" field is false. I tried the input and it didn't seem to work. 

     

  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    "didn't seem to work" is not very descriptive @Pixel20 - is there an error message for example?

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard