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
Hi nanutum ,
Since there is no data sample and expected output , I’m not sure why the LASTDATE() function not works.
As this article said, 'firstdate' and 'lastdate' function not works if your date table contains duplicate records.
If you're using a fact table where the same date can be repeated more than once, you should use MIN and MAX instead.
If you have any further questions ,please upload your pbix file after doing mask sensitive data.
Best Regards,
Eyelyn Qin