Forum Discussion

Lednum861's avatar
Lednum861
New Member
9 years ago
Solved

Count distinct text in different columns

Hi I'm very new to BI. I have my database setup similar to the table below. I want to use 2 tools in BI. One is a slicer and the other is a visual that counts and provides a total. I know how to use...
  • Vvelarde's avatar
    9 years ago

    Lednum861

     

    Hi, try using this Dax:

     

    Measure =
    COUNTROWS (
        DISTINCT (
            UNION (
                FILTER ( VALUES ( Table1[MFR1 Country] ), Table1[MFR1 Country] <> BLANK () ),
                FILTER ( VALUES ( Table1[MFR2 Country] ), Table1[MFR2 Country] <> BLANK () )
            )
        )
    )