Forum Discussion
Apply Two Date Filters to a Table Visual
- 4 years ago
Anonymous , Try a new measure. Only measure can use slicer value. Calculated column can not use the same
//Date1 is independent Date table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = Minx(allselected(Date1),Date1[Date])
Var _cnt =
countrows(filter( 'Table', ( 'Table'[Design Date] >=_min && 'Table'[Design Date] <=_max) || ( 'Table'[Ordered Date] >=_min && 'Table'[Ordered Date] <=_max) ) )return
if(isblank(_cnt) , "No", "Yes")
Anonymous , Try a new measure. Only measure can use slicer value. Calculated column can not use the same
//Date1 is independent Date table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = Minx(allselected(Date1),Date1[Date])
Var _cnt =
countrows(filter( 'Table', ( 'Table'[Design Date] >=_min && 'Table'[Design Date] <=_max) || ( 'Table'[Ordered Date] >=_min && 'Table'[Ordered Date] <=_max) ) )
return
if(isblank(_cnt) , "No", "Yes")