Forum Discussion

DavePowerBI's avatar
DavePowerBI
Frequent Visitor
3 years ago
Solved

Distinct count measure Matrix visual filter issues

Hi, I have the following two measure but the issue I have is when I go to the filter visual for any of these two measures I get the advanced filter option and when I apply the filter Is greater than...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi DavePowerBI,

    You can use the following measure formula on the visual level filter to filter records:

    flag = 
    VAR summary =
        SUMMARIZE (
            ALLSELECTED ( 'Table' ),
            [Country],
            [ID],
            "c_Name", DISTINCTCOUNT ( 'Table'[Name] )
        )
    RETURN
        IF (COUNTROWS ( FILTER ( summary, [c_Name] > 1 && [ID] IN VALUES ( 'Table'[ID] ) ) ) > 0, 1, 0)

    Regards,

    Xiaoxin Sheng