
This works very well and you can format data just like normal in Excel. You can now format the columns in Excel like normal and it will retain formatting changes after data has been refreshed! To get around this, click on the Data tab at the top and select Properties.Ĭheck the box that says ‘Preserve column sort/filter/layout’. Yes, we can set it in Excel like normal but the problem is that when you refresh the data it will revert back to non-formatted columns. Now let’s look at how we can actually format the number (integer), and currency columns. However, the Date data type actually does come through as a Date format. We can inspect each column that we formatted and will see that the Whole Number and Currency turned into a General format. Now that we set the data types, do a Close & Load to load the data into the Excel worksheet. Here I am pulling a set of data into Power Query and looking to format various columns with appropriate data types such as integer, currency, and date. This post will describe in further detail what I mean and show how to overcome this issue.įirst, let’s take a look at how Power Query doesn’t work very well with formatting columns. However, on the surface one potential drawback is the lack of formatting one can apply to the columns. At time stamp 1:12:58 starts the discussion about needing to convert dates earlier than 1900 to Text in Power Query before loading them to Excel.Power Query is a great tool to quickly, and easily, load data into an Excel workbook. The video below shows the exercise of importing and cleaning the data about the US presidencies from Wikipedia into Excel using Power Query, step by step.

These episodes make some dates not exist in certain regions, and some “ ships’ logs could show that they arrived at one port before they departed their previous port. The conversion from Julian to Gregorian calendar occurred in different moments for different regions over several centuries.


Plus, they have to account for several other external factors that might have impacted how the date was recorded and how it should now be interpreted.Īs Charley Kyd explains, today, we use the Gregorian calendar in most countries, but in the past, most of the Western world used regional variations of the Julian calendar. They cannot rely on a simple DATEDIF function in Excel to calculate date intervals. When I started this post, I thought it would be a concise one, something like “Hey, look at that! Power Query converts dates prior to 1900 correctly!” Then, as I researched and experimented more to validate my theory, I discovered that historians, scientists, and professionals dealing with old dates in Excel have a tough job operating with those date values.
