Dear all,
Just now I've started in Power Query/Pivot, and using the Data Model. It's a great tool, and mostly I'm learning and applying a lot.
However, I've been running into an issue where the automatic Calendar function in the Data Model keeps relating to wrong dates, i.e.; my data starts at 1-1-2018, but the Calendar starts all the way back in 1-1-0209, listing all days to 2020.
I've tried messing around with data types in Power Query, Locale Date notations, Cultures, etc. But nothing helped to prevent this from happening. In a clean sheet with only a Query with dates, it does work.
Now I removed all tables from the Data Model, and only included the extracted Query dates, and it loads perfectly, after which I loaded all the other tables succesfully as well.
Now my question is, why? Does it matter what tables I've loaded into the Data Model in what order, since there's no way to 'select' the source for the Calendar. Is this a simple lesson for future reference to first load the data table for the Calendar, and then add all other tables?
I hope to get this cleared up.
Bookmarks