mdx datediff error

Posted by Roberto Durand on Stack Overflow See other posts from Stack Overflow or by Roberto Durand
Published on 2012-09-26T15:34:31Z Indexed on 2012/09/26 15:37 UTC
Read the original article Hit count: 551

Filed under:
|
|
|
select measures.name
datediff("d", [Fecha].[Date].currentmember.member_value, [Dim Date].[Date].currentmember.member_value) on 1
from cube

Error: Execution of the managed stored procedure datediff failed with the following error: Exception has been thrown by the target of an invocation.Argument 'Date1' cannot be converted to type 'Date'

Is there any requirements to do datediff in mdx? In the dimension these member are defined as datetime, not sure if this influence in anyway the result...

© Stack Overflow or respective owner

Related posts about sql

Related posts about ssas