web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Trouble using Concat a...
Power Apps
Answered

Trouble using Concat as Filter

(0) ShareShare
ReportReport
Posted on by 264

Hello, I've tried finding an answer to this with no solid yes or no it can't be done.  I have a Gallery I'm trying to Group By which works fine if I use an expression within the datasource the results are coming from.  However, in this particular circumstance I need to filter based on a separate datasource within the current datasource filter.  My first challenge was that the results produced a table, and I cannot filter based on a table.  So, I thought I could use the Concat function in order to break down the results, which works.  But, yet again, the gallery is still not filtering because it's more like an Or Or Or... statement since the results vary based on the user that's logged into powerapps.  My formula is below.

 

 

Sort(GroupBy(Filter('All Asset List',Holder=Concat(ManagerHolders,Title)),"Holder","ManagerPortal"),Holder, Ascending)

 

 

In the screen cap below you can see I'm getting the separate results that I need: 

 

Concat Example.png

My gallery filter works perfectly fine if I use the below manual code:

 

 

Sort(GroupBy(Filter('All Asset List',Holder="Test Sup" || Holder="Test Admin" || Holder="Owen Duckett"),"Holder","ManagerPortal"),Holder, Ascending)

 

 

Is there a way to get this to work since the results will in deed vary based on the user that's logged in, as I obviously can't manually type an Or statement to cover every possible outcome?

Categories:
I have the same question (0)
  • Verified answer
    forbudt4u Profile Picture
    264 on at

    Sorry all, I found a solution on another site... and it ticks me off when it really is so simple.  The below code (in function) got me where I need to be:

     

    Sort(GroupBy(Filter('All Asset List',Holder in ManagerHolders.Title),"Holder","ManagerPortal"),Holder, Ascending)

     

     

  • v-xiaochen-msft Profile Picture
    on at

    Hi @forbudt4u ,

     

    Glad to see you solved the problem.

    You could mark yourself as a solution .

     

    Best Regards,

    Wearsky

  • forbudt4u Profile Picture
    264 on at

    @v-xiaochen-msft I hate accepting my own solutions because it gives the appearance I'm creating an issue I already have a solution to.  However, I understand that the solution could benefit someone, and it keeps others from wasting time.  

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard