Forum Discussion

VOPriority's avatar
VOPriority
Regular Visitor
1 year ago
Solved

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.