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 / Use filter or Lookup t...
Power Apps
Unanswered

Use filter or Lookup to show a selected value connected to another table

(0) ShareShare
ReportReport
Posted on by 2

I posted this in connecting to data but figured it might get more response in the general discussion.

Please contact me if you don't understand the issue. 

 

I have a Detailform which retrieves information from another screen.

So in this example I have pressed my Sales order "000002" and gets to my detail screen.

I have managed to get the "company" and "Sales order" data by using my DataSource "SalesOrderHeaders" and set the Item to "BrowseGallery2.Selected". (Which is the name of the screen where I selected my Sales order).

 

I also want to retrieve the Item number but this is from another table called SalesOrderLines. I want it to match with my Sales order number "000002".

Can I use Filter/Lookup to get data from my SalesOrderLines and match it with the Sales order number somehow?

 

Thanks for the help

 

Fel item.JPG

Categories:
  • Meneghino Profile Picture
    6,949 on at

    If there is a one-to-one relation then use LookUp, if one-to-many then use Filter.

    Please let me know if you need details, but being specifc with the issue you are facing in using these functions (i.e. what you tried and what you got)

  • RikardE Profile Picture
    2 on at

    Thank you,

     

    Well, I have tried to do a filter but I can't get it to work.

    Not sure if Im doing it correctly.

     

    Filter(SalesOrderLines,SalesOrderHeader.SalesOrderNumber = BrowseGallery2.Selected.SalesOrderNumber)

     

    So I want it to the get the SalesOrderLines that is connected to the SalesOrderHeader.
    I chose the SalesOrderNumber in my BrowseGallery2.

  • Meneghino Profile Picture
    6,949 on at

    Rikard, I suggest that we Skype next week (Wed-Fri) so I can show you what needs doing.  I will send you a private message with my contact.

  • Mike8 Profile Picture
    1,330 on at

    Hello RikardE,

    Let's name the column of SalesOrderLines table that has the Item number that you need ItemNumber.

    Does the following, work for you..?

    LookUp(SalesOrderLines,ItemNumber= BrowseGallery2.Selected.SalesOrderNumber,ItemNumber)

    (Replace ItemNumber with the actual name of your column)

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard