web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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,115

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

 

I have the same question (0)
  • Verified answer
    ChrisPiasecki Profile Picture
    6,422 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,115 on at

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

  • ChrisPiasecki Profile Picture
    6,422 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard