Essentially, this seems to work OK if you need it dynamic run-time:
Or am I utterly misunderstanding what you’re after?