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
n3ptune
Helper II
Helper II

Show Only subtotals in matrix and leave blank lower levels.

I have a matrix table with a field coming from dimension table and other 2 fields coming from fact table.

I want a measure which will be visible only in subtotals and grand total level .

When i drill down to lower levels i want them to be empty like the following

 

Dept     Revenue

 

Market             100000

    John                blank

       Maria               blank

Bar                    200000

    Smith              blank

       David               blank

 

I have tried if isinscope but does not work.

 

  

 

1 ACCEPTED SOLUTION
jaideepnema
Solution Sage
Solution Sage

Hi @n3ptune ,

I again tried to replicate with the following data:

jaideepnema_0-1622616026700.png

In this scenario for Category A we have only one sub category A1. I have created the following measure:

Value_Total = IF(ISFILTERED('Table'[Level 2]),BLANK(),sum('Table'[Value]))
 
Which gives me the following output:
jaideepnema_1-1622616114080.png

Please accept this as a solution if your question has been answered !!

Appreciate a Kudos 😀

View solution in original post

5 REPLIES 5
mohammedadnant
Impactful Individual
Impactful Individual

Hi @n3ptune 

 

please try isinscope DAX as explained in this video

https://youtu.be/926alfqFhMs

 

Thanks & Regards,

Mohammed Adnan

Learn Power Platform from my YouTube Channel TAIK18 click on the name

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!

Thanks & Regards,
Mohammed Adnan
Learn Power BI: https://www.youtube.com/c/taik18
jaideepnema
Solution Sage
Solution Sage

Hi @n3ptune ,

I again tried to replicate with the following data:

jaideepnema_0-1622616026700.png

In this scenario for Category A we have only one sub category A1. I have created the following measure:

Value_Total = IF(ISFILTERED('Table'[Level 2]),BLANK(),sum('Table'[Value]))
 
Which gives me the following output:
jaideepnema_1-1622616114080.png

Please accept this as a solution if your question has been answered !!

Appreciate a Kudos 😀

amitchandak
Super User
Super User

@n3ptune , Can you share the formula /measure?

Assume revenue is  measure 

You should try like a new measure like

if(isinscope(Table[Dept]), [revenue], blank())

jaideepnema
Solution Sage
Solution Sage

Hi @n3ptune ,
I tried replicating the scenario. Here is the data used in this case:

jaideepnema_0-1622614039287.png

I created another measure as shown below:

Value_Total = IF(HASONEVALUE('Table'[Level2]),BLANK(),sum('Table'[Value]))
This gives the following result:
 
jaideepnema_1-1622614136981.png

 

 Hope that helps !!
 

Please accept this as a solution if your question has been answered !!

Appreciate a Kudos 😀

Yes this is what i tried also as simple example and it works but in my case there is a category which has ONLY one value as subcategory and this is where its breaking.

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.