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.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,205)