Matrix Visual with Measure Values in Rows

When using Power BI you may accumulate a number of measures used to perform calculations and display these results in a Matrix visualization. The default format that Power BI will arrange these data fields is to display the measure values in the columns, but what happens if you want to display measure values in rows? This quick guide will document how to perform this with a quick setting change within the visualization.

Default Measure Values in Columns

For this examples we will be using the following dataset:

Product IDCountry Volume  Month 
Product 4Canada      6,9881/1/2020
Product 2United States      2,7171/1/2020
Product 8Mexico      2,7311/1/2020
Product 4Canada      1,8852/1/2020
Product 3United States      3,0942/1/2020
Product 9Mexico      8,6262/1/2020
Product 2Canada      5,2713/1/2020
Product 5United States      3,9193/1/2020
Product 7Mexico      7,1453/1/2020
Product 3Canada      8,8574/1/2020
Product 2United States      7,0374/1/2020
Product 1Mexico      8,0464/1/2020
Product 10Canada      9,8125/1/2020
Product 9United States      9,5475/1/2020
Product 2Mexico      5,6475/1/2020
Product 1Canada      5,7976/1/2020
Product 6United States      2,6106/1/2020
Product 10Mexico      4,1416/1/2020

Even though its not required for the purpose of this example we will create two new measures to sum the volume of Product 2 and 3 using the Calculate() syntax.

Product 2 = CALCULATE(SUM(Sheet1[Volume]),Sheet1[Product ID]="Product 2") 
Product 3 = CALCULATE(SUM(Sheet1[Volume]),Sheet1[Product ID]="Product 3") 

When we create a matrix visual with the Product 2, Product 3 and Month variables Power BI will default the visual to display the measure values in columns.

How to display measure values in rows with Power BI Matrix visual

You will notice that if you try move the Product 2 and Product 3 measures into the rows field, they will stay in the values field.

How to display measure values in rows with Power BI Matrix visual

Measure Values in Rows

To allow us to properly display the month values across the top of the matrix and the measure values in the rows we simply navigate over to the format tap of the selected visual, select the values section and click show on rows.

How to display measure values in rows with Power BI Matrix visual

You will notice that the measures automatically move on the rows and provide the desired formatting.

How to display measure values in rows with Power BI Matrix visual