Hi - on pg 42. When I attempt to complete step #2, I am running into difficulties using 'Calendar'[CalendarYear] when creating the proper graph. When I used 'Calender'[Date], everything works fine. When I "transform data" and look at the Calendar year column, I see the dates 2001-2004, when I look at the data view after, all I see is the date 1905 for all entries on that same column. Any thoughts?
Thanks,
Rich
Calendar Year displaying differently in Power Query
-
MattAllington
- Posts: 1154
- Joined: Sun May 04, 2014 4:01 pm
- Location: Sydney, Australia
Re: Calendar Year displaying differently in Power Query
What do you mean “transform data”? There is a calendar year column in the calendar table already
Matt Allington is Self Service BI Consultant, Trainer and Author of the Book "Supercharge Power BI".
Power BI Training
Power BI Training
Re: Calendar Year displaying differently in Power Query
Sorry, Transform Data = In Power Query.
I attached a screenshot that shows power Query showing 2001-2004 under the CalendarYear column, but in Power BI data view, it is showing that same column information as 1905 for all rows.
I attached a screenshot that shows power Query showing 2001-2004 under the CalendarYear column, but in Power BI data view, it is showing that same column information as 1905 for all rows.
- Attachments
-
- ss1.jpg (350.1 KiB) Viewed 493 times
-
MattAllington
- Posts: 1154
- Joined: Sun May 04, 2014 4:01 pm
- Location: Sydney, Australia
Re: Calendar Year displaying differently in Power Query
That’s weird. Can you please attach your workbook so I can take a look.
Matt Allington is Self Service BI Consultant, Trainer and Author of the Book "Supercharge Power BI".
Power BI Training
Power BI Training
Re: Calendar Year displaying differently in Power Query
Attached is my PowerBI file, and I am working off of the Access DB "Adventure Works" downloaded as instructed in the book on 10/11/2020.
- Attachments
-
- practice files#2.pbix
- (1.85 MiB) Downloaded 22 times
-
MattAllington
- Posts: 1154
- Joined: Sun May 04, 2014 4:01 pm
- Location: Sydney, Australia
Re: Calendar Year displaying differently in Power Query
I see the issue. Your CalendarYear column is formatted as a date. I am not sure why, but that is wrong. It needs to be formatted as an integer inside Power Query. If that is already done, then you can also change it from the format menu in Power BI
Matt Allington is Self Service BI Consultant, Trainer and Author of the Book "Supercharge Power BI".
Power BI Training
Power BI Training
Re: Calendar Year displaying differently in Power Query
Excellent - thanks so much for helping me out with that.
Return to “Help with the Book "Supercharge Power BI"”
Who is online
Users browsing this forum: No registered users and 1 guest


