Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid Data type

Status
Not open for further replies.
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
 
I think you might be posting in the wrong forum. What reporting software are you using?

-LB
 
I assume that by "dimension" you mean a dimension in a universe. If that is the case, what is the data type of PreIntoWH (top right of the dimension's properties in Designer)?

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top