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 / Know idea how to conne...
Power Apps
Answered

Know idea how to connect all these fields

(0) ShareShare
ReportReport
Posted on by 49

Background: I have three data sources. One is a SQL master dataset with a bunch of part information and part numbers, but no formal part name. The other is a basic Part details list with each individual part name, a picture and the category & subcategory that part belongs to. This list is tied to the gallery as seen below. The third list is a Part numbers list, this list has two fields Part number and a lookup Part name field that pulls from the Part details list. What I need to do is somehow connect all three so that when someone clicks the image on the gallery selection it will go to another screen that pre filters the SQL data source for the matching part name selected based on the part number. the Part number field is text on sharepoint and also text in SQL. The Part name is text on the SP part details data source but on the third SP Part Numbers data source the Part name is a lookup column pointing to the part name in the SP part details data source. 

 

So TLDR: Need to pre filter a data table for the selected part name based on matching part numbers. One Part can have up to 500 Part numbers because of varying dimensions etc. 

 

I was trying to do something like this: 

ForAll('Part Numbers',If('Part Number' in '[dbo].[970_item_format_item_mast]'.item_id,Collect(testCollect,LookUp('[dbo].[970_item_format_item_mast]',item_id = 'Part Numbers'.'Part Number'))

 The idea was to loop through all the part numbers where it matched the part number in SQL and put those into a collection, but then I confused myself and am lost now. 

 

power.PNG

Categories:
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Techgallagher ,

     

    Do you mean you want to filter a data table(connected with SQL table) based on the part number of selected part name?

    If so, put the following code to Gallery.OnSelect porperty:

    Set(SelectedPartNumber, LookUp('Part Number List', 'Part Name'.Value=ThisItem.'Part Name').'Part Number')

    Then, set the Items property of Data Table as follows,

    Filter('SQL table', 'Part Number'=SelectedPartNumber)

    Hope this helps.

    Sik

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 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard