How do I treat ungraded assignments as zero in the Gradebook?

In the course, go to Grades > select the dropdown arrow at Gradebook > Individual View

 

At the Global Settings page, place a check in Treat Ungraded as 0 (or uncheck it, as desired)

 

To get back to the full gradebook, change the gradebook view from Individual view to Gradebook