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

See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap

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
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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