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
Anonymous
Not applicable

Apply filter on some rows to not show the rows in Matrix

Hi all,

 

I am looking for a solution to the following problem:

willemynjansen_0-1676020627434.png

I want the yellow rows to dissapear, because there is no value in "FTE Other Roles". 

The point is, in some cases the row subtotal too has no value in FTE Other Roles (as below). But I want to keep that rows.

willemynjansen_1-1676020868440.png

So in the image above, I want to keep the yellow rows, but remove the rows which are in the red area.

 

Can somebody help me with a DAX solution? I've tried to do something with IF statements, but its not good enough. 

 

Thanks!

2 REPLIES 2
FreemanZ
Super User
Super User

hi @Anonymous 

try like:
FTE Contract =
IF(
    [FTE OtherRoles] = BLANK(),
    BLANK(),
    [Your original code for FTE Contract]
)

other measures like FTE Teaching and CheckBlank are similar.

Anonymous
Not applicable

Hi @FreemanZ,

Thanks for your quick response! It's almost what I'm looking for. Is there something that can be done to not apply it to the subtotals?

 

Now all employees with no value in "Other Roles" will dissapear. But I want to keep all employees in, and apply it only to the cell values - in the image below, Council/Committee; DI Hours, Management etc. And not on the row BA-Team 3.

willemynjansen_0-1676026822238.png

Hope you can help!

 

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.

Top Solution Authors