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
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
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.