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 curr...
Power Apps
Answered

Filter Gallery by current user and combobox

(0) ShareShare
ReportReport
Posted on by 169

Hello I've a gallery where it show data that user have created in the app and i want that only the user be able to see what i created 

With({_item:Opportunités};Search(Filter(_item;'Créé par'.Email=User().Email&&IsEmpty(ComboBoxEtatFiltre.SelectedItems)||(Concat(ComboBoxEtatFiltre.SelectedItems;Value&",") in Concat(Etat;Value&",")));SearchBox.Text;"Nomclient";"Title"))

it's my code in item in my gallery so it worked first but when I've added the combobox to filter the gallery it didt worked anymore but the filter with the combobox work any idea why ?

Categories:
  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @Dive1 ,

    The cause might be a confusion in your Filter condition. The OR condition need to be treated separately to AND. Use this:

    With(
     {_item:Opportunités};
     Search(
     Filter(_item;'Créé par'.Email=User().Email &&
     (IsEmpty(ComboBoxEtatFiltre.SelectedItems)|| 
     (Concat(ComboBoxEtatFiltre.SelectedItems;Value&",") in Concat(Etat;Value&","))
     )
     );
     SearchBox.Text;
     "Nomclient";
     "Title")
    )

    Hope it helps !

     

  • Dive1 Profile Picture
    169 on at

    thanks it worked 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard