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
Mareno_123
Helper I
Helper I

date format issue - not corectly in all rows

hi,

i have date format column START (d. m. yyyy h:nn:ss)  and date format column END(d. m. yyyy h:nn:ss). I wanna compare them with exact but not in format (d. m. yyyy h:nn:ss) but only in  (dd/mm/yyyy).

In power query is data type : Date/TIME

I used functions

date = FORMAT(table[start];"DD-MM-YYYY")
date end = FORMAT(table[end];"DD-MM-YYYY")
date exact = EXACT(table[date];ld_dzv[date end]) .
And problem ? So many dates give me wrong position date and month like:
7.1.2020 (7. january.2020) return 1.7.2020 (1.july.2020) but
13.1.2020 (13. january.2020) return 13.1.2020 (13.january.2020)
 
I dont know where i m wrong
in the photo (red are wrong , green are OK)01.png02.png
3 REPLIES 3
luapdoniv
Resolver II
Resolver II

After converting to only "Date" format, do some modeling steps on that column to split that by delimiter, splitting out the day, month, year and then concatening them in the required format as to dd/mm/yyyy or mm/dd/yyyy and then format the resultant column to date.

If you can share the table, can check and resolve for you.

for me works : 

ok Start = FORMAT(table[start].[Date];"YYYYMMDD")  
Mariusz
Community Champion
Community Champion

Hi @Mareno_123 

 

Check if your Regional settings are correct as most of the time this is the case with date formating issues.

 

image.png

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

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.