I have attached an example of one way to do this. I'll walk you through it a bit on this post.
1. I added some inline script to make your "group" that we will use in the list box. We don't actually create a group in QlikView, it is just a field that contains the options that you want the user to have in the "group":
LOAD * INLINE [
2. This field is then just added to the list box (make sure to select one, then go back into properties and select always one selected value):
3. Then create a dimension on the chart that will determine what field to use depending on what is selected in group.
example.qvw 152.8 K
There is an alternative, shorter calculated dimension:
Besides being shorter, it is "more universal" - no need to modify when the vlaues in Group change.
example2.qvw 153.8 K
To go a little deeper on this subject i have a question about renaming the items that are in that group.
For now i have made a group like that:
LOAD * INLINE [
Artikel.Units per pak
How can i change these names so that
"Artikel.Naam" = "Naam"
"Artikel.Code" = "Code" ?
Also after changing these names do i have to use these names/labels into the script of the dimensions to? (I use the long version).
Thanks for the help!
Why don't you simply use the exact name of the fields in LOAD * INLINE? You have to type it manually anyway...
And - yes, if you use the "long version", you have to use the exact field names.
If you use the "short version", you'll have to add  around it because some field names have spaces.
Excuse me for the late answer.
I'm sorry but i dont know what you mean about "exact name"? Aren't these names in this LOAD * INLINE for example "Artikel.Soort", "Artikel.hoofd" the names that comes from the SQL table? For me it is not so easy because i was trown into an enviroment that already has been set up by other people.