Forum Discussion
srutt
10 years agoAdvocate I
Power Query Table.ToList format not converting to date
I'm trying to convert a table of dates to a list (using Table.ToList), but I get an error that states it cannot convert the dates to a text. How can I convert the table and keep the date format? ...
srutt
10 years agoAdvocate I
let
Source = Sql.Database("xxx", "db"),
dbo_tblHolidaySchedule = Source{[Schema="dbo",Item="tblHolidaySchedule"]}[Data],
ChangedType = Table.TransformColumnTypes(dbo_tblHolidaySchedule,{{"HolidayDate", type date}}),
RemovedOtherColumns = Table.SelectColumns(ChangedType,{"HolidayDate"})
in
Table.ToList(RemovedOtherColumns)Here's the code.