Calendar Year displaying differently in Power Query

This is a dedicated forum for people that have questions about the book Supercharge Power BI. In the event of errors in the book, the error information will be in this forum.
RichM
Posts: 8
Joined: Mon Oct 12, 2020 10:45 am

Calendar Year displaying differently in Power Query

Postby RichM » Sat Oct 24, 2020 4:38 am

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

MattAllington
Posts: 1154
Joined: Sun May 04, 2014 4:01 pm
Location: Sydney, Australia

Re: Calendar Year displaying differently in Power Query

Postby MattAllington » Sun Oct 25, 2020 6:19 am

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

RichM
Posts: 8
Joined: Mon Oct 12, 2020 10:45 am

Re: Calendar Year displaying differently in Power Query

Postby RichM » Mon Oct 26, 2020 3:28 am

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.
Attachments
ss1.jpg
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

Postby MattAllington » Mon Oct 26, 2020 5:04 am

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

RichM
Posts: 8
Joined: Mon Oct 12, 2020 10:45 am

Re: Calendar Year displaying differently in Power Query

Postby RichM » Mon Oct 26, 2020 6:03 am

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

Postby MattAllington » Tue Oct 27, 2020 7:03 am

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

RichM
Posts: 8
Joined: Mon Oct 12, 2020 10:45 am

Re: Calendar Year displaying differently in Power Query

Postby RichM » Tue Oct 27, 2020 9:42 am

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