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:
I have the same question (0)
  • Verified answer
    CU-18081211-6 Profile Picture
    9,270 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

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard