Skip to main content




Generally, when you load a table from any data source, Power BI automatically detects the data type of a column. However, there may be some situations where Power BI could go wrong.

For example, you can consider quantities, values, or even dates as text. In these situations, you can use the Power BI change data types of a column option. Let me show you how to change the data types of a column in Power BI with an example.

How to change the data types of a column in Power BI

To demonstrate this Change of data types of a column, we will use the Excel table that we imported in the article Enter data.

To change the data types of any column, click the Edit queries option under the Home tongue.

change-data-types-of-a-column-in-power-bi-1-8344715<>change-data-types-of-a-column-in-power-bi-1-8344715

Clicking Edit queries The option opens a new window called Power BI Editor de Power Query.

In the screenshot below, you can see the Annual Revenue, Sales, and Hire Date columns loaded as text.

change-data-types-of-a-column-in-power-bi-2-7962488

There are a couple of ways to change the data types of the columns.

First approach to change the data types of a column

Select the column for which you want to change the data type. Then click on the left corner of the column header (currently represents the ABC text)

change-data-types-of-a-column-in-power-bi-3-8217950

Clicking on that position opens a drop-down list of supported data types. Select the type of data that suits your data. Here, we are selecting the integer.

change-data-types-of-a-column-in-power-bi-4-7202385

Changing the data type of a column opens the following pop-up window. Click the Replace Current button.

change-data-types-of-a-column-in-power-bi-5-7822440

Now you can see that the Annual Income heading shows 123 (integer), not ABC (text)

change-data-types-of-a-column-in-power-bi-6-5878748

Second approach to change the data types of a column in Power BI

Select the name of the column in which you want to modify the data type and click the Data Type button on the Home tab

change-data-types-of-a-column-in-power-bi-7-4498220

Shows you the drop-down list of available data types. For the purpose of demonstration, we are selecting a fixed decimal number.

change-data-types-of-a-column-in-power-bi-8-4182918

This time we will select Add new step. It means that this type of change column is added as a new step in Applied Steps.

change-data-types-of-a-column-in-power-bi-9-5011933

As you can see in the screenshot below, you changed the data type of the Sales column and added a new step under Applied Steps.

change-data-types-of-a-column-in-power-bi-10-4779445

Third approach to change the data types of a column in Power BI

Select the column for which you want to change the data type and right-click to open the context menu. Select the Exchange rate and then the data type of the list. For now, we are selecting the integer.

change-data-types-of-a-column-in-power-bi-11-6182417

Don't forget to hit the Close and apply option under the Home tab to apply these changes.