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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
avidthinker
Frequent Visitor

Sorting in Dataflow

Hi,

 

I am having an issue with a DateTime column I converted to Date to sort to get rid of duplicates in another column.

 

DataFormat.Error: We couldn't parse the input provided as a DateTime value.

Details
Reason = DataFormat.Error
Detail = 0000-00-00 00:00:00
 
Prior to 16 Feb this was working in Power BI Fabric Service.
Previously Dates displayed as dd/mm/yyyy or mm/dd/yyyy was working not sure why the date needs to be in yyyy-mm-dd format?
Tried convert using locale, convert from DateTime to Date then sort but same issue.
 
MCode
Table.Sort(#"Changed column type 1", {{"Order xxx", Order.Descending}})
 
 
3 REPLIES 3
avidthinker
Frequent Visitor

Hi lbendlin,

 

Thanks for the update, reason being in sorting against a date column, I have duplicates in my main key column I would like to remove duplicates so I do not get issues with my 1:n relationships downstream.

 

I guess if I am using the file to populate the dataflow I will need to cleanse my data before utilising it, but this functionality was working without issue prior to Fabric Feb update, wonder what MS had done to now cause sorts to fail if not formatted correctly.

 

 

Thanks for the update, reason being in sorting against a date column, I have duplicates in my main key column I would like to remove duplicates so I do not get issues with my 1:n relationships downstream.

 

This still does not require sorting.  Do a Table.Distinct on your intended key column and Power Query will randomly pick the row to keep.

lbendlin
Super User
Super User

ISO8601 format is generally preferred to reduce ambiguity.

 

Sorting in Power Query must be avoided as it is an extremely costly operation, and usually not required in the downstream process.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Solution Authors