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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
PierreCA
Resolver I
Resolver I

Hide total in a matrice

Hello, 

I use a mactrice to report textual data. 

As depicted in the picuture, I dont' want a "sum" of the values by each Entité or date.  

So far, I removed subtotals options, but with very limited effect. 

I want the values to stay with its line and stay invisible otherwise. 

PierreCA_1-1720617510223.png


How can I set that?

 

1 ACCEPTED SOLUTION

After many experimentations, the best solution was to use Inscope to test whether or not the returned value is at the right hierachy level. If not, the formula returns nothing in the matrix, as expected.


Whitout Inscope

PierreCA_1-1721134628537.png


With Inscope

PierreCA_2-1721134725449.png

 

datesRetournee = 

VAR idNotification = SELECTEDVALUE (Notification[Id])
VAR dateNotificationTrouvee = 

        CALCULATE( IF(ISINSCOPE(Notification[Id]), MINX( FILTER(Notification, Notification[Id]=idNotification), Notification[dateNotification])))

RETURN

dateNotificationTrouvee



View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

@PierreCA One option would be to use HASONEVALUE in a measure that is used to conditionally format the text to the background color if there is not one value and if there is display it in white.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hello @Greg_Deckler ,

Thanks for your swift response. 

Do you have an exemple of your proposition?

After many experimentations, the best solution was to use Inscope to test whether or not the returned value is at the right hierachy level. If not, the formula returns nothing in the matrix, as expected.


Whitout Inscope

PierreCA_1-1721134628537.png


With Inscope

PierreCA_2-1721134725449.png

 

datesRetournee = 

VAR idNotification = SELECTEDVALUE (Notification[Id])
VAR dateNotificationTrouvee = 

        CALCULATE( IF(ISINSCOPE(Notification[Id]), MINX( FILTER(Notification, Notification[Id]=idNotification), Notification[dateNotification])))

RETURN

dateNotificationTrouvee



Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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