May 25 2022 01:16 AM - edited May 25 2022 07:51 AM
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.
May 25 2022 01:35 AM
@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.
May 25 2022 02:10 AM
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
May 25 2022 02:22 AM
Solution@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.
May 25 2022 02:27 AM
May 25 2022 02:31 AM
@hongpon726 Sorry, don't really know how to explain it any further. Perhaps I just don't understand your questions.
May 25 2022 02:39 AM
May 25 2022 02:46 AM
May 25 2022 08:03 AM
What are your Power Query regional settings?
And what about source data, are dates mismatched here as well?
May 25 2022 08:38 AM
I need those with the time to become US locate , selecting the date and locate result remain the same
May 25 2022 09:59 AM
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.
May 25 2022 02:22 AM
Solution@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.