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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Vauban
Helper I
Helper I

Matrix hierarchy header's columnar values-want to hide

Hi to all.  I'm really hoping this is a dumb question and easily answered.

Also, as I re-read my story below I've tried to be as excessively clear and probably too wordy.  Just wanted to be understood.  🙂

I have a matrix with date hierarchy.  There are nine columns of grid data.

The grid data shows fine at the lowest level but when I roll up the rows to each hierarchy group I still get grid values.

These row header grid values don't make sense and I want them not to show.

The screen shot says this better.

Example: the lowest level is showing with two rows of data - Jan 17 items 001 and 002.

The nine votes for each of those motions is showing correctly.

But in the top half of the screen shot you can see that I have rolled up the hierarchy so it just shows one line for each date.

Nevertheless, it still shows column values.

These aren't subtotals so, to my knowledge, subtotal commands don't make them disappear.

I don't want to see these values that are in rows Nov 8 and Nov 22.

When I roll up all of November then I end up seeing rows for November and so on.

How do you get Power BI to not show grid values for rollup headers?

Any and all help is greatfully appreciated.

Matrix row header unwanted value example.PNG

1 ACCEPTED SOLUTION

@Vauban -

 

You use it within your Measure something like pseudo:

 

IF(
  ISFILTERED(),
  SUM(),
  BLANK()
)





Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



View solution in original post

4 REPLIES 4
ChrisMendoza
Resident Rockstar
Resident Rockstar

@Vauban -

 

Have you tried something like what the folks over at https://www.sqlbi.com/articles/clever-hierarchy-handling-in-dax/ suggest? I think what you should be shooting for though is asking whether or not the 'heirarchy level should be shown'. Something like ISFILTERED('Calendar'[Day]).

 

Reference - https://docs.microsoft.com/en-us/dax/isfiltered-function-dax






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



Hi Chris.  Honest thanks for those thoughts.  I'm setting this report to just run on a desktop though.  I looked at the isfiltered dax page link you sent and it looked great but is that just for server run efforts?   I've made measures and such but I've never tried to write dax to a desktop matrix before.  I'm probably thinking it's possibly at the desktop level when it is not.  I've googled around trying to read up on this quickly but am missing it.  David

 

@Vauban -

 

You use it within your Measure something like pseudo:

 

IF(
  ISFILTERED(),
  SUM(),
  BLANK()
)





Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



Thank you Chris.

David

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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