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 / Return multiple values...
Power Apps
Answered

Return multiple values from Lookup field separated by comma

(0) ShareShare
ReportReport
Posted on by 23

Hello! 

 

I hope someone can help me to solve this because I can't find any solution for this issue.

 

I'm trying to return two values selected from a Lookup field I created and want to separate it by comma.

Fyi, DataCardValue1 is Sales Admin field that I created using Lookup (SalesAdmin list in Sharepoint)

 

So, If a user selected multiple names from Sales Admin field, I want to get their Email data from the Sales Admin list I created to fill the Pending PIC field, but I have an issue bcs it only returns one value not based on how many user selected the value in Sales Admin field. And, I also want the selected value to be separated by comma..

 

Is there any solution for this? I tried using concat in Default just like in the screenshots but it keeps giving me an error saying it has some invalid arguments.

 

Thank you so much for your help! 

 

image.png

 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @saphiraputri,

    Because LookUp() function only returns the first record of the matched results, you need to use Filter() function:

     

    Concat(Filter(SalesAdmin,Name in DataCardValue1.SelectedItems.Value,Email),Email,";")

     

  • Verified answer
    victorcp Profile Picture
    2,350 Moderator on at

    Hi,

    Yes, you have to create a table with all the selected values, then lookup in the SalesAdmin and finally concat them, like this:

    Concat(
     ForAll(
     DataCardValue1.SelectedItems As item,
     LookUp(SalesAdmin, Name = item.Value)
     ), 
     Email,
     ";"
    )

     I hope it helps 🙂

  • saphiraputri Profile Picture
    23 on at

    Omg, it works!!! Thank you so much for your help! 

  • saphiraputri Profile Picture
    23 on at

    Hi! it works!!! Thank you so much! 

     

    But there's a yellow underline below the "in" and the message is:

    "Delegation warning. The highlighted part of this formula might not work correctly on large data sets."

     

    Is it okay if I used the formula with a warning like that?

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

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard