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

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