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 / condition to filter in...
Power Apps
Unanswered

condition to filter in gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello I have a problem I want to filter a gallery only if it meets a condition which is if the column "Status" = "Participant" where the "Event" = "lblTextoHome.Text" column if this is met then the following filter will be made

 FirstN (
        Filter (
            Awards_1,
            Event.Value = lblTextoHome.Text && Raffle = "No"
        ),
        one
    )

the formula does not give error but it does not show me anything check in the list and the status column if it is in "Participant" where the column "Event" = "lblTextoHome.Text"

 

download (7).png

Categories:
I have the same question (0)
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    If I understood you right, you want to filter a gallery only when condition1 and condition2 are met? And what do you want to do if the conditions are not met? Do you then not want to filter at all?

     

    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

    Hardit(Haman)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Exactly do not filter anything if it is not met

    the problem is that if it is met and still does not filter anything

     

  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    So without getting into details and using generic examples, your gallery should look something like this: 

     

    Filter(Source, If(Condition1 && Condition2, Filter1 && Filter2, true))

     

    Does this help? 

     

    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

    Hardit(Haman)

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard