Forum Discussion
Drill down and strange filter behaviour
- 6 years ago
Anonymous , This seems correct, Try with this one change. As I doubt row context
Measure2 = var datemin = MINX(allselected('Table A'),'Table A'[DATE])
var datemax = MAXX(allselected('Table A'),'Table A'[DATE])RETURN CALCULATE((DISTINCTCOUNT('Table A'[Player]));
'Table A'[Type] = "X";'Table A'[DATE] >= DATE(YEAR(datemin)-1 ; MONTH(datemin); DAY(datemin));
'Table A'[DATE] <= DATE(YEAR(datemax)-1 ; MONTH(datemax); DAY(datemax)))if it gives an error , just return _min or _max and check what you get. Do you get any blank
Anonymous , This seems correct, Try with this one change. As I doubt row context
Measure2 = var datemin = MINX(allselected('Table A'),'Table A'[DATE])
var datemax = MAXX(allselected('Table A'),'Table A'[DATE])
RETURN CALCULATE((DISTINCTCOUNT('Table A'[Player]));
'Table A'[Type] = "X";'Table A'[DATE] >= DATE(YEAR(datemin)-1 ; MONTH(datemin); DAY(datemin));
'Table A'[DATE] <= DATE(YEAR(datemax)-1 ; MONTH(datemax); DAY(datemax)))
if it gives an error , just return _min or _max and check what you get. Do you get any blank
Thank you Amitchandak, it did work !!
I suspected a contest thing, I tried ALL functions, but ALLSELECTED is all I needed !
Fast and accurate, thank you again 🙂