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 / Filtering gallery base...
Power Apps
Answered

Filtering gallery based on lookup values

(0) ShareShare
ReportReport
Posted on by 88

This message board has greatly assisted me with achieving what I need!  I of course have more questions...mostly as a followup to my prior inquiries.  I accepted this solution  as it was working great when multiple items from a list are selected, but when I came across 1 item being selected from a multi select list, the formula doesn't identify the single value.  I assume it's because the concat formula adds a comma, and therefore searches for Value, ; which the comma isn't assigned in the actual list.  How would I edit the below formula to not apply a comma when a single value is identified in the list?

 

Filter('Business Reviewers', Concat('Line(s) of Business', Value & ", ") in Concat(DataCardValue2.SelectedItems, Value & ", ") && Concat('Product(s)', Value & ", ") in Concat(DataCardValue3.SelectedItems, Value & ", "))

 

Business Reviewers = Source list 

Line(s) of Business = category 1 within said source list, multi select lookup value (DataCardValue2)

Product(s) = category 2 within said source list, multi select lookup value (DataCardValue3)

 

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @enlitzinger 

    If you would like to remove the final ", " from the end of your CONCAT function...

    Concat('Line(s) of Business', Value & ", ")

     

    ... you can use this code which includes the LEFT function

    Left(
     Concat('Line(s) of Business', Value & ", "),
     Len(Concat('Line(s) of Business', Value & ", "))-2
    )

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard