Forum Discussion
Date is shown incorrectly (DirectQuery)
I have experienced the same issue and after some digging discovered that the date was being stored as a Date Time field, even though the user was just entering a date. The field was therefore saving the date as 01/07/2016 00:00:00. When I pulled the data through to Power BI I could see that somewhere along the line the value was being adjusted based on local settings, in my case it was converting GMT to British Summer Time which is one hour different, it therefore took an hour off the date, resulting in a value of 30/06/2016 23:00:00. When I then displayed the date it came out as 30/06 rather than 01/07.
I haven't got round to resolving this at source so in the short term I have created a caluclated column:
Table.AddColumn(#"Previous field", "Actual Date", each if DateTime.Time([Date]) < #time(12, 0, 0) then DateTime.Date([Date]) else Date.AddDays(DateTime.Date([Date]),1)),
- wojciech3 years ago
Helper II
I have the same issue for some date values not all starngley enough, have you found a better solution since last time or you still use calculated column?
Thank you,
WJ