Forum Discussion

MP-iCONN's avatar
MP-iCONN
Resolver I
3 years ago
Solved

Matrix Table Filter issue

My scenario is I have a matrix table that consists of a the following rows:   Work Order ID | Parent Item ID |  Component Item ID |  Required Date    Then some other Values but the most import va...
  • DataInsights's avatar
    3 years ago

    MP-iCONN,

     

    Try this calculated column, which can be used as a matrix filter:

     

    Work Order Status = 
    VAR vWorkOrderID = Table1[Work Order ID]
    VAR vNegativeRows =
        FILTER (
            Table1,
            Table1[Work Order ID] = vWorkOrderID
                && Table1[Available Comp] < 0
        )
    VAR vResult =
        IF ( ISEMPTY ( vNegativeRows ), "OK", "SHORT" )
    RETURN
        vResult

     

     

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi MP-iCONN 

    You can create a new column:

    Column = VAR A=FILTER('Table','Table'[Work Order]=EARLIER('Table'[Work Order])&&'Table'[Available]<0)
    RETURN IF(COUNTAX(A,[Work Order])>0,"Short","Ok")

    Best Regards,

    Yolo Zhu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.