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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
georgesmith4268
Regular Visitor

Relationship between table and line chart

Hi all,

 

I'm trying to create a relationship between a table and a line chart.

The table is a ranking of participants, it has two columns, the first one displays the name of each participant and the second one the last score of each participant.

I've also created a line chart displaying the evolution of the score of each participant each year.

 

What I would like to do is to be able to display the evolution of each participant's score by selecting his name in the table.

The line chart would change according to the selected name.

 

Does anyone knows how to do such a thing ?

 

Thank you for your help

1 ACCEPTED SOLUTION
v-jianpeng-msft
Community Support
Community Support

Hi, @georgesmith4268 

Let's say your datasheet looks like this:

table1:

vjianpengmsft_0-1714447963231.png

vjianpengmsft_1-1714448008427.png

If you need to interact between two tables, you need to reverse pivot the following schedule in PowerQuery and convert it to the following example:

vjianpengmsft_2-1714448107385.png

To establish a relationship between the new table and table1:

vjianpengmsft_3-1714448219593.png

Set it up in the line chart visual as follows:

vjianpengmsft_4-1714448278292.png

When I click on a name in the table visual, the line chart changes with it.

vjianpengmsft_5-1714448339628.png

I provide the PBIX file used this time below.

 

 

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

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

View solution in original post

1 REPLY 1
v-jianpeng-msft
Community Support
Community Support

Hi, @georgesmith4268 

Let's say your datasheet looks like this:

table1:

vjianpengmsft_0-1714447963231.png

vjianpengmsft_1-1714448008427.png

If you need to interact between two tables, you need to reverse pivot the following schedule in PowerQuery and convert it to the following example:

vjianpengmsft_2-1714448107385.png

To establish a relationship between the new table and table1:

vjianpengmsft_3-1714448219593.png

Set it up in the line chart visual as follows:

vjianpengmsft_4-1714448278292.png

When I click on a name in the table visual, the line chart changes with it.

vjianpengmsft_5-1714448339628.png

I provide the PBIX file used this time below.

 

 

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors