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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / compare list A Element...
Power Apps
Answered

compare list A Element (multi-selection) with list B (column) and show in Gallery

(0) ShareShare
ReportReport
Posted on by 9

Hi Guys

 

I am trying to compare two lists.


There is a list of rooms, each room contains different tasks that are assigned via a selection in the sharepoint list (multi selection possible).

 

The list Task contains all possible tasks with description.

 

I want to enter the room in an input field and list all necessary tasks in a gallery.
Is there a way to filter the room in "Room List" and then compare the contained tasks with "Task List" and display them if they match?

 

mrn3rv0us_0-1676476727587.png

 

I hope you can help me

Categories:
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @mrn3rv0us,

    Do you want to filter the Task list based on the room input within the TextInput?

    Could you please tell me that if the Task in RoomList is a LookUp field or Choice filed?

  • Verified answer
    mrn3rv0us Profile Picture
    9 on at

    Hi @v-qiaqi-msft 

     

    Exactly, I have now replaced the text field with a scanner field. For the scans I have the QR code with value: "Room 1", "Room 2" and "Room 3".

     

    For a scan, I always get only one match.
    From the matched room, I now want to compare the Task with the TaskList and display the matched Task on a gallery.

     

    The Task column is a selection field.

    mrn3rv0us_0-1676543140940.png

     

    This is my first solution

     

    Scan Field

    //Temporary variable for scanned QR- code
    Set(tmpScan;Self.Value);;
    
    //filters the room and creates a collection "roomCol", which contains all tasks of the room 
    ClearCollect(roomCol;Ungroup(Filter(RoomList;Room = tmpScan);"Task"));;

     

    Gallery

    //Filters TaskList with the Collection values
    Filter(TaskList; Task in roomCol.Value)

     

    However, only every second scan currently works.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard