Forum Discussion

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

Show visual indicator when field has certain values

I have a table that will have a master item number (Parent Item ID) and then a child part number (Component Item ID).  These are all tied to work orders which is another column in my table.  I am try...
  • DataInsights's avatar
    DataInsights
    4 years ago

    MP-iCONN,

     

    I got it to work by creating a measure instead of a calculated column:

     

    Work Order Status = 
    VAR vCountShort =
        CALCULATE (
            COUNT ( BOM[Comp Short] ),
            ALLEXCEPT ( WKO, WKO[Work Order ID] ),
            BOM[Comp Short] = "Short"
        )
    VAR vResult =
        IF ( vCountShort > 0, "Short", "OK" )
    RETURN
        vResult