Invalid preceding or following size in OLAP function

Error constant SQLE_INVALID_FRAME_BOUNDARY
ODBC 2 State ERROR
ODBC 3 State ERROR
Severity 16
SQLCODE –957
SQLSTATE 22X13
Sybase error code 13531
Probable cause

The expression for the preceding or following size evaluated to NULL or a negative value.