Display DAX Measures in a Matrix on Rows

November 13, 2020
Denis Selimovic
Data visualization, DAXcomment 3Created with Sketch Beta.2 comments

This post is also available in: German


Update March 2022: Screenshot of the new format pane added

Measures are the best way to calculate your key figures in Power BI. In a matrix, however, these can normally only be displayed as values and not at row or column level. However, sometimes you need them exactly at the row level.

Display contribution margin calculation at row level

An example I came across recently was the presentation of a contribution margin calculation. The individual items should be displayed below each other at row level. The default view, when displaying only the Measures, is horizontally aligned:

Standard display of measures in matrix in Power BI
Standard display of measures in matrix in Power BI

Even if you explicitly drag the measures onto the rows, they cannot be displayed at row level:

Measures cannot be dragged onto lines
Measures cannot be dragged onto lines

There is, however, an option which is rather unknown, but which makes this possible very easily: the option “Show on rows” in the Matrix Visual:

Option "Show on rows" enables desired display
Option “Show on rows” enables desired display

In the new format pane you will find the option in the following spot:

Option "Switch values to rows" in new formatting window enables wanted layout
Option “Switch values to rows” in new formatting window enables wanted layout

As soon as this option is activated, the measures are automatically displayed on the X-axis:

Display of measures at row level
Display of measures at row level

In my example, the use of custom visuals was not allowed. Otherwise, there are some other options as an alternative.