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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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