cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper IV
Helper IV

Is it possible to have Pivot Table with nested with multiple facts for the row?

Hi there,

 

Hope everyone enjoyed there weekend.  Quick question for you all.  Perhaps I missing the visualization and/or flag, but is it possible to have a pivot table where key data facts are nested on the initial column with additional columns listed for other data facts?  

 

I know there a flag called Stepped Layout that lets you make the rows "nested" where they all show under one column.  You can also turn this off and as you drill deeper in rows additional columns appear.  However, I want the nested to be there for certain key values, but would just like the rest of the table to show up as seperate columns.  To better explain this I drew a picture...  In the example below, I'd like to know how to make Email / Phone appear while Employee is under Department in the same column...

 

As always, any help is much appreciated!  Thank you all!  sample-delete.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Is it possible to have Pivot Table with nested with multiple facts for the row?

Hi @bflury ,

 

This option of having some columns in the step layout and other not is not possible. Believe that this is a look and feel problem correct?

One option can be to add the E-mail and Phone to the values part of the table, however you would need to do the following:

 

Create a table with the names of the values you need adding the E-mail and phone something similar to:

MeasureSelection =
SWITCH (
    TRUE ();
    SELECTEDVALUE ( 'Table'[Measure] ) = "Email"; IF ( HASONEVALUE ( Table[Name] ); MAX ( Table[Email] ); BLANK () );
    SELECTEDVALUE ( 'Table'[Measure] ) = "Phone"; IF ( HASONEVALUE ( Table[Name] ); MAX ( Table[Phone] ); BLANK () );
    SELECTEDVALUE ( 'Table'[Measure] ) = "ValueA"; SUM ( Table[ValueA] );
    SELECTEDVALUE ( 'Table'[Measure] ) = "ValueB"; SUM ( Table[ValueB] )
)

Now just use the measure column on the column headers and the measureselection on values.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog:

Power BI em Português





View solution in original post

3 REPLIES 3
Highlighted
Super User IX
Super User IX

Re: Is it possible to have Pivot Table with nested with multiple facts for the row?

@bflury , if you looking for a hybrid table like this. Vote for idea : https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/39773011-hybrid-table

Hybrid.png

 

You have check for custom visual or manager with measures, which is less dynamic option



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Highlighted
Super User III
Super User III

Re: Is it possible to have Pivot Table with nested with multiple facts for the row?

Hi @bflury ,

 

This option of having some columns in the step layout and other not is not possible. Believe that this is a look and feel problem correct?

One option can be to add the E-mail and Phone to the values part of the table, however you would need to do the following:

 

Create a table with the names of the values you need adding the E-mail and phone something similar to:

MeasureSelection =
SWITCH (
    TRUE ();
    SELECTEDVALUE ( 'Table'[Measure] ) = "Email"; IF ( HASONEVALUE ( Table[Name] ); MAX ( Table[Email] ); BLANK () );
    SELECTEDVALUE ( 'Table'[Measure] ) = "Phone"; IF ( HASONEVALUE ( Table[Name] ); MAX ( Table[Phone] ); BLANK () );
    SELECTEDVALUE ( 'Table'[Measure] ) = "ValueA"; SUM ( Table[ValueA] );
    SELECTEDVALUE ( 'Table'[Measure] ) = "ValueB"; SUM ( Table[ValueB] )
)

Now just use the measure column on the column headers and the measureselection on values.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog:

Power BI em Português





View solution in original post

Highlighted
Helper IV
Helper IV

Re: Is it possible to have Pivot Table with nested with multiple facts for the row?

@MFelix Thanks Miguel!  I actually just came on hear to let others know of a way I had figured out earlier today (honestly by mistake).  It was similar to your approach of using it as a value (although I just used the max without the if statement).  However, it wasn't perfect because it repeated with each column total.  Nevertheless, I'll give your version a try tomorrow to see if that makes it a bit cleaner.

 

@amitchandak, definitely just voted.  Really shocked this isn't a basic feature of the product.

 

-Brett

Helpful resources

Announcements
Meet the 2020 Season 2 Power BI Super Users!

Meet the 2020 Season 2 Power BI Super Users!

Find out who's part of the program this season, and welcome the new Super Users.

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Featured Data Story of The Month

Featured Data Story of The Month

All Data Stories Gallery contributions are reviewed for each month. We select a contribution and feature the community member the following month.

Power BI Dev Camp - Developing with .NET Core

Power BI Dev Camp - Developing with .NET Core

Learn how to develop custom web applications for Power BI using .NET Core 3.1 and .NET 5.

Top Solution Authors
Top Kudoed Authors