Forum Discussion
MagnusJ
8 years agoFrequent Visitor
Distinctcount across tables with range as condition
I am trying to perform a Distinctount with range as condition across two tables. However, since I have no relations between the tables I am having trouble finding a solution. An example below. I want...
- Anonymous8 years ago
HI MagnusJ,
You can use below formula to check the matched unique product count:
Unique Count = CALCULATE(COUNTROWS(VALUES('Product'[Product])),FILTER(ALL('Product'),[Xvalue] in GENERATESERIES([MinX],[MaxX],1) && [Yvalue] in GENERATESERIES([MinY],[MaxY],1)))Result
Notice: I named table1 to range, table2 to product.
Regads,
Xiaoxin Sheng
Anonymous
8 years agoNot applicable
HI MagnusJ,
You can use below formula to check the matched unique product count:
Unique Count = CALCULATE(COUNTROWS(VALUES('Product'[Product])),FILTER(ALL('Product'),[Xvalue] in GENERATESERIES([MinX],[MaxX],1) && [Yvalue] in GENERATESERIES([MinY],[MaxY],1)))
Result
Notice: I named table1 to range, table2 to product.
Regads,
Xiaoxin Sheng
MagnusJ
8 years agoFrequent Visitor
Thanks for the solution! I am still checking if this is the best one or if I need to combine tables instead.