robert030975
MIS
- Oct 17, 2006
- 227
HI guys
Been a while but I can't see the wood for the trees and need a little help.
I have created a dimension PreIntoWH
=If (CurrentDate() > [Po UNDelivered].[Current Into WH Date]; RelativeDate(CurrentDate();7);[Po UNDelivered].[Current P Into WH Date]) which works fine
however when I try to do a daysBetween
=DaysBetween([Release Date];Max([PreIntoWH))
It keeps comming up
WIS 10037
Message:
The expression/sub-expression at position {n} uses an invalid data type. Specify a valid data type.
Cause:
An expression contains an invalid data type. (For example, you have attempted to pass a string to a function that requires a date.)
Action:
Use a valid data type in the expression.
Like what I have already set both to short date?
I know this can be done on SQL but I really would like to do this on the report.
Many Thanks
Robert
Been a while but I can't see the wood for the trees and need a little help.
I have created a dimension PreIntoWH
=If (CurrentDate() > [Po UNDelivered].[Current Into WH Date]; RelativeDate(CurrentDate();7);[Po UNDelivered].[Current P Into WH Date]) which works fine
however when I try to do a daysBetween
=DaysBetween([Release Date];Max([PreIntoWH))
It keeps comming up
WIS 10037
Message:
The expression/sub-expression at position {n} uses an invalid data type. Specify a valid data type.
Cause:
An expression contains an invalid data type. (For example, you have attempted to pass a string to a function that requires a date.)
Action:
Use a valid data type in the expression.
Like what I have already set both to short date?
I know this can be done on SQL but I really would like to do this on the report.
Many Thanks
Robert