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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Jasonvl
Frequent Visitor

Conditional Column in Query Editor Changes Date format and Breaks Query

Hi,

 

I have a conditional column containing dates (UK) in the format of dd/mm/yyyy which is also my locale settings on the computer.

Everything works fine until I have to edit the query because a new line of data has been added to the source and I need to update the query for that line of data.

For some reason when I go to edit the step  'Added Conditional Column 1' instead of the date saying 16/05/2019 for example it has been replaced with #date(2019, 5, 16)

I've tried converting the column to a date column and also converting it to a date column using locale and it's all fine the first time I do it but as soon as I go to edit the query to add a new line to the conditional formating all the existing dates have been replaced.

The issue is that when I then go to Close & Apply the query breaks saying it can't parse the input provided as a Date value?

Any ideas please why this is happening?

1 REPLY 1
TeigeGao
Solution Sage
Solution Sage

Hi @Jasonvl ,

Could you please share the screenshot to us for analysis? 

In the Power Query (edit queries), the data only have data type instead of data format, we can change it in the data model after "Close & Apply".

Best Regards,

Teige

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.