MZ
подскажите плиз по формуле
почему
Date_last_WithValue_v2 =
var ld = CALCULATE(max( '_pbi dimMonth'[monthId] ),ALLSELECTED( '_pbi dimMonth'))
return CALCULATE(max('_pbi factDemography_short'[monthId]),
FILTER(all('_pbi factDemography_short'),'_pbi factDemography_short'[monthId]<=ld))
работает
а связка двух мер нет:
Date_Last = CALCULATE(
max( '_pbi dimMonth'[monthId] ),
ALLSELECTED( '_pbi dimMonth')
)
Date_last_WithValue =
CALCULATE(max('_pbi factDemography_short'[monthId]),
FILTER(all('_pbi factDemography_short'),'_pbi factDemography_short'[monthId]<=[Date_Last]))
FILTER(all('_pbi factDemography_short'),'_pbi factDemography_short'[monthId]<=
[Date_Last])
у вас мера [Date_Last]
рассчитывается в контексте каждой строки таблицы '_pbi factDemography_short'
.Думаю, поэтому.
Дальше гадать, не видя модель - лень