Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
rodneyc8063_1
Helper V
Helper V

Pivot Table/Matrix - Can I use values as a column heading?

Hopefully this is a silly question with an easy answer 

 

I am trying to re-create a pivot table from OBIEE - I understand the equivalent to a pivot table in Power BI is a matrix visual.

 

I created the following matrix below

 

TEST.jpg

What I actually want to do is have the columns [Application Count] and [Highest Application Count] as the headers, and the TERM_DESC as a sub heading like this table below

 

test2.jpg

 

Basically I was wondering whether, with a matrix visual, is it possible for me to move around some things to get different groupings with header columns?

 

Thanks in advance

2 REPLIES 2
Anonymous
Not applicable

Hi, one option you could use is to employ a SWITCH statement with a measures list table to get your measures in your pivot to be shown as you need.  

 

1. Create a small table with 2 rows - 

Measure                              Order

Application Count               1

Highest Application Count  2

 

2. Create a Selected Measure  = SELECTEDVALUE([Measure])

 

3. Create the Switch Statement for the Measures you want to put into the pivot. 

Magic Measure = SWITCH(SelectedMeasure, "Application Count", [Application Count], "Highest Application Count", [Highest Application Count]) 

 

4. Add the Magic Measure to your Values, 

 

5. Add the [Measure] Column from your Measures table to the Columns above the Date. 

 

This is a useful technique to treat measures as column or row headings and gives slightly more flexibility to your pivoting. 

Hi @Anonymous 

 

Im not sure I quite follow your idea, as I tried it and it didnt seem to work as I was hoping

 

If its not too much to ask, would you possibly have a working example of your suggestion?

 

I would upload my data to let others play with it but Im using direct query at the moment so it would be messy for me to upload a sample 

 

Thank you for the suggestion

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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