Selecting column dynamically

I’ve made a suggestion here that I believe would solve this