cancel
Showing results 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

Frequent Visitor

## How to hide values when expanding subcategories in Matrix

Hi everyone,

Is it possible to hide values of a column as we expand a matrix? Here's what my matrix looks like, I trying to hide the 100%:

This is obviusly because if the measure I created ("Vacancy Rate") is only accounting the rows in which status="Vacant". Here's my measure:

Vacancy Rate = DIVIDE(COUNTROWS(FILTER(Table,Table[Status]="Vacant")),COUNTROWS(Table))
Maybe the solution is to modify the DAX for the measure.

Michelle

1 ACCEPTED SOLUTION
Solution Sage

Hi:

Can you try

Vacancy Rate
var  VR =DIVIDE(COUNTROWS(FILTER(Table,Table[Status]="Vacant")),COUNTROWS(Table))
return
CALCULATE(VR, Table[Department] <> "vacant")

5 REPLIES 5
Community Champion
``````var __vacancy =
DIVIDE(
COUNTROWS( FILTER( Table, Table[Status] = "Vacant" ) ),
COUNTROWS( Table ),0
)
return if(__vacancy<1,__vacancy)``````

 Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! DAX is simple, but NOT EASY!
Frequent Visitor

Thanks! this worked!

Solution Sage

Hi:

Can you try

Vacancy Rate
var  VR =DIVIDE(COUNTROWS(FILTER(Table,Table[Status]="Vacant")),COUNTROWS(Table))
return
CALCULATE(VR, Table[Department] <> "vacant")

Regular Visitor

How would that formula look like if the row label was not always showing "vacant" but was another field instead in a secondary expandable row (so not a value of department)?

Frequent Visitor

Hmm this didn't work, but thanks anyways!

Announcements

#### 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.

#### Power BI Monthly Update - June 2024

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

#### Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors