PleaseGiveHelp
Programmer
Ok so I know I've done this before and so I don't know why it isn't working. I have a field on my report which ends up being 0. I know you can't divide by 0 so I'm trying to come up with a switch statement to take care of that and to yield 1. This is what I have:
=Switch([AllCounts]=0,1,[AllCounts]<>0,([YesCounts]/[AllCounts]))
Yet the report yields #Num!. Is my switch statement wrong? Do I need to account for the top number being 0 as well?
=Switch([AllCounts]=0,1,[AllCounts]<>0,([YesCounts]/[AllCounts]))
Yet the report yields #Num!. Is my switch statement wrong? Do I need to account for the top number being 0 as well?