selecting numbers with a potmeter

So what do you have (post code) and where does it go wrong?