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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors