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 Apps
Answered

Filter a Gallery

(0) ShareShare
ReportReport
Posted on by 21

Hello everybody, 

I got a problem filtering a gallery with two arguments:

 

Filter('LM Themen';Lieferantennummer=GalleryMALiefauswahl.Selected.Lieferant;Status.Value in colStatusauswahl)
 
The first selection is done by the selected item of another gallery. The second one by comparing with a collection.
 
If I use only one of this argument, they work with out problem. If I use both I get no results.
Database is a Sharepointlist and there are datasets fiting the and-connection of the arguments.
 
Thanks for answers
 
 

 

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

    Hi @absolutbeginner ,

     

    Is there any red error with your current formula?

    If colStatusauswahl is a collection, please add '.ColumnName' after it. The column stores status in the collection.

    Filter('LM Themen';Lieferantennummer=GalleryMALiefauswahl.Selected.Lieferant;Status.Value in colStatusauswahl.ColumnName)

     

    Best regards,

    Rimmon

  • Verified answer
    timl Profile Picture
    37,212 Super User 2026 Season 1 on at

    Hi @absolutbeginner 

    Can you clarify how many items you have in your list? The 'in' operator is not delegable so that might be a cause of the problem.

    Also, can you confirm what you're expecting to match with those 2 expressions? If you want to match those records where Lieferantennummer=GalleryMALiefauswahl.Selected.Lieferant OR Status.Value in colStatusauswahl, the syntax would look like this:

    Filter('LM Themen';
     Lieferantennummer=GalleryMALiefauswahl.Selected.Lieferant || 
     Status.Value in colStatusauswahl
    )
  • absolutbeginner Profile Picture
    21 on at

    Hi @Rimmon,

     

    there is a waved underline in red below the equal sign. But it is working, when its the only argument.

     

    Best regards

    Kai

     

  • absolutbeginner Profile Picture
    21 on at

    Hi, @timl,

     

    thanks for your reply.

     

    there are maximum 4 items in the list, out of a combobox.

     

    I expect an Lieferantennummer=GalleryMALiefauswahl.Selected.Lieferant AND Status.Value in colStatusauswahl, so to see record where both is true.

     

    The OR syntax you have posted is working, as soon as I put in the ; to get an AND I don't get any records. 

  • timl Profile Picture
    37,212 Super User 2026 Season 1 on at

    Hi @absolutbeginner 

    If you hover the mouse over the waved red error message, what's the error message that appears?

  • absolutbeginner Profile Picture
    21 on at

    Hi timl,

     

    it says that the datatyp are not the same number, text.

     

    I noticed that, but when I put in only this condition it is working in pite of the error.

     

  • absolutbeginner Profile Picture
    21 on at

    Hi timl,

     

    I changed the Datatyp and the error dissapears.

    But I still do not get the result expected.

  • Verified answer
    absolutbeginner Profile Picture
    21 on at

    HI timl,

    after trying several times changing the arguments, it's working now.

     

    Thanks for the help!

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard