Forum Discussion
How Slicer Filter can affect column calculations?
- 4 years ago
Nini1 , Ideally these should work from Max and min
maxx(allselected(tbl) , tbl[date])
minx(allselected(tbl) , tbl[date])
But if slicer is on another table try like
maxDateAll=
Var _max = maxx(allselected(Date) , Date[date])
Var _min = minx(allselected(Date) , Date[date])
return
CALCULATE ( MAX ( tbl[date] ), filter(ALLSELECTED(tbl), tbl[date] <= _max && tbl[date] >= _min))
Nini1 , Ideally these should work from Max and min
maxx(allselected(tbl) , tbl[date])
minx(allselected(tbl) , tbl[date])
But if slicer is on another table try like
maxDateAll=
Var _max = maxx(allselected(Date) , Date[date])
Var _min = minx(allselected(Date) , Date[date])
return
CALCULATE ( MAX ( tbl[date] ), filter(ALLSELECTED(tbl), tbl[date] <= _max && tbl[date] >= _min))
- Nini14 years agoFrequent Visitor
Thank you very much!