Have field display 0 if no match found on query
I have a report that has several customer types and we are creating a BI Publisher report that will report inventory issued out to each customer type. Sometimes the peoplesoft query data source for the report doesn't return any rows for a customer type due to no transactions taking place in the reporting query. When no data exists, we need it to display 0 for our users. I have attempted several variations of for each, choose, and if statements and can't get it to always return the 0 value. When it doesn't return 0, it just returns a blank space.
Current code that is working part of the time: