Forum Discussion
distinctcount with crossfilter?
- 4 years ago
pedroccamaraDBI , if contract and document are two fact, they should join. Or should be merged into one fact.
even if the join is inactive you can use these dates filter like
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = minx(allselected(Date1),Date1[Date])
return
calculate( distinctCOUNT(Contrcat[Contract ID]), filter('Date', 'Date'[Date] >=_min && 'Date'[Date] <=_max))if need add cross join to remove date join with document
pedroccamaraDBI , if contract and document are two fact, they should join. Or should be merged into one fact.
even if the join is inactive you can use these dates filter like
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = minx(allselected(Date1),Date1[Date])
return
calculate( distinctCOUNT(Contrcat[Contract ID]), filter('Date', 'Date'[Date] >=_min && 'Date'[Date] <=_max))
if need add cross join to remove date join with document