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
Vallirajap
Resolver III
Resolver III

Auto-changing datatype option in the Power query editor

Hi Everyone, 

 

I have one doubt in the Power Query editor: is there any option available for changing the column datatype automatically based on the column value? 

 

I know that we use a conditional column to reach the goal. Apart from that, are there any keys?

 

Thanks in advance..!

1 ACCEPTED SOLUTION
m_dekorte
Super User
Super User

Hi @Vallirajap,

 

There is an option to change a column's data type automatically. It is located on the Transform tab and called "Detect Data Type". However, there is a caveat: because it only scans the top 200 rows, you will always have to validate that it guessed the types correctly...

 

Read all about it here.

 

I hope this is helpful

View solution in original post

2 REPLIES 2
m_dekorte
Super User
Super User

Hi @Vallirajap,

 

There is an option to change a column's data type automatically. It is located on the Transform tab and called "Detect Data Type". However, there is a caveat: because it only scans the top 200 rows, you will always have to validate that it guessed the types correctly...

 

Read all about it here.

 

I hope this is helpful

Hi @m_dekorte,

Thank you for your reply.

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.