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
tylerbauer
Helper II
Helper II

Cannot create relationship between two columns.

Hello, I am creating 3 tables that are not measured all on the same date range (some values are measured by week and other are measured by day). I need all 3 tables to change by a slicer. I am wondering if you reccomend using a "datekey" as the way to connect these tables or if I should create a seperate primary key and relationship like in SQL?

2 REPLIES 2
v-caliao-msft
Microsoft Employee
Microsoft Employee

@tylerbauer,

 

Do you have datekey in your tables? You can create a Date table in your Power BI data model, and then create relationship between your tables and new date table, then you can add this new date column in date table into a slicer. Please refer to the links below to see the details about how to create date table.
https://kohera.be/blog/business-intelligence/how-to-create-a-date-table-in-power-bi-in-2-simple-step...
https://www.agilebi.com.au/blog/power-bi-date-dimension

 

If this is not what you want, please elaborate your table strucutre, if possible provide us some sample data, so that we can make further analysis.

 

Regards,

Charlie Liao

 

What if multiple columns in a table have the same date? Does this make it unfeasible to connect different tables on date because date won't be unique?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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