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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
kathrin_44
Frequent Visitor

Filtering Matrix does not work

Hello,

I have a problem when i Want to filter my Matrix.

This is the matrix i have:

 

matrix.PNG

 

The column "__days left" is  a measure: __days left =

var __all sub = CALCULATE (SELECTEDVALUE(Tabelle22[Days left]), FILTER(Tabelle22, NOT(ISBLANK(Tabelle22[Level3]))))

var all tasks = CALCULATE (SUM(Tabelle22[Days left]), FILTER(Tabelle22, ISBLANK(Tabelle22[Level3])), REMOVEFILTERS (Tabelle22[Level3]))

return  IF(ISINSCOPE(Tabelle22[Level3]), [__all sub], [__all tasks])
 
I want to filter by days left. using the originak days left column does not filter the matrix right when the Tasks are closed. It seems that the filter cannot reach this Level when the hierachynis closed. But how do I filter by days left? can i filter by the measure??
 
I am so confused and thankful for any tips!
 
Thank you!
 
2 REPLIES 2
freginier
Super User
Super User

Hi @kathrin_44,

Thank you for sharing your question! This is a known limitation when filtering a matrix visual by a DAX measure, especially one that uses ISINSCOPE. When rows are collapsed in a hierarchy, Power BI evaluates the measure at the parent level, which can cause unexpected behavior with filters.

Here are a few things you can try:

1. Use a visual-level filter on the measure: In the Filters pane, drag the __days left measure to the "Filters on this visual" section and set your condition. Note that this filters at the row level that is currently visible, not at sub-task level when collapsed.

2. Add a calculated column instead: If you need to filter on a fixed numeric value, consider creating a calculated column in your table and use that as your filter. Calculated columns are evaluated row by row at import time and filter more reliably.

3. Use CALCULATE with REMOVEFILTERS: If you want sub-tasks to be visible based on their days-left value even when collapsed, consider restructuring your measure to propagate the filter context down to the lowest level.

Could you clarify what filtering behavior exactly you expect — for example, should rows disappear from the matrix when days left = 0, or should they simply show 0?

Hope this helps!

freginier
Super User
Super User

Hi @kathrin_44,

Thank you for sharing your question! This is a known limitation when filtering a matrix visual by a DAX measure, especially one that uses ISINSCOPE. When rows are collapsed in a hierarchy, Power BI evaluates the measure at the parent level, which can cause unexpected behavior with filters.

Here are a few things you can try:

1. Use a visual-level filter on the measure: In the Filters pane, drag the __days left measure to the "Filters on this visual" section and set your condition. Note that this filters at the row level that is currently visible, not at sub-task level when collapsed.

2. Add a calculated column instead: If you need to filter on a fixed numeric value, consider creating a calculated column in your table and use that as your filter. Calculated columns are evaluated row by row at import time and filter more reliably.

3. Use CALCULATE with REMOVEFILTERS: If you want sub-tasks to be visible based on their days-left value even when collapsed, consider restructuring your measure to propagate the filter context down to the lowest level.

Could you clarify what filtering behavior exactly you expect — for example, should rows disappear from the matrix when days left = 0, or should they simply show 0?

Hope this helps!

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.