Forum Discussion
Anonymous
3 years agoNot applicable
RemoveFilter Function Not Working Within Calculate when Last.Date is used as a Filter
Hi All, I've simplified my Data/Measure and attached a screenshot. The Formula within my Measure is as follows: CountRows for LastDate = CALCULATE(COUNTROWS(Sheet1),LASTDATE(Sheet1[Dat...
amitchandak
3 years agoSuper User
Anonymous , Try like
CountRows for LastDate =
Var _max = maxx(allselected(sheet1), Sheet1[Date])
return
CALCULATE(COUNTROWS(Sheet1),filter(Sheet1, Sheet1[Date]= _max))
OR
CountRows for LastDate =
Var _max = maxx(all(sheet1), Sheet1[Date])
return
CALCULATE(COUNTROWS(Sheet1),Sheet1[Date]= _max)
refer if needed
Latest
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0