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
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
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