cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rupa1
Helper I
Helper I

Multiple values are not return by lookup

Hello,

 

I have two roles for a user in a sharepoint list - when i want to return both the roles - the lookup is just returning one instead both in the dropdown item list. Can u help - i tried with filter and then used a lookup ontop of that but its not working . Currently the user holds 2 roles and i want to get both the roles in a drop down item list.

 

[LookUp(Filter('SP LIST','Name of User'= User().Email && 'Role of User'="Role1" || 'Name of User'= User().Email && 'Role of User'="Role2"),'Name of User'= User().Email,'Role of User')]

 or

 

[LookUp('SP list','Name of User'= User().Email,'Role of User')]

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User III
Super User III

Hi @rupa1 ,

A Lookup will return the first value, so that is the expected result. To get a table showing the two records

ShowColumns(
   Filter(
      'SP LIST',
      'Name of User'= User().Email && 
     (   'Role of User'="Role1" || 
         'Role of User'="Role2"
      )
   ),
   "Name of User"
   "Role of User"
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

2 REPLIES 2
WarrenBelz
Super User III
Super User III

Hi @rupa1 ,

A Lookup will return the first value, so that is the expected result. To get a table showing the two records

ShowColumns(
   Filter(
      'SP LIST',
      'Name of User'= User().Email && 
     (   'Role of User'="Role1" || 
         'Role of User'="Role2"
      )
   ),
   "Name of User"
   "Role of User"
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Thank you..it worked!!

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (67,334)