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 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:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    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

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard