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 / Lookup column in Share...
Power Apps
Suggested Answer

Lookup column in SharePoint to link with Form and related Data using Table

(1) ShareShare
ReportReport
Posted on by 138
Hi 
 
Good Day!!
 
A Form created to display the Invoices ( Invoice List) and corelated data stored in seperate List( Invoice sub items). Refer the below form and Table.
Lookup columns created in both SharePoint Lists. "Summary of Invoices" & Invoice ID. How to display the respective data in Invoice Sub Items table with respect to the Invoices displayed in the form.
 
 
I have the same question (0)
  • NA-31100700-0 Profile Picture
    2 on at

    Hi there,

    To filter the Invoice Sub Items based on the selected invoice and bind it to your gallery, you can use the following formula:

    Filter('Invoice Sub Items', InvoiceID.Id = YourFormControl.Selected.Id)

    Replace YourFormControl with the actual name of your form's invoice id control. This will ensure that only the sub-items related to the selected invoice appear in the gallery.

  • Nandit Profile Picture
    1,568 Moderator on at
     
    Looks like you are using the Data Table control to display the Sub Items, use the following code in the Items property:
    With(
        {Records: 'Invoice sub items'},
        Filter(
            Records,
            lookupColumn.Id = LookUp( //Modify to include the right lookup column and
                                     //update the LookUp part with form Item property (for e.g. Gallery.Selected.ID)
                Invoice List,
                ID = 1
            ).ID
        )
    )
    Hope this helps. 
     
    Kind regards,
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    Looks like you are using the Data Table control to display the Sub Items, use the following code in the Items property:
    With(
        {Records: 'Invoice sub items'},
        Filter(
            Records,
            lookupColumn.Id = LookUp( //Modify to include the right lookup column and
                                     //update the LookUp part with form Item property (for e.g. Gallery.Selected.ID)
                Invoice List,
                ID = 1
            ).ID
        )
    )
     
    Hope this helps. 
     
    Kind regards,
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     

     
  • schithambaran Profile Picture
    138 on at
    Hi Nandit
     
    Good Day!!
    Thank you so much for the response.
    Refer the below snapshot. 
    Summary of Invoices Lookup column in MSInvoicesList referring MSinvoiceSubItems List -> Invoice ID. can you pls guide me the coding.
    Gallery created with a Table to display the MSInvoiceSubItems List details.
     
     
  • schithambaran Profile Picture
    138 on at
    Hi
     
    Drafted the coding as per the below. But still showing error. Appreciate your help.
     
    With(
        {Records:MSInvoicesSubItems},
        Filter(
            Records,
            SOI.Id = LookUp(MSInvoiceSubItemsTable.Selected.ID, MSInvoice,ID=1
        ).ID
    )
    )
  • schithambaran Profile Picture
    138 on at
    Hi  Good Day!!
     
    Appreciate your assistance.
     
    A Home page created to display the invoices. Once click on the Individual invoice it will redirect to another form (Refer the below snapshot)
     
     
     
    In the below form Invoice details will display. Once we select the Summary of invoices, the below table should display with subitems of the invoices.  Please assit.
     
     
     
     
  • schithambaran Profile Picture
    138 on at
     
    Hi
     
    Drafted the coding as per the below. But still showing error. Appreciate your help.
     
    With(
        {Records:MSInvoicesSubItems},
        Filter(
            Records,
            SOI.Id = LookUp(MSInvoiceSubItemsTable.Selected.ID, MSInvoice,ID=1
        ).ID
    )
    )

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 936

#2
Valantis Profile Picture

Valantis 604

#3
11manish Profile Picture

11manish 518

Last 30 days Overall leaderboard