I've been through this pain myself. I'm using C#, so little bit different:
If you really don't want to set the values in the same way (probably tricky with numbers), you could look at having 2 versions of the dashboard and just select depending upon whether or not there's a value in the parameter.