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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
pji
Advocate I
Advocate I

Create relationships using 2 columns as primary key

Please allow us to create relationship between two tables using a combination of 2 columns instead of single column, if none of the single columns have unique values. Sometimes it is not possible to create summary tables with unique values for any column.

4 REPLIES 4
v-haibl-msft
Microsoft Employee
Microsoft Employee

@pji

 

We can either creating another summary table or using a concatenated column in such scenario.

Please also create an idea in https://ideas.powerbi.com for feature request.

 

Best Regards,
Herbert

Thanks. I did that.

jthomson
Solution Sage
Solution Sage

You could create a column concatenating the two you want to use as a workaround?

That won't help in my case, since I am making a generic template and the base table would be deleted and readded every time. I would like to minimise the effort as much as possible.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.