This MDX function raise error :
with member measures.x as
(
[Date].[Date].[Date].&[20160101] : [Date].[Date].[Date].currentmember.value
,
[Measures].[current balance]
)
select measures.x on columns,
[Branch].[HeadOffice Branch].[Head Office Code] on rows
from MyCube
Error is : The CURRENTMEMBER function expects a hierarchy expression for the 1 argument. A member expression was used.
But when I use [Date].[Date].[Date].&[20160101] : [Date].[Date].[Date].&[20160131] It works good
why?