Forum Discussion
Sum of Distinct Count by column
- 10 years ago
You could create a new column that concatenates Term and ID and then create a measure that does a DISTINCTCOUNT of that column. This measure should react appropriately to slicers and such. So:
Column
TermIDs =CONCATENATE([Term],[ID])
Measure
DistinctTermIDs = DISTINCTCOUNT([TermIDs])
You could create a new column that concatenates Term and ID and then create a measure that does a DISTINCTCOUNT of that column. This measure should react appropriately to slicers and such. So:
Column
TermIDs =CONCATENATE([Term],[ID])
Measure
DistinctTermIDs = DISTINCTCOUNT([TermIDs])
- burak10 years agoFrequent Visitor
I am surprised how fast you replied.
Thank you so much!
- wharding10 years agoRegular Visitor
So how would you filter out a distict value?
So in the example above how would you say return the distinct values = SPRING15
- Buminda9 years agoFrequent Visitor
Thanks , this helped me.
- vedran9 years agoFrequent Visitor
Hello,
I would like to ask question as a continue of your answer, when we calculate a measure
DistinctTermIDs = DISTINCTCOUNT([TermIDs])
How to put this measure result in new column for every product (row).
Example, we have as a product name
Spring15
Spring15
Spring16
And create DISTINCTCOUNT measure that we can manually filter and for Spring 15 Total will return 2.
How to put this value 2 in the same table, near each item?
Result should be
ProductName No. (from measure)
Spring15 2
Spring15 2
Spring16 1
Thank you in advance