cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mchapman
Level: Powered On

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
Highlighted
Edwin-Abdalian
Level 10

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

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
Highlighted
Edwin-Abdalian
Level 10

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

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

mchapman
Level: Powered On

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

Ok now I feel ridiculous.  Thank you!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,649)