Forum Discussion

vvibhakar's avatar
vvibhakar
Frequent Visitor
8 years ago
Solved

Distinctcount for values from multiple colums

Hello, I am trying to analyse all the sourcing projects. We have 10 different columns for each Vendor and its price. I want to have a measure which shows me distinct count of all the vendors combi...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    8 years ago

    vvibhakar

     

    May be a MEASURE like

     

    Measure =
    COUNTROWS (
        DISTINCT (
            UNION (
                VALUES ( TableName[Vendor 1] ),
                VALUES ( TableName[Vendor 2] ),
                VALUES ( TableName[Vendor 3] )
            )
        )
    )