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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
mollycat
Helper II
Helper II

Matrix filter only including child values

Hello,

 

I have a Matrix which has a Measure that calculates a value at both the Parent and Child levels:

 

Record IDTitle (calculated via Measure)
Record A (Parent)Title A
Record A expanded to show: Record B (Child)Title B
Record B (Parent)Title B

 

In the Matrix, the Title is being reflected as expected, both for the Parent and Child records. But, if I apply a filter where Title = Title B, only Record A is returned. Record B at the Parent level is not listed. It seems the Measure filter is only being applied to the Child levels.

 

Measure:

Title =
SWITCH(
    TRUE(),
    ISINSCOPE('Parent + Child Table'[CHILD ID]) && MAX('Parent + Child Table'[CHILD ID])<>BLANK(),
        CALCULATE(
            MAX('Attributes Table'[TITLE]),
            TREATAS(VALUES('Parent + Child Table'[CHILD ID]),'Attributes Table'[PARENT ID]),
            ALLCROSSFILTERED('Attributes Table')
        ),
    NOT ISINSCOPE('Parent + Child Table'[CHILD ID]),
        CALCULATE(
            MAX('Attributes Table'[TITLE]),
            TREATAS(VALUES('Parent + Child Table'[PARENT_ID]),'Attributes Table'[PARENT ID]),
            ALL('Parent + Child Table'[PARENT ID])
    ))
 
Any help is GREATLY appreciated.
21 REPLIES 21

@mollycat a possible workaround is to adjust your data model or use disconnected tables to preserve parent rows, but it depends on your exact scenario.

Did it work? 👍 A kudos would be appreciated
🟨 Mark it as a solution to help spread knowledge 💡

 

🟩 Follow me on LinkedIn

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors