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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
rdstone230
Regular Visitor

Modeling 2 columns to 1 column

Hi - I am extreamly novice to Power BI, but feel I have self taught myself well at least to this extent anyway.  I have one probelm area that I cannot overcome and that is with creating a reationship based on multiple columns.  I have two columns "Drv1" and Drv2" in one table called, C51F and "Drv1" and "Drv2" to another table called, Driver Name.  The table Driver Name also has a column called, "Driver Names".  I'm attemtping to relate Drv1 and Drv2 so that I can report the Driver Name for both Drv1 and Drv2Drv1-Drv2.png.   

2 ACCEPTED SOLUTIONS
ppm1
Solution Sage
Solution Sage

The best approach to simplify things would be to unpivot the Drv columns in one or both tables, so you can make a single relationship between the two tables.

 

Pat

 

Microsoft Employee

View solution in original post

FreemanZ
Super User
Super User

hi @rdstone230 

an intuitive way would be to create a new column in both tables with Drv1 and Drv2 in Power Query Editor or with DAX code like:

Column = COMBINEVALUES("-", [Drv1], [Drv2])

 

View solution in original post

3 REPLIES 3
FreemanZ
Super User
Super User

hi @rdstone230 

an intuitive way would be to create a new column in both tables with Drv1 and Drv2 in Power Query Editor or with DAX code like:

Column = COMBINEVALUES("-", [Drv1], [Drv2])

 

ppm1
Solution Sage
Solution Sage

The best approach to simplify things would be to unpivot the Drv columns in one or both tables, so you can make a single relationship between the two tables.

 

Pat

 

Microsoft Employee

Thank you.  This was the simplist fix!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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