Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
VOPriority
Regular Visitor

Line Chart Show Trend When Row is Selected

I have a table visual in Power BI that displays data from the table pr_dcrequirementelement. This table contains the following fields:

 

  • Element Key (Unique identifier for an element)
  • Company (Company name)
  • Period (e.g., 2024, 2025)
  • Goal (a numerical value)

What I Want to Achieve:

  • The table shows all rows of table pr_dcrequirementelement(which it does correctly).
  • The line chart below the table should update when I select a row.
  • The chart should display the Goal for all periods related to the selected Element Key and Company, even when only one row is selected in the table.

Example Data:

 
Element KeyCompanyPeriod Goal
ABC123Company 1202430
ABC123Company 1202535
ABC123Company 1202650
CDE145Company 1202470
ABC123Company 324202575

 

So when I click either one of the first 3 rows in the table, the line chart should show for x-axis Periods (2024/2025/2026) and for the Y-axis the respective goal values (30/35/50), the 4th row shouldn't display since it's a different key and the 5th row shouldn't display since it's in different company.
 
I have attempted different DAX measures either in the Y-axis of the line chart or applied as a visual filter to the line chart and cutting interaction with the table visual but nothing worked so far.
1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@VOPriority see attached, tweak the solution as you see fit

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

1 REPLY 1
parry2k
Super User
Super User

@VOPriority see attached, tweak the solution as you see fit

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.