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 / Filter Table Based off...
Power Apps
Answered

Filter Table Based off Checked Boxes in Gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have set up my Gallery to show the Manager Name and Team with a SQL Connection and I have the Goals Uploaded through a SharePoint List.

 

I want to be able to select multiple Managers in the Gallery along with the selected month and Filter the Table.So if The month is set to Febuary and i have two manager selected I want to be able to show those goals. Right now the Table is using the Following Forumla but the checkboxes will only show the most recently selected manager. 

 

Gallery:Items: Filter('SQL Server',DIR_NAME = DirectorFilter.Selected.Value)

Table: Items: Filter('Goals',Title = MonthFilter.Selected.Value,Team = MGR_Button.Text)

 

Also how would i have it show all by default based off the Director and no checked boxes? 

 

Example.png
Categories:
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    Could you please share a bit more about your scenario?

    Could you please show more details about the MGR_Button that you mentioned?

    Further, do you want to display all goals based on the selector in default when no checkbox is selected?

    I have made a test on my side, please take a try with the following workaround:11.JPG

     

    12.JPG

    Set the Items property of the Data Table control to following:

    If(
    CountRows(Filter(Gallery1.AllItems, Checkbox1.Value=true)) = 0, /* Check if there is Checkbox selected within the Gallery */
    RecordsCollection, /* <-- If there is no Checkbox selected within your Gallery, display all records */
    Filter(RecordsCollection, Team in ForAll(Filter(Gallery1.AllItems, Checkbox1.Value=true), Team)) /* <- If there is Checkbox selected already, filter records based on selected Checkboxes */
    )

    On your side, you should type following:

    If(
    CountRows(Filter(Gallery1.AllItems, Checkbox1.Value = true)) = 0, /* Check if there is Checkbox selected within the Gallery */
    Filter('Goals', Team in ForAll(Gallery1.AllItems, TeamColumn), Title = MonthFilter.Selected.Value), /* <-- If there is no Checkbox selected within your Gallery, display all goals records */
    Filter('Goals', Team in ForAll(Filter(Gallery1.AllItems, Checkbox1.Value = true), TeamColumn), Title = MonthFilter.Selected.Value) /* <- If there is Checkbox selected already, filter records based on selected Checkboxes */
    )

    Note: The Team represents the column in your 'Goals' SP list. The TeamColumn represents the column in your SQL Table, which used to store the Team value, e.g. TEAM 09, TEAM 13, ... etc. The Checkbox1 represents the CheckBox control in your Gallery.

    Please check the attached GIF screenshot for more details:

     

    More details about the ForAll function and Filter function in PowerApps, please check the following article:

    ForAll function

    Filter function

     

     

     

    Best regards,

    Test.gif
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes that worked! I think my SharePoint list is too large. Because all of the Data isnt pulling

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 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard