• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Office 365 changes format of dates to General|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Office 365 changes format of dates to General|Power Query|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryOffice 365 changes format of dates …
sp_PrintTopic sp_TopicIcon
Office 365 changes format of dates to General
Avatar
Frank Tomaselli

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
March 25, 2020
sp_UserOfflineSmall Offline
1
October 16, 2021 - 2:29 am
sp_Permalink sp_Print sp_EditHistory

My office upgraded to Office 365 and the existing queries we have are not functioning as they were before. The date column is being modified to return dates in the General format, vs the Date format. This causes issues in every file that uses the date column. 

It seems to be applying this format to new rows after refreshing the data (i.e. it is not applied to rows that already existed in the file prior to the refresh). Below is an image of an example of what the dates look like after a refresh. 

dateExample.png

I reverted back to Excel 2016, and the queries refresh without any changes to the date formats, so I am assuming this is an issue in Office 365.

 

Anyone else experiencing this issue or have any recommendations? Queries can be rebuilt, but this is not efficient as we use a large number of them in several files.  

sp_PlupAttachments Attachments
  • sp_PlupImage dateExample.png (3 KB)
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4447
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
October 18, 2021 - 10:13 am
sp_Permalink sp_Print

Hi Frank,

Welcome to our forum!

Is the data type in the query set to Date? 

Mynda

Avatar
Frank Tomaselli

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
March 25, 2020
sp_UserOfflineSmall Offline
3
October 18, 2021 - 11:12 pm
sp_Permalink sp_Print

Hi Mynda,

Thank you for the response.

Yes the data type is set to Date. I have even tried deleting this query step and creating a new one to set the column as type Date but it did not correct the problem. The confusing part of this is that it does not happen when refreshing the query in Excel 2016; only Excel 365. Also, only some of the values in the column are type General, while others have the correct Date type. 

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4447
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
October 19, 2021 - 9:16 am
sp_Permalink sp_Print

Hi Frank,

We've checked the obvious things so I'm not sure of the cause. I've had this happen from time to time too and I just apply the number format to the query output table in the Excel worksheet and after that the format sticks and is applied to new data.

See if that fixes it.

Mynda

Avatar
Frank Tomaselli

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
March 25, 2020
sp_UserOfflineSmall Offline
5
October 19, 2021 - 11:03 pm
sp_Permalink sp_Print

That does fix it, however, the table is also used in a PowerPivot measure. The date is used to calculate a weighted average cost and the General format causes the calculation to break. 

I tried a process of elimination to identify the problem and it appears this happens when they query is merged with another query. If I remove the merge step, the dates format normally. Maybe this is just a bug. 

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4447
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
October 20, 2021 - 10:15 am
sp_Permalink sp_Print

Hi Frank,

If the data is used in Power Pivot then it should be loaded direct from Power Query to the Data Model/Power Pivot and not loaded to Power Pivot via the worksheet table. Power Query should be loading that column to Power Pivot with the data type set to date. 

That said, it sounds like there might be some data in the other table that's being merged that is not able to be set to a date data type, and this is causing the whole column data type to change.

Mynda

Avatar
Frank Tomaselli

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
March 25, 2020
sp_UserOfflineSmall Offline
7
October 20, 2021 - 10:44 pm
sp_Permalink sp_Print

Thank you-I will look at the data in the other table to see if there is anything in it that could be causing the issue. 

It is still strange that this is only happening in Excel 365. 

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Roslyn Finlayson, s Ramchandran, Shanna Henseler
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6210
Posts: 27236

 

Member Stats:
Guest Posters: 49
Members: 31888
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.