cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Konrad91
Frequent Visitor

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
Frequent Visitor

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
Frequent Visitor

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,305)