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
bundipapa
Helper I
Helper I

Have measure values above column hierarchy

Hello All,

for a project I would need to have the column hierarchy set to the way, that the measure headers are above the year values in the below example, just like in the Pivot next to the data. I know tableau allows the user to have the measure names above the column names in the hierarchy, so group the values first by the measure and then by the column value, but I haven't found a possibility to do the same in Power BI. Is this possible, or is there a workaround or a custom matrix option to do this?

I would need this structure, with measure names being top

bundipapa_0-1751278289146.png

instead of this with years over measure names

bundipapa_1-1751279063962.png


Thank you for any help!

 

1 ACCEPTED SOLUTION

Hi @bundipapa ,
Thank you for the prompt repsonse @Elena_Kalina  and @Cookistador !

This feature is available in the latest versions (June 2024+). Please check File > Options > Preview features, enable Calculation groups and TMDL model.From the screenshot, I see the TDML is not yet enabled,once enabled restart Power BI, try updating Power BI Desktop.
Here is the doc for your reference:Create calculation groups in Power BI - Power BI | Microsoft Learn 

Hope this helps.
Thank you.

View solution in original post

7 REPLIES 7
v-pagayam-msft
Community Support
Community Support

Hi @bundipapa ,
I hope the suggested information helped for you. If you found any other ,please share it the community and accept your answer as solution.It will be helpful for others who are facing similar issue.If it is not resolved, please feel free to reach out!
Thank you.

Hi @bundipapa,

 

We wanted to check if you had a chance to review our last reply. Let us know if it helped or if you need more guidance, we're always happy to help further.

Thank you.

v-pagayam-msft
Community Support
Community Support

Hi @bundipapa ,
Following up to check whether you got a chance to review the suggestion given.If still facing any issue,feel free to reach out!
Thank you.

bundipapa
Helper I
Helper I

Thank you for the answers, but I don't have that option available and when I wanted to enable it in the settings, I couldn't find it. Currently I seem to be unable to create calculation groups.

bundipapa_2-1751437151779.png

 

bundipapa_0-1751437060515.png

 

bundipapa_1-1751437073803.png

 

Hi @bundipapa ,
Thank you for the prompt repsonse @Elena_Kalina  and @Cookistador !

This feature is available in the latest versions (June 2024+). Please check File > Options > Preview features, enable Calculation groups and TMDL model.From the screenshot, I see the TDML is not yet enabled,once enabled restart Power BI, try updating Power BI Desktop.
Here is the doc for your reference:Create calculation groups in Power BI - Power BI | Microsoft Learn 

Hope this helps.
Thank you.

Elena_Kalina
Solution Sage
Solution Sage

Hi @bundipapa 

As @Cookistador  mentioned we can use a calculation group. You need to follow the following steps:

1 Create a measures

Discount Measure = 
SUM('Table'[Discount])
Margin Measure = 
SUM('Table'[Margin])

 2 Create Calculation Group 

https://learn.microsoft.com/en-us/power-bi/transform-model/calculation-groups

Elena_Kalina_0-1751287253738.png

where

Discount = [Discount Measure]
Margin = [Margin Measure]

3 Create the matrix 

  • Drag the "Product" field to the "Rows" section

  • Drag the "Year" field to the "Columns" section

  • Drag both "[Discount Measure]" and "[Margin Measure]" to the "Values" section

  • Now drag the "[Measures]" field to the "Columns" section above the "Year" field

  • Remove one of the measures from "Values" (e.g., remove "[Margin Measure]")

  • Locate and click the "Expand all down one level in hierarchy" icon (typically appears as a downward arrow or similar icon)

  • This should give you the expected result

Elena_Kalina_2-1751288065611.png

Elena_Kalina_3-1751288109145.png

 

Cookistador
Super User
Super User

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors