cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nasolme
Frequent Visitor

Filter gallery with relationship sharepoint lists

Hi community,

I have 2 sharepoint lists (customers and deals).


In the first gallery I look for my client. In the second I want to display the deals associated with my customers. The primary key in the customer list is "ID" and repeated in the deals list is "SIREN_ID".

So i don't understand why my formula return an error :  Filter(BDD_DEAL; BrowseGallery1.Selected.Titre = SIREN_ID) 

 

nasolme_1-1663248183099.png

 




1 ACCEPTED SOLUTION

Accepted Solutions
nasolme
Frequent Visitor

@RandyHayes 

@gabibalaban

I found the solution. the difficulty was that my customer ID in my deal list comes from a lookup column. So the value was not recognized as a number.

I had to add ".Id" after "SIREN_ID"

Filter(BDD_DEAL; BrowseGallery1.Selected.ID = SIREN_ID.Id)

View solution in original post

6 REPLIES 6
gabibalaban
Dual Super User
Dual Super User

@nasolme ,

Maybe 

Filter(BDD_DEAL; BrowseGallery1.Selected.ID = SIREN_ID) 

will do the job ?

 

@gabibalaban No.. 

@nasolme ,

In your formula, you want to compare an integer with a text. As I undestood the relationship  between the lists is ID -> SIREN_ID is one to many.

maybe I missed something 

nasolme
Frequent Visitor

The ID in customers List is an automatic number.
In the Deals list, i found this ID with LookUp.

And yes, a customers can have many deals


nasolme_0-1663249718456.png

nasolme_1-1663249855321.png

 

 




RandyHayes
Super User
Super User

@nasolme 

@gabibalaban is correct that your formula should be:

Filter(BDD_DEAL; SIREN_ID=BrowseGallery1.Selected.ID) 

 

What is the error you are getting from that?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
nasolme
Frequent Visitor

@RandyHayes 

@gabibalaban

I found the solution. the difficulty was that my customer ID in my deal list comes from a lookup column. So the value was not recognized as a number.

I had to add ".Id" after "SIREN_ID"

Filter(BDD_DEAL; BrowseGallery1.Selected.ID = SIREN_ID.Id)

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,856)