cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Relationship of lists

Guys, how do I list information from 2 Sharepoint lists in Power apps. The two lists have 2 fields in common with the same name and the same information

Ex.:

List_1 - Note Number field

List_2 - Note number field

I need to list these 2 columns in the query to the order, but I am not able to make the two come together.

Do I have to make any relationship between them on the sharepoint?

This information comes straight from a sql connection


Can someone help me?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Relationship of lists

Hi @beatrizmoura26 ,

Could you describe more clearly about the feather that you want? If you could describe with detailed data, it will help me understand your issue.

Based on your description, I could not quite understand this  "I need to list these 2 columns in the query to the order".

Could you tell me whether Note Number field in list1 and in list2 is the same data type?
What data comes from sql, what data comes from sharepoint list?

If you want to merge two lists together based on Note Number field, you could consider use AddColumns function.

For example:

ClearCollect(mergetable,
AddColumns(list1,
"field1 in list2",LookUp(list2,'Note number'='Note Number',field1name),
"field2 in list2",LookUp(list2,'Note number'='Note Number',field2name),....
))

Then the mergetable will both have data of list1 and list2. You could filter on this collection.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Community Champion
Community Champion

Re: Relationship of lists

Hi @beatrizmoura26 ,

Depending on what you are trying to achieve, you can use a LookUp or a Filter. As an example if you had list 1 items in a gallery and want to display the matching List 2 item in a form, the Item of the Form would be

Lookup(
   List2,
   NoteNumber=YourGalleryName.Selected.NoteNumber
)

 

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.

Highlighted
Community Champion
Community Champion

Re: Relationship of lists

Can you sample tables with those columns and how you want the result.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Highlighted
Community Support
Community Support

Re: Relationship of lists

Hi @beatrizmoura26 ,

Could you describe more clearly about the feather that you want? If you could describe with detailed data, it will help me understand your issue.

Based on your description, I could not quite understand this  "I need to list these 2 columns in the query to the order".

Could you tell me whether Note Number field in list1 and in list2 is the same data type?
What data comes from sql, what data comes from sharepoint list?

If you want to merge two lists together based on Note Number field, you could consider use AddColumns function.

For example:

ClearCollect(mergetable,
AddColumns(list1,
"field1 in list2",LookUp(list2,'Note number'='Note Number',field1name),
"field2 in list2",LookUp(list2,'Note number'='Note Number',field2name),....
))

Then the mergetable will both have data of list1 and list2. You could filter on this collection.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,089)