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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Jason_Apt
New Member

Create reference between 2 tables where the rows in table 1 match the column headers in table 2

Hello - 

 

I am newer to PowerBI and appreciate any suggestions that come from my question.

 

I have an excel spreadsheet that is being used to keep track of 40 yard dash times for players on a team.  Column A has the list of players and Columns B...n are the times for each timed run per user.  

 

I am trying to create a simple dashboard that consists of 2 visualizations.  The first would be a table of the player names and the second would be a line graph with Time (y) and runs (x).  The table would be used to filter the line graph to a single runner.

 

My problem with the data is that I can only get a dot on the graph in a virtical line for each players run and not a horizontal line.  The table filtering works.

 

I decided to transpose the spreadhseet and put the Run1 in column 1 and then the other column headers are the player names.  This allows the graph to have a horizontal line but I cannot figure out a way to create the chart for player names and filter.  

 

I am looking for either a more efficient way to create this...or a way to create a table just for player names and create a reference to the data.

 

Thanks in advance!

Jason

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

Better you Unpivot the tables having the row data in the column and then try

 

https://radacad.com/pivot-and-unpivot-with-power-bi

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Icey
Community Support
Community Support

Hi @Jason_Apt ,

Can this meet your requirements?

player.PNG

Steps:

1. In Power Query Editor, select "PlayerName" column and then "UnPivot other columns".

player - unpivot.gif

2. Close and Apply.

3. Create a line chart.

player - line.PNG

4. Create PlayerName slicer and Time Slicer.

player - slicer1.PNGplayer - slicer2.PNG

For more details, please check the attached PBIX file.

 

Best Regards,

Icey

 

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

4 REPLIES 4
Icey
Community Support
Community Support

Hi @Jason_Apt ,

Can this meet your requirements?

player.PNG

Steps:

1. In Power Query Editor, select "PlayerName" column and then "UnPivot other columns".

player - unpivot.gif

2. Close and Apply.

3. Create a line chart.

player - line.PNG

4. Create PlayerName slicer and Time Slicer.

player - slicer1.PNGplayer - slicer2.PNG

For more details, please check the attached PBIX file.

 

Best Regards,

Icey

 

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

@Icey Thank you for this support.  I had run past unpivot while researching but didn't understand the concept at the time for whatever reason.  I was then going through a Pluralsight course and had gotten to the point of seeing it in action and your reply came in so it all clicked and I have it working!

 

 

amitchandak
Super User
Super User

Better you Unpivot the tables having the row data in the column and then try

 

https://radacad.com/pivot-and-unpivot-with-power-bi

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Thank you for this.  It also helps in the solution.  I saw the other post first and marked as solution so I will also mark this one.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors