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
Syndicate_Admin
Administrator
Administrator

Hide certain sub-rows of a matrix table

Dear Ones,

Along with greeting, I would like a consultation on the subject at hand.

I have the following table type Matrix, and when it comes to showing the sub-rows, I want to hide certain data or put them white because in reality I am interested only in the total value of the top row.

Row value (of interest):

Market size N° Competitors

Large >3

Hide the subrows:

Market size N° Competitors

Low 0 to 1

Big 2-3

Low 0 to 1

Big 0-1

The other data such as Total Value and Price I am interested in seeing, but Market Size and Competitors are not.

MatiasBI1986_0-1684859800728.png

The DAX formulas I occupied:

Market Size:

Market Size = SWITCH(TRUE(),
[Total value]<625000,"Low",
[Total value]<1250000,"Average",
[Total Value]<100E100,"Large")

N° Competitors:

N° Competidores = SWITCH(TRUE(),
[Count]<2, "0 to 1",
[Count]<4, "2 to 3",
[Count]<1E10, ">3")

Thank you very much in advance.

Best regards!

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @MatiasBI1986 

 

You can modify your current measures [Market Size] and [N° Competitors] similar to below. Use ISFILTERED function to decide whether a measure is evaluated on the child level (e.g. the [Product] column in my example). When it is on the child level, it will return blank. When it is on the subtotal or total level, it will return the result you have interest in. 

New measure = IF(ISFILTERED('Table'[Product]),BLANK(),[Old measure])
Market Size = 
IF(ISFILTERED('Table'[Product]),BLANK(),
SWITCH(TRUE(),
SUM('Table'[Total Value])<625000,"Low",
SUM('Table'[Total Value])<1250000,"Average",
"Large")
)

vjingzhang_0-1684997778231.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Dear

It was just the solution I was looking for.

Thanks a lot!

v-jingzhang
Community Support
Community Support

Hi @MatiasBI1986 

 

You can modify your current measures [Market Size] and [N° Competitors] similar to below. Use ISFILTERED function to decide whether a measure is evaluated on the child level (e.g. the [Product] column in my example). When it is on the child level, it will return blank. When it is on the subtotal or total level, it will return the result you have interest in. 

New measure = IF(ISFILTERED('Table'[Product]),BLANK(),[Old measure])
Market Size = 
IF(ISFILTERED('Table'[Product]),BLANK(),
SWITCH(TRUE(),
SUM('Table'[Total Value])<625000,"Low",
SUM('Table'[Total Value])<1250000,"Average",
"Large")
)

vjingzhang_0-1684997778231.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

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.