cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

LookUp column to filter a second column

Hi all,

I want to show a value in a lookup column. My forms have two lookup cascading columns from two lists.
When i have only 1 lookup column and i want to show the value from another column in the list, i always use this method what works fine:

 

 

"Example: " & LookUp(Source, Title = DataCardValue3.Selected.Value, Example)

 

 

As i said, this works for out of the box Lookup columns perfect. Now i have a cascading columns setup with a collection.

I think i need to make my collection creater so that i can filter later on that, is that correct?
Here is the setup for my cascading, this is on the OnSelect button

 

 

ClearCollect(
    collSchools,
    {
        Schools: Filter(
           Schools,
            Facility.Value = DataCardValue2.Selected.Value
        )
    }
)

 

 

This is on the item button from the second cascading column:

 

 

Filter(
    Choices(Testlist.School),
    Value in First(collSchools).School.Title
)

 

 


This doesn't work anymore:

 

 

"Second lookup:" & LookUp(
    School,
    Title = DataCardValue5.Selected.Value,
    Example
)

 

 

 

So i think i need to make my collection bigger and then later filter on the collection so i can use the value from the second column, is that right? 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Anonymous
Not applicable

Re: LookUp column to filter a second column

"Example: " & LookUp(Source, Title = DataCardValue3.Selected.Value, Example)

 

This was the solution, cache was the problem 🙂

View solution in original post

1 REPLY 1
Highlighted
Anonymous
Not applicable

Re: LookUp column to filter a second column

"Example: " & LookUp(Source, Title = DataCardValue3.Selected.Value, Example)

 

This was the solution, cache was the problem 🙂

View solution in original post

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,620)