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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
carlol
Helper IV
Helper IV

Date not joining correctly

 

I deleted all tables but these two 

 

  1. Fact 
  2. Dim Date

 

  • this works fine in SQL 
  • In powerBI both are of type date 

 

For some strange reason , some rows it returns blank others , it will pick up HospArrDate July 01 as Q3 2021

 

Capture.PNGCapture1.PNGCapture2.PNG

3 REPLIES 3
carlol
Helper IV
Helper IV

I created a new PBIX file , just incase

 

Very strange , why it is not picking up some of the dates , randomly join on the majority and others are blank

 

Is it worth trying to convert to a datekey of type int

 

Tried Power Query convery Datetime to a date and also casting to a date in SQL prior load

 

 


Select [HospArrDate],d.*
From
--[KPI].[vwMedianDoorToNeedle]
--[KPI].[vwMedianDoorToNeedle]
[KPI].[vwMedianDoorToCT]
Inner join [Dim].[Date]D On [HospArrDate] = D.Date
Where
DateKey = '20180225'

 

Capture.PNGCapture1.PNGCapture3.PNG

selimovd
Super User
Super User

Hey @carlol ,

 

that means that there is no data for that date.

The "join" works, just your data is most likely lacking some dates.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Both data tables have corresponding dates ,  verified in SQL ; I also filtered the date July 01 2021 out within the PB data model for both tables 

 

Changed the data types for DimDate (col Date)  and  Fact (HospArrDate) to date in Power Query  , just to be sure

 

Still illustrates blank

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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