Forum Discussion

oprzybylski's avatar
oprzybylski
New Member
3 years ago
Solved

find computers without a software installed

I have a simple data set with several rows. Each row has a computer name and the name of a software installed on it, like so: computer1 software1 computer1 software2 computer1 software3 ...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi oprzybylski ,

     

    Here's my solution. Also upload the attachment for your reference.

    1.Create a calculated table using DAX.

    Software = DISTINCT('Table'[Software name])

    2.Create a slicer using the field in the calculated table.

    3.Create a measure for the visual-level filters. Put the measure into the filters and set up show items when the value is 1.

    Measure = 
    VAR _sel =
        SELECTEDVALUE ( 'Software'[Software name] )
    RETURN
        IF (
            CALCULATE (
                MAX ( 'Table'[Computer Name] ),
                FILTER (
                    ALLSELECTED ( 'Table' ),
                    [Software name] = _sel
                        && [Computer Name] = MAX ( 'Table'[Computer Name] )
                )
            )
                = BLANK (),
            1
        )
    

    4.Here's the result. If you want to keep only the computer names, it also works.

                                                                                                                                                             

    Best Regards,

    Stephen Tao

     

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