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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

How to filter parent and all child rows in matrix table using status of child rows

Hello,

 

I have this data and I visualized it using a matrix table. 

TransactionInvoiceStatus
NO-11297NO-11297-1Void
NO-11297NO-11297-2Invoice Paid
NO-11297NO-11297-3Invoice Sent
NO-11301NO-11301-1Invoice Paid
NO-11301NO-11301-2Invoice Paid
NO-11303NO-11303-1Invoice Paid
NO-11303NO-11303-2Invoice Paid
NO-11305NO-11305-1Invoice Paid
NO-11305NO-11305-2Invoice Paid
NO-11308NO-11308-1Invoice Paid
NO-11308NO-11308-2Invoice Sent
NO-11309NO-11309-1Invoice Paid
NO-11309NO-11309-2Invoice Sent

 

I am trying to filter the table to show parent transactions + all their child rows if subtotal of COLUMN > 0

Column = IF(data2[Status] = "Invoice Paid", 0, 1)

--> hide all in yellow highlight
cvld_2-1645042495909.png

When trying to use the COLUMN as filter, it only filters those with Invoice Sent or Void values. I need to see all children of these parent transactions

cvld_3-1645088737803.png

 

Thank you in advance!

 

1 ACCEPTED SOLUTION
Jos_Woolley
Solution Sage
Solution Sage

Hi,

Use a measure instead:

MyMeasure1 =
CALCULATE(
    COUNTROWS( data2 ),
    data2[Status] <> "Invoice Paid",
    ALLEXCEPT(
        data2,
        data2[Transaction]
    )
)

Drag it into the filters pane and set it to greater than 0.

Regards

View solution in original post

3 REPLIES 3
Jos_Woolley
Solution Sage
Solution Sage

You're welcome!

 

Cheers

Jos_Woolley
Solution Sage
Solution Sage

Hi,

Use a measure instead:

MyMeasure1 =
CALCULATE(
    COUNTROWS( data2 ),
    data2[Status] <> "Invoice Paid",
    ALLEXCEPT(
        data2,
        data2[Transaction]
    )
)

Drag it into the filters pane and set it to greater than 0.

Regards

Anonymous
Not applicable

Excellent! Thank you so much, i really appreciate it!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors