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

Relationship on date/time column with different formats

Hi,

 

I'm simply trying to relate column C from "Native Load 2019" with the other excel file "DART 2019 with correct Date_Example" so that the correct values align with the correct date/time. I've tried doing this in Power BI by manipulating the date formats and creating a relationship on them but am struggling. At first I tried sharing my Power BI but I think it may be easier to just supply you with the excel sheets so that you can work thorugh the relationship from scratch. 

 

Thanks in advance, I'll appreciate any support you can give!

 

 

 

 

https://www.dropbox.com/scl/fi/e4a7fjhn1aledjge4sxrk/DART-2019-with-correct-Date_Example.xlsx?dl=0&r...

 

https://www.dropbox.com/scl/fi/2i5g6zwloublcfg885heu/Native_Load_2019.xlsx?dl=0&rlkey=ej4ezqvg59w3pe...

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

The issue is that you can't convert [HourEnding] column in 'Native Load Report' table from "Text" to "Date/Time", right?

If so, try this:

1. In Power Query Editor, replace "24:00" with "00:00".

replace.jpg

replace2.PNG

 

2. Change data type.

change.jpg

 

3. Close and Apply.

 

4. In Power BI Desktop relationship view, you can create relationships now.

rela.PNG

 

BTW, .pbix file attached.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Anonymous ,

 

The issue is that you can't convert [HourEnding] column in 'Native Load Report' table from "Text" to "Date/Time", right?

If so, try this:

1. In Power Query Editor, replace "24:00" with "00:00".

replace.jpg

replace2.PNG

 

2. Change data type.

change.jpg

 

3. Close and Apply.

 

4. In Power BI Desktop relationship view, you can create relationships now.

rela.PNG

 

BTW, .pbix file attached.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@Icey Thank you, I really appreciate your help! 

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.