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! Learn more

Reply
nleuck_101
Responsive Resident
Responsive Resident

Date table and Fact table relationship doesn't seem to be working

Hello All,

 

I have a Date table and a Fact data table. There is a one to many relationship from the Date table to the Fact data table. I've never ran into this problem before.

 

Entry Date from Fact table Data Type is Date

date_field from Date table Data Type is Date/Time

 

I've tried changing the data types to match either as Date or Date/Time and neither seemed to work. Any ideas?

nleuck_101_0-1724069763748.png

 

1 ACCEPTED SOLUTION

@nleuck_101 The solution *should* be to convert both columns to Date columns in Power Query Editor. This should drop the decimal component (time) and then everything should match up. 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

11 REPLIES 11
nleuck_101
Responsive Resident
Responsive Resident

nleuck_101_0-1724070110901.png

 

@nleuck_101 Well, does you date time field have times in it other than 12:00:00 AM ? If it does, they will not match a pure Date field as a Date without a time component is considered 12:00:00 AM.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler 

It does not.

@nleuck_101 Can you go into Power Query Editor and change the Date/Time column to just a Date column? Then it should appear with the calendar icon next to it.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler 

That didn't work either.

nleuck_101_0-1724071631289.png

nleuck_101_2-1724071714434.png

 

 

@Greg_Deckler 
I think I found the issue. The Fact table is from a SharePoint list and it is a Text Type in SharePoint because some of the data will move to a SQL table for archiving purposes. I read that moving Dates to SQL from SharePoint doesn't work well unless the SharePoint data is actually a Text column. When I initially bring the SharePoint list in the EntryDate is a text field with the time as 4:00:00am. In Power Query, I change the data type to date. I brought in a different table from our SQL database that has Hire Date as date/time and that seemed to work just fine.

nleuck_101_3-1724072389117.png

 

@Greg_Deckler 
Is there a solution to solve this issue?

@nleuck_101 The solution *should* be to convert both columns to Date columns in Power Query Editor. This should drop the decimal component (time) and then everything should match up. 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler 
Once I removed them from the visual and added them back in it worked. Odd.

@nleuck_101 Huh, that's bizarre.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
LeandroDeodato
Resolver II
Resolver II

show your relanshionship please.

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