Calculated metric function: CUMULATIVE - cannot use functions to set the "number" parameter
I am trying to create a calculated metric, which cumulate a static number based on month of year.
For example each day in January should add 100, but each day in February should only add 50.
I am using the IF function to control which month is in question.
For 'value_if_true' I have added the CUMULATIVE function. In the "number" parameter for the CUMULATIVE function I want to limit only the row for January. Unfortunately, if I add December to the time period it will cumulate 100 for each day of December as well.
If I try to make the "number" parameter dynamic, for example based on a function, for example "ROW COUNT()", then the CUMULATIVE function breaks down completely and do not return any values.
I have tried other functions in place of the "number" parameter and they all seem be broken.
Is this by design or have I misunderstood how to use the "number" parameter?

Thanks in advance 🙂