Forum Discussion

rdorsey's avatar
rdorsey
Frequent Visitor
4 years ago
Solved

Power Query Importing 24hr dates incorrectly

I have a sharepoint list with "Start" and "End" fields. These are standard date and time fields displayed in 24hr time format. When I import these columns to Power BI with the SharePoint Online List connector it changes the time to 12hr time, but it's the wrong value. I can't figure out what it's doing or what I'm doing wrong, but this is obviously a serious issue for my reporting. A few examples are below:

 

SharepointPower Query
15:008:00PM
12:005:00PM
21:482:48AM
10:303:30PM
14:147:14PM
  • This is due to time zone. Your all times are off by +5 hours. After import, you can put following formula to convert back to right time (Replace Time Column appropriately)

    = [Time Column]-#duration(0,5,0,0)

     

1 Reply

  • Vijay_A_Verma's avatar
    Vijay_A_Verma
    Most Valuable Professional

    This is due to time zone. Your all times are off by +5 hours. After import, you can put following formula to convert back to right time (Replace Time Column appropriately)

    = [Time Column]-#duration(0,5,0,0)