Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Smeegwhet
Regular Visitor

SharePoint data source: DoBs are interpreted as wrong day due to BST? Strange behaviour!

Hello,

I have a problem with Importing data from SharePoint site.

 

The problem is, about half the dates appear (incorrectly) as being 23:00 on the day before, e.g a date of "01/07/2022" on SharePoint will appear as "30/06/2022 23:00"

 

It looks like only the values from BST are processed this way (approximately from late April to October)

 

You can see the columns in PowerQuery:
The "Date" field from SharePoint, after having been imported into PowerQueryThe "Date" field from SharePoint, after having been imported into PowerQueryThe same dates, having been cast to "DateTimeZone"The same dates, having been cast to "DateTimeZone"

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

You can see the values from the SharePoint list, and the column settings here:

 

Screenshot (4918).png

Screenshot (4919).png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The Regional Settings for the SharePoint site are for UTC:

Screenshot (4917).png

I have absolutely no idea why this is happening.

 

Other than simply +1 hour to all the values, and then truncate, I don't know:

 

1. The cause of this problem

2. A neat solution 

 

Any help would be much appreciated!

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @Smeegwhet ,

The following ones are the threads which have the similar problem as yours, please review their solutions. Hope they can also help you resolve the problem

SharePoint Date wrong in Power Bi

yingyinr_1-1657536737206.png

SharePoint dates show in Power BI as one day off

However my issue has been resolved by my SharePoint System adminuister. Here is what he has told me?

 "All dates are stored as utc and time shifted in the browser to match the regional settings. That's why bst causes a problem because some dates are +1 hr and some aren't. To fix it i took an export of the list to excel and detached it from the list so it didn't update. Then i set the time zone of the sharepoint site to utc, then ran a flow against it looking for dates that had a decimal in them (excel stores dates in weird format of number of days past 01/01/1900), then rounded the date up, formatted it and wrote it back to the sharepoint list." 


Sharepoint.Files returns Error for datetime fields as of March 2018 version

Only Workaround for me: switching to SharePoint.Files("SHAREPOINT", [APIVersion = 15]) and than navigate to folder ....

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.