Skip to Content

Cumulative Sum creation Error?

Hi All,

Can I created Cumulative sum of salary based on Department Number but last row calculated only previous row only.

Custom function and Error attached as below.

Thanks,

Chandra

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 29, 2016 at 05:42 PM

    Almost correct 🤣

    This will work when you define $PREV_DEPT and $PREV_SAL as global variables instead of parameters (that are local to the call).

    Make sure you initialise them properly before your first function call.

    Add comment
    10|10000 characters needed characters exceeded