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 based on either...
Power Apps
Answered

Filter based on either label

(0) ShareShare
ReportReport
Posted on by 62

I want to filter my gallery on either label and display them in a gallery.

 

Current code is - FirstN(SortByColumns(Filter(tblAssetsTracking,Title = MainSite.Text Or AdSite1.Text),"ID",SortOrder.Descending),50)

 

However if i have it look up at 2 label conditions it will not load, if i remove the or label it works.

 

Any ideas.

 

I hope it makes sense, i want to load all records based on those label values and only those values.

Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @MWads44 

     

    Try this:

    FirstN(
     SortByColumns(
     Filter(
     tblAssetsTracking, 
     Title = MainSite.Text || 
     Title = AdSite1.Text 
     ), 
     "ID", 
     SortOrder.Descending
     ), 
    50
    )

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • Verified answer
    AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @MWads44,

     

    Can you try:

    FirstN(
     SortByColumns(
     Filter(tblAssetsTracking,
     Title = MainSite.Text ||
     Title = AdSite1.Text
     ),
     "ID", SortOrder.Descending),
    50)

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

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 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard