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
WilfredMeyboom
Frequent Visitor

Adding measure to matrix which doesn't get sliced

Hi all,

 

I'm trying to create a matrix in which the user can see a measure per month for a running year with a total column, combined with a column that shows the year to date total. Something like this:

 

image.png

 

 

 

I have created the measure for running year, which works as intended. And I can create a measure for the YTD calculation but when I add that to the matrix it get sliced automatically which I don't want. Hiding extra columns is not really an option since the user will export the matrix to excel and doesn't want to have any extra columns show up there.

Is there a way to tell the matrix it should slice one measure but not the other?

 

Any suggestions and / or other solutions are appreciated.

 

 

 

2 REPLIES 2
PaulDBrown
Community Champion
Community Champion

@WilfredMeyboom 

 

You can try this measure:
Total YTD = IF(ISINSCOPE(Table[YearMonth]), BLANK(), [Total YTD])

 

The columns will still be there (though you can reduce their width) but there will be no values displayed





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






It's a nice trick but won't the columns also show up in the export?

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.