cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Konrad91
Level: Powered On

Table from SQL source showing data for a selected line of another SQL source table

Hello,

 

I'm not sure if my topic is clear but I will try to explain my idea here:

 

I have two SQL tables connected to PowerApps. One contains daily data for items (one unique line per item). The other one keeps comment history for every item - can be multiple comments.

 

What I would like to achieve is. On selection of a row from the first table I would like to see all comments regarding this item in the other table. The part in common for the tables is 'key'. How can I achieve that?

 

I will be grateful for any help.

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Manoj-VNBB
Level: Powered On

Re: Table from SQL source showing data for a selected line of another SQL source table

Hello @Konrad91 

You can try this, 

1. Insert a table and name it "tblFirst"

2. Set its item property to "Your SQL Item Table"

3. Choose fields to be displayed for "tblFirst"

4. Insert another table and name it "tblSecond"

5. Set its item property to Filter("Your SQL CommentsHistory Table",CommonColumn = tblFirst.Selected.CommonColumn )

6. Choose fields to be displayed for "tblSecond"

Hope this will complete your reqiurement. 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks

Manoj

View solution in original post

1 REPLY 1
Manoj-VNBB
Level: Powered On

Re: Table from SQL source showing data for a selected line of another SQL source table

Hello @Konrad91 

You can try this, 

1. Insert a table and name it "tblFirst"

2. Set its item property to "Your SQL Item Table"

3. Choose fields to be displayed for "tblFirst"

4. Insert another table and name it "tblSecond"

5. Set its item property to Filter("Your SQL CommentsHistory Table",CommonColumn = tblFirst.Selected.CommonColumn )

6. Choose fields to be displayed for "tblSecond"

Hope this will complete your reqiurement. 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks

Manoj

View solution in original post

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,710)