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 / Sharepoint List Relati...
Power Apps
Answered

Sharepoint List Relationships - Multiple Selection Help

(0) ShareShare
ReportReport
Posted on by 11

Hi everyone, I have built an app using one of Reza Dorani's videos as guidance in whhich he has created list of projects and a list of tasks related to each of the projects using a lookup column. 

 

For my app, I have a sharepoint list of 'Risks' and another list of 'Treatments'. The treatments are assigned to a risk which help to reduce the risk and there is a lookup column in the treatments list where you can link them to a risk.

 

I have a drop down box where you select the risk and then when you go to the treatments page it brings up the treatments in a gallery. It works great if the lookup column doesn't allow multiple selection, however, there are treatments which could apply to multiple risks and I would like to be able to do that. 

 

On my treatments page I am using the OnVisible property with the code ClearCollect(colGridData,Filter(Treatments,'Risk lookup'.Value = RiskSelection.Selected.Title)) but as soon as I change the list column to allow multiple selection, I get an error saying I am comparing a table with text.  I am sure it's a simple fix but beyong my level of knowledge so any help would be greatly  appreciated! 

Treatment.png
Error.png
Risk.png
Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    Turn the equation around and use the in operator.  The only issue will be that the in operator is non-delagable so you'll need to make sure the list of treatments is < 2000 items.

    ClearCollect(colGridData,Filter(Treatments, RiskSelection.Selected.Title in 'Risk lookup'.Value))
  • Pincho88UK Profile Picture
    11 on at

    That's amazing, thank you so much! We'd never get near 2000 so that's perfect. Thanks again. 

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    It didn't sound like you would, but that is one of the major things to be concerned about if using multiselect options.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard