I have a Measure - 'TEST' which is SUM across all the Dimensions except across DATE Dimension for which we need the value on the Last Day.
I created the Measure with an aggregate as 'SUM' and created a Scope statement to handle the exception
SCOPE([Date].[Date].[All])
THIS = TAIL([Date].[Date].MEMBERS,1).ITEM(0) ;
END SCOPE
Its working well and picking up the Last day's value. But the problem is its always picking up the Last day's value and doesn't respect the Filters on the report.
For eg. If I have
Jan 1 - 100 ,
Jan 2 - 200 ,
Jan 3 - 300
When I get a report for Jan 1 and Jan 2 --- I do expect to see 200. Instead i get 300 with the above MDX.
Thanks. any help is much appreciated.