How do I replace null values for 0 in a time series?

You can use the function:

Null0(series)

For more information:

Built-in formula functions