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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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