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 Gallery by User...
Power Apps
Answered

Filter Gallery by User button

(0) ShareShare
ReportReport
Posted on by 63

Hey Guys,

 

I have a gallery where I allow the ability to filter the gallery by the buttons "All" "In Progress" "Pending" & "Complete"

 

I have created a collection of "ToggleCol"

 

I would also like to add a button where the user can filter Tasks assigned to them named "My Tasks"

 

I have a form that the users have the ability to add users, which in SharePoint is a Users/Groups field. They can add multiple users to an assigned task. Is there a way that I can Filter the gallery for any tasks associated with a particular user by clicking a button as well? I have tried a few different methods, but none successful. The SharePoint Column Name is 'Responsible Person'

 

Thanks

Chris

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @cperry07 :

    I've made a test for your reference:

    1\I assume there is a list:

    1.PNG

    2\Add a button and set it's OnSelect property to:

    Set(ShowMyTesks,!ShowMyTesks)

    3\Use this formula to get the result:

    If(
     ShowMyTesks,
     Filter(
     cperry07List,
     Assign.Email = User().Email
     ),
     cperry07List
    )

    42.gif

    Best Regards,

    Bof

  • cperry07 Profile Picture
    63 on at

    Hello,

     

    Since I am creating a collection for my other buttons, it does not allow me to filter the gallery by anything other than my collection for some reason.

     

    I am trying the following code with my button, but it doesn't seem to work.

     

    ClearCollect(ToggleCol, Filter(AARList, 'Responsible Person' = User().Email), AARList)

     

    Chris

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @cperry07 :

    Please try:


    ClearCollect(ToggleCol, Filter(AARList, 'Responsible Person'.Email = User().Email))

     

    Best Regards,

    Bof

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 514

#2
WarrenBelz Profile Picture

WarrenBelz 419 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 295

Last 30 days Overall leaderboard