cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mchapman
Regular Visitor

Choices within lookup and using filter not working as expected. It should be returning more values but only returning one

I'm trying to populaete a drop down filter and just not having any luck.  I wrote this code and the parts seem to work when viewing the debugger but it only returns one value when it shold return two based on the test data Im using.  Here's the code in the itmes section of the drop down control:

LookUp(
     Choices('List-DimMembers'.'Data Source'),
          Value in Filter(
               'List-Data Sources',

                      Project.Value = First(vDefaultProject.Title).Title
           ).Title
)

Here is what the choices section returns:

Screen Shot 2019-09-28 at 11.32.17 PM.png

Here's what the filter returns:

Screen Shot 2019-09-28 at 11.40.57 PM.png

From this my expectation is that my drop down would populate with "Ireland" and "Ross" but it only returns "Ireland" can someone tell me what I'm doing wrong?  And thanks for any help or insight you can give

Screen Shot 2019-09-28 at 11.45.17 PM.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Edwin-Abdalian
Solution Supplier
Solution Supplier

The LookUp function finds the first record in a table that satisfies a formula. Use LookUp to find a single record that matches one or more criteria.

Use Filter instead:

Filter(
Choices('List-DimMembers'.'Data Source'),
Value in Filter(
'List-Data Sources',

Project.Value = First(vDefaultProject.Title).Title
).Title
)

View solution in original post

2 REPLIES 2
Edwin-Abdalian
Solution Supplier
Solution Supplier

The LookUp function finds the first record in a table that satisfies a formula. Use LookUp to find a single record that matches one or more criteria.

Use Filter instead:

Filter(
Choices('List-DimMembers'.'Data Source'),
Value in Filter(
'List-Data Sources',

Project.Value = First(vDefaultProject.Title).Title
).Title
)

View solution in original post

Ok now I feel ridiculous.  Thank you!

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 (1,944)