If you say "leading zeros" and "date order" means for me your dates are not dates, you have a text! And that's why your Pivot table did not work.
Furthermore, if you want to show data by weeks you can do that if you group the dates by 7 days with usual Pivot tables. But that works only if you have real dates...
Today's way to accomplish this is to load the data into a Data Model then create a calendar, create a relationship between the dates and create a Pivot table from the Data Model.
Show me your file, I create a sample file for you.
Andreas.
Leading zeros are most certainly a thing in a date. It is why there is a distinction even in the format cells option in excel:
If you look at my screen shots in the original posting of this thread you will see that my data is in fact formatted using a date rather than general or text. And then that column is automatically changed to a different format, before any change type steps have been accomplished by the power query.
Due to PII in the file I cannot share it but it is easily duplicated. Create a workbook where one column is a date in YYYY-MM-DD format and fill with random dates from this year. Import that data to a second workbook using power query. If you get anything other than DD/MM/YYYY then somewhere one of our settings is different.