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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Line14Garr0
New Member

How can I prevent a Power BI data flow from automatically changing the data type of a column

Hi, I'm creating a dataflow that consolidates several files with dates, but my problem is that the dataflow is automatically changing those dates to text type, which affects my data. Does anyone have a solution for this?

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Line14Garr0 ,

You may try Json.FromValue - PowerQuery M | Microsoft Learn and Binary.ToText - PowerQuery M | Microsoft Learn to convert it to String data type, then use Binary.FromText - PowerQuery M | Microsoft Learn and Json.Document - PowerQuery M | Microsoft Learn to convert it back.

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Line14Garr0 ,

You may try Json.FromValue - PowerQuery M | Microsoft Learn and Binary.ToText - PowerQuery M | Microsoft Learn to convert it to String data type, then use Binary.FromText - PowerQuery M | Microsoft Learn and Json.Document - PowerQuery M | Microsoft Learn to convert it back.

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Line14Garr0
New Member

And also when I change the data to tipe date my dataflow don´t refresh correctly 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.