Forum Discussion

SanjeevKumar's avatar
SanjeevKumar
Frequent Visitor
4 years ago
Solved

Need Help: How to get the Distinct Count value based on the multiple Slicer Filters selection

I Have multiple Slicer Filters for Different CEO Types. Now I need to get the distinct count for the CEOs based on the multiple CEO selection. Ex:  CEO - A CEO Minus 1 = A,B,C,D CEO Minus 2 = B...
  • daXtreme's avatar
    4 years ago
    [# CEO] =
    // This measure will also work if you CEO's
    // are in different tables instead of one, T.
    var CeoMinus1 = values( T[CEO minus 1])
    var CeoMinus2 = values( T[CEO minus 2])
    ... // means: add more of these if you need in the same fashion
    var DistinctCeos = 
        SUMX(
            DISTINCT(
                union(
                    CeoMinus1,
                    CeoMinus2,
                    ... // same as before...
                )
            ),
            1
        )
    return
        DistinctCeos
  • SanjeevKumar's avatar
    4 years ago

    Thanks daXtreme for your valuable time in providing the solution.