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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

What is wrong with my structure?

Hi there

 

I have a data structure consisting of a fact table and i've joined a general date dimension to that table via a full date.

I'm using import as the query method. 

I've used this structure heaps of times and was working on a similar structure earlier today, but when i created a new structure - my data is no longer returning properly. 

 

The dimension table results are not joining to the submitted date as expected and i only have a handful of date dimension results that are actually joining to the fact table. 

 

My date table is populated. Earliest date and Latest date are returning as below screenshot. 
Where have i gone wrong??

I've checked data times are "dates" for the join. 

and i've tried refreshing the source.

Full.PNGRelationship.PNGResult.PNG

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

From everything that I am seeing, it is your time component that is causing the problem, you should create another column that is only the Date component and join on that. the 12:00:00 AM entries join correctly because a Date value with no time component is a 0 for the decimal component, which means 12:00:00 AM.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

From everything that I am seeing, it is your time component that is causing the problem, you should create another column that is only the Date component and join on that. the 12:00:00 AM entries join correctly because a Date value with no time component is a 0 for the decimal component, which means 12:00:00 AM.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Big ups @Greg_Deckler

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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