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

Lookup doesn't return all records from the SharePoint list column

Hi,

 

I have a SharePoint list with columns location and group. In PowerApps UI, I have two dropdowns Location and Group.

 

When user selects a Location, the Group dropdown should automatically show all the values for that particular location.

 

I have written the below code in Group dropdown items property. However it shows only 1 Group (Group 2)

Location"IND- BNG Bangalore" is tied to 2 groups in SharePoint list. Any idea how to get the Group 3 in the dropdown ? PFB screenshots

 

LookUp(Employees,DataCardValue8_1.Selected.Result in 'Location Name:LocationName'.Value).Group

 

1.PNG2.PNG

11 REPLIES 11

Cannot see Result as the primary text in combo box. How to select that ?

Hi @Iantaylor0290 ,

Have you set the two combo boxes' Items like what I recommended?

combo box's Items for LocationName:

Distinct(Locations,LocationName)

combo box's Items for Group:

Distinct(Employees,Group)

Then choose primary text here:

 1013.PNG

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,413)