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 / Get Related records fr...
Power Apps
Answered

Get Related records from the same table as a Subgrid

(0) ShareShare
ReportReport
Posted on by 1,133

I have a Stocks table and Sites table in my model driven solution. Also the Site column in Stocks table is lookup column to Sites table. My requirement is when I open a X record from my Stocks table and it has value "Bedford" for Site Column, I would like to show the related records from the same Stocks table with Site Column value "Bedford". 

 

As you can see below, the subgrid is showing me all the records (from the Stocks table) from the view which I set as default for subgrid. But I would like to show only the ones with Site Column value coming from the form above. Please help in this regard. Happy to clarify any questions regarding my post.

 

RameshMukka_0-1651401320733.png

 

  • Verified answer
    ChrisPiasecki Profile Picture
    6,428 Most Valuable Professional on at

    Hi @RameshMukka,

     

    To show "sibling" Stock records, what you can do is create a Quick View Form for the Site table.  Add a single subgrid to the quick view form, ensure Related records is checked, then select Stocks as the table.  

     

    On your Stock form, insert a Quick View Control. Select Site as your Lookup field, Site as Related table, then pick the Quick View Form you just created. 

     

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • rameshmukka Profile Picture
    1,133 on at

    @ChrisPiasecki How can I thank you enough for the solution? Thank you so much once again.

  • ChrisPiasecki Profile Picture
    6,428 Most Valuable Professional on at

    No problem happy to help! 🙂

     

     

  • md7 Profile Picture
    232 on at

    Hi there, Sorry to jump on this topic.

     

    I've managed to do what you've said but I'm wondering if it's possible to filter out the stock (in this case) that I'm viewing from the list in the quick view. At the moment, the stock i am viewing appears in the list in the quick view as well.

     

    Thanks. 

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

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard