You can unpivot your table, replace empty to 0 in one column and then pivot it back. See this topic: Pivot back to original dataset
You can unpivot your table, replace empty to 0 in one column and then pivot it back. See this topic: Pivot back to original dataset