Forum Discussion
Power query Formular or solution
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.
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.
- Riny_van_EekelenPlatinum Contributor
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.
- hongpon726Copper Contributor
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
- Riny_van_EekelenPlatinum 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.
- hongpon726Copper Contributor
- Riny_van_EekelenPlatinum Contributor
hongpon726 Sorry, don't really know how to explain it any further. Perhaps I just don't understand your questions.