The previous version had a bug… you can appreciate in Row3 x $rank$, given by an empty $prediction$ value in the in the latest row, then replacing the 3rd row.
This new workflow deals with last row issue.
20220920_3_sequential_and_consecutive.knwf (61.8 KB)
BR