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
Yuiitsu
Helper V
Helper V

Creating relationship between 2 date tables

Hi All

 

I have a date table that looks like this:

Yuiitsu_0-1679536462370.png

 

And I have another table that has a date column like this:

Yuiitsu_1-1679536555830.png

 

I believe the reason I am unable to create relationship between this 2 column is because the time behind is different.

Yuiitsu_2-1679536645231.png

 

Please advise how can I work around this? I am only looking at the dates here the time is not necessary. And my raw data by default will include the time behind

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, remove the time stamp into another column.  Now create a relationship between the Date column of the 2 tables.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, remove the time stamp into another column.  Now create a relationship between the Date column of the 2 tables.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Can you please advise how should I split it?

Yuiitsu_0-1679562052727.png

 

By delimiter > space.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
PhilipTreacy
Super User
Super User

Hi @Yuiitsu 

 

Your Date Table starts in 1992, when does it end?  You need the last date in the Date Table to be beyond any date in your data.  The last date should be the last date in the year i.e. 31-12-xx.

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


My last date is 2099, 12,31 .

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.