Forum Discussion
nanutum
Helper I
6 years agoLASTDATE ERROR MDXSCRIPT PLEASE HELP
i have 2 meaure can used normally but today get error below please help Stock_Case_LastDate = SUMX (
VALUES ( 'Sold to party' ),
CALCULATE ( SUM ( Stock[Case]),LASTDATE( ( Stock[Sto...
Anonymous
6 years agoNot applicable
Pragati11
The simple answer is: because LASTDATE returns a one-row-one-column table which can be used under CALCULATE as a filter. MAX is a scalar function and hence, it can't be used directly under CALCULATE.
Pragati11
Super User
6 years agoHi Anonymous ,
I am just trying to understand the requirement here.
Thanks,
Pragati