SAP Message UPB165 - Only preceding rows of key figure scheme are allowed as reference rows

Diagnosis
You have entered a row number as a reference row, which is greater thanor equal to the row number of the current row.

System Response
The key figure scheme is inconsistent.

Procedure
Correct your settings on the reference rows.