Forum Discussion
vvibhakar
8 years agoFrequent Visitor
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...
- 8 years ago
May be a MEASURE like
Measure = COUNTROWS ( DISTINCT ( UNION ( VALUES ( TableName[Vendor 1] ), VALUES ( TableName[Vendor 2] ), VALUES ( TableName[Vendor 3] ) ) ) )
sqlguru448
8 years agoHelper III
please try below
= DISTINCTCOUNT(Vendor1) + DISTINCTCOUNT(Vendor2) + DISTINCTCOUNT(Vendor3)
- Zubair_Muhammad8 years agoCommunity Champion
May be a MEASURE like
Measure = COUNTROWS ( DISTINCT ( UNION ( VALUES ( TableName[Vendor 1] ), VALUES ( TableName[Vendor 2] ), VALUES ( TableName[Vendor 3] ) ) ) ) - vvibhakar8 years agoFrequent Visitor
I had tried already, but it adds up the distinct count. In the given example, the final value still shows 21.