Skip to main content

Notifications

Power Apps - Building 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:
  • Dive1 Profile Picture
    Dive1 169 on at
    Re: Filter Gallery by current user and combobox

    thanks it worked 

  • Verified answer
    CU-18081211-6 Profile Picture
    CU-18081211-6 9,261 on at
    Re: Filter Gallery by current user and combobox

    @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 !

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard