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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors