Help with a profit chart - some fields are "null"

@Jason_Tran yes that should be the easiest way, the problem is we have 400k+ documents and like new 5k every day. so what is the simple code to convert those “null” values to “0”, in a safe way?

Maybe we can use $reduce in a pipeline?, I would pref to not edit the data structure and keep everything in the charts