web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

List compare

(0) ShareShare
ReportReport
Posted on by

Hello all,

 

I have two lists.

 

List 1 contains the columns: Country and building code.

List 2 contains columns: UserName and building code.

 

On both lists, the building code column contains the same data.

 

I want to use a gallery to lookup what country has been selected in the first gallery using the building codes that exists in both lists.

 

I am able to do this within the same list, but doing it across two lists eludes me.

 

For the one that I got working, the first gallery's ITEM is set to Sort(Distinct('List1', Country), Ascending)

The second gallery that looks at the building codes and then gives me a list of buildings per country's ITEM is set to Filter('List1', Country=Gallery7.Selected.Result, StartsWith(City, TextInput3_1))

 

It works beautifully, but I need to use the second list to be able to check against the county, using the building code that is the same as the first list and show me the UserName per country.

 

I hope that made sense.

I'd appreciate any input.

 

Cheers
JD

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @johanduvenage 

    Use AddColumns() on the second list.

    AddColumns(list2, "Uname",LookUp(List1,buildingcode=list2[@buildingcode],User)

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @johanduvenage 

    Use AddColumns() on the second list.

    AddColumns(list2, "Uname",LookUp(List1,buildingcode=list2[@buildingcode],User)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard