How do you transpose a table in Power BI? (With example)

Transposing a table in Power BI is the process of rotating the rows and columns of a table, essentially flipping it horizontally. This can be done by using the “Transpose” option under the “Transform” tab in the Power Query Editor. For example, if you have a table with columns for different months and rows for sales data, transposing the table would result in a new table with columns for each type of sale and rows for each month. This can be useful when trying to analyze data in a different perspective or when creating visualizations.


The easiest way to transpose a table in Power BI is to use the Transpose feature in the Transform tab in the Power Query Editor.

The following example shows how to use this feature in practice.

Example: How to Transpose a Table in Power BI

Suppose we have the following table in Power BI named my_data that shows the total sales and returns at some retail store during six consecutive years:

Suppose that we would like to transpose the table from a long format to a .

In other words, we would like to display the Sales and Returns along the rows and the Years along the columns.

To do so, click the Home tab along the top ribbon, then click the Transform data icon:

This will bring up the Power Query Editor.

Next, click the Transform tab, then click dropdown arrow under Use First Row as Headers, then click Use Headers as First Row:

This will cause the headers to be used as the first row:

Next, click the Transform tab, then click the Transpose icon:

Next, click the Transform tab, then click dropdown arrow under Use First Row as Headers, then click Use First Row as Headers:

This will cause the years in the first row to be used as the column names:

Once you exit out of the Power Query Editor, a message box will appear that asks if you’d like to apply your changes.

Once you click Yes, the original table will be transposed:

Additional Resources

The following tutorials explain how to perform other common tasks in Power BI:

x