SYMPTOM:
The following error is returned in a report:

Negative scale not valid
CAUSE:
This error occurs due to a division operation between two decimal operands. It will only appear if the SQL generated by the report shows a division operation.
A decimal number is composed of precision and scale. Precision defines the amount of digits the number can hold and scale the amount of digits that can be placed after the decimal point. This means that the scale must be smaller or equal to the precision and both should be positive numbers
The error appears as the result of the operation returns a decimal number with a negative scale. When two decimal numbers are divided the resulting scale is calculated by the formula:
31 - pn + sn - sd
pn: precision of the numerator,
sn: scale of the numerator
ds: scale of the denominator
31: maximum amount of digits available for precision. This can be 63 in some databases.
WORKAROUND:
Identify the Strategy object that is causing the division operation (this can be a metric or a fact). Once identified, take one of the following actions:


NOTE:
The casting operations may vary depending on the database used. In the example shown above a SQL 2005 database was used.