How to use custom variable value in measurement inside bucket

Is this different than