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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
kcdask
Frequent Visitor

Joining multiple fields between two tables

Hi there,

 

I have been attempting to solve this issue for awhile but have hit a snag. I'd like some assistance to create a report to populate the points for fields Drive 1, Driver 2, Driver 3, RGMP, Captain and Turbo in Table 1 for the corresponding Grand Prix in Table 2.

 

For example, the report would have a chart showing:

  • Australia
  • Phil
  • Driver 1: Daniil Kvyat 48 points (points from Table 2)
  • Driver 2: Kimi Raikkonen 42 points
  • Driver 3: Romain Grosjean -6 points
  • Captain: Daniil Kvyat 48 points

Table 1

PlayerEntry.JPG

 

 

 

 

Table 2

 

Driver.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I understand in Power BI only one field can be joined between two tables. In this case, how to join multiple fields between two tables?

 

Thanks,

 

Philip

3 REPLIES 3
jdbuchanan71
Super User
Super User

Hello @kcdask 

In PowerQuery, you could unpivot these columns before loading it into table 1

unpivot.jpg

Then in both Table 1 and Table 2 create a column that combintes [Grand Prix] and [Driver] then join the two tables on that field

I'd like to create a relationship between the two tables so that points in Table 2 would populate for the corresponding driver in Table 1 for the specific Grand Prix. 

 

Also, I would like to create a hierarchy in Table 1 in the order of Player>Drivers 1, 2, 3 for points scored. Creating a relationship between the two tables is best to achieve this outcome?  

Yes, creating the relationship is the way to go.  Do you have an .pbix file you with the data that you can share?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors