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 / Join 3 SharePoint list...
Power Apps
Unanswered

Join 3 SharePoint lists and filter with 3 multiselect columns in power apps

(0) ShareShare
ReportReport
Posted on by 31

Hi, 

I need help to build the query items for filtering the gallery (Ship activity).

I have 3 SharePoint lists (Ship Information, Test Activity List, Ship Activity

VslType , TOScenario, Changes are single select choice column in Ship information.

VslType , TOScenario, Changes are Multi select choice column in Test Activity List.

In power apps, when Ship is selected from master gallery. I need to filter the ship activity List (Child list) which contains ShipID from Ship information list and Acivitylist ID from Test Activity list.

filter ShipActivity list condition is like.. when ship selected from ship information (ShipID), its vsltype must match with vsltype in Test Activity list AND (match TOscenario from ship information to TOscenario from Test Activity list OR (match Changes column from ship information to Changes column  from Test Activity list)

Get Activity names 

IF ( VslType AND (TOScenario OR Changes)) 

Kindly help to build the filter query for Ship activity. Thank you.

Nazia786_0-1715232587985.png

 

 

 

 

 

 

 

 

Categories:
I have the same question (0)
  • VishalJhaveri Profile Picture
    1,167 Moderator on at

    Solved: Join two collections - Power Platform Community (microsoft.com)

    You must try this out. It will definitely help you out.

     

    Please mark my answer as solution, if it helps you out.

  • Nazia786 Profile Picture
    31 on at

    Hi @v-xiaochen-msft Can you please help me on this.

  • WarrenBelz Profile Picture
    153,059 Most Valuable Professional on at

    Hi @Nazia786 ,

    How are you selecting the relevant values, what fields from which list are you selecting and what are you expecting in the displayed result ?

  • Nazia786 Profile Picture
    31 on at

    Hi @WarrenBelz 

    Thank you for your reply.

    We have 150 activities(rows) in Test Activity list

    when we create a new ship in Ship information list.  we assign activities to ship Id and insert Activity names (based on ship vsltype,TO scenario, Changes) and ShipID in Ship activity list

     

    When Ship is selected in master gallery.  I need to display the data relevant to that ship from Ship activity list in child gallery

    Nazia786_0-1715242046180.png

    Pick up the activity names those relevant to selected ship's {vsltype AND (TOscenario OR changes)} from Test Activity list (Activity list ID)

    IF possible,

    First, I need to filter the test activity list (ID's) based on selected ship's {(vsltype AND (TOscenario OR changes)}

    and then select the activity names based on ShipID and Activitylist ID's..

     

    Please advise will it be easy if I have vslType, TOscenario  and changes columns added in Ship acitvity list (Childlist) so that I can filter only one table based on ship selected.

     

     

     

  • WarrenBelz Profile Picture
    153,059 Most Valuable Professional on at

    Hi @Nazia786 ,

    The fundamental issue you have is that SharePoint is not a Relational Database (this is not SQL) and does not accept Delegation on "server side" joins. This will probably get you something like what you are after, but is not Delegable

    AddColumns(
     Filter(
     TestActivityList,
     ActivityListID = GalleryName.Selected.ID
     ),
     ActivityName,
     Lookup(
     ShipActiviry,
     ShipID = ID
     ).ActivityName,
     Status,
     Lookup(
     ShipActiviry,
     ShipID = ID
     ).Status
    )

    When using SharePoint, it is good to consider the "one degree of separation" principle and not use "look through" queries even it this means "denormalizing" your data.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard