Live training: next batches coming soon. Join the waitlist:Waitlists open:Developer Training →Developer →Copilot Studio Training →Copilot Studio →

How to Check If Text is Date in Power BI Power Query

One of my colleagues asked me how to check if a text value is a date in Power BI Power Query. He was working on a report where a date field was stored in text format. When he tried to change the column data type to Date, Power BI showed errors for some rows.

The issue was that the column contained a mix of valid dates and text values. Because of this, the report was failing whenever date functions or filters were applied.

To solve this problem, I used Power Query to check whether each value is a valid date before converting it. By using a custom column, we can easily identify date values and handle text values without breaking the report