Forum Discussion

nikki11's avatar
nikki11
Regular Visitor
2 years ago
Solved

Showing Unique values based on multiple criteria

I am currently trying to create a visulisation where there are unique occurances in my data.   So in the example below, the visual would be filtered only showing clients that have one assignment as...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi nikki11 ,

    I created a sample pbix file(see the attachment), please check if that is what you want.

    1. Create a measure as below

    Flag = 
    VAR _tab =
        SUMMARIZE (
            'Table',
            'Table'[Client],
            "@assign",
                CALCULATE (
                    DISTINCTCOUNT ( 'Table'[Assignment] ),
                    ALLEXCEPT ( 'Table', 'Table'[Client] )
                )
        )
    RETURN
        IF ( SUMX ( _tab, [@assign] ) = 1, 1, 0 )

    2. Create a table visual and apply a visual-level filter with the condition(Flag is 1)

    Best Regards