Power query Formular or solution

Occasional Contributor

I'm seeking for a power query formula that the date on the highlighted Colum to be united in US locate, it 's pattern is US locate stay on left hand side, right hand side are convert from text.   


I'm having difficulty on calculating my delivery lead time since the 2 locate is in one column, I have separate them into day, months and year column and merge.

By just doing that I can not define the month and day like 2/1/2022, 8/1/2022 etc. Can I compare the month to beside column  


My query formula is still comparing the value, say for example i compare the locate type.  If "delivery lead time" >= 10 it should compare the locate to cells beside and the out is date in US locate. 





11 Replies

@hongpon726 That's not a formula. change the data type "Using Locale...", the option at the bottom of the list.


Now choose Date and English (United States), and press OK.








Yes, because I'm snuggling choose on the locate, I have them all in locate, but however not it is not quite right, for example 1, i want the month keep in December, now it is in Aust.


Second Example become Aug. and the other become December 




best response confirmed by hongpon726 (Occasional Contributor)

@hongpon726 Not quite following. You clearly have a mismatch between your system date settings and the format of the dates your trying to import. From your first screenshot it seems that your system settings use dd/mm/yyyy as the date format, as only dates where the second part exceeds 12 turned into texts. On the other hand, the Shipment Date column is set as a date using  the mm/dd/yyyy format.




after I choose locate, what is next to do to have the right US locate order please

@hongpon726 Sorry, don't really know how to explain it any further. Perhaps I just don't understand your questions.

Data are mis match, i want to clear up and I use Power query to do that. the first picture was my question, the rest of comment and photo was trying to explaining after the locate setting mm/dd/yy is still mm/dd/yy
Thanks the second text turn's every 12 counts right, i think there is a way to do it right, it should be very common issue, I have over 50,000 of this cell. Please


What are your Power Query regional settings?


And what about source data, are dates mismatched here as well?

@Sergei Baklan 




The date is in US 




I need those with the time to become US locate , selecting the date and locate result remain the same 


So, it looks like you have mismatch in source data where 8/12/2021 means 12th of Aug instead of 08th of Dec. If so afraid Power Query won't help, for it all source data shall be in the same format.