You should investigate prompt macros with type "token". The article link describes dynamic sorting which is similar to what you are trying to achieve. The bigger challenge will be...
↧
Re: Dynamic Grouping with multiple columns
↧