Discussion Board for collaboration on QlikView Scripting.
I have browsed through a lot of similar queries and am not finding exactly what I need. I currently have an input box with a lot of Yes/No options for showing fields in a chart, I have about 10 or sometimes more fields that are available to be added as dimensions on a chart working with variable example vShowName with two values Y/N.
Is there a way of doing this with check boxes inside the input box, or are there better options. Like I said before we have quite a number of these setup so it is not just one or two of them. I have also thought about using a list box for each with only one check box which can be highlighted for a yes value, but I am not sure how to make this a variable to use for a dimension
Solved! Go to Solution.
Thanks Kaushik. I sort of understand whet is being shown there but it I copy it into my model nothing seems to happen.
LOAD * INLINE [_dimension
TAG FIELDS AccountStatus , $Dimension;
TAG FIELDS AccountType , $Dimension;
TAG FIELDS Agent , $Dimension;
TAG FIELDS Attorney , $Dimension;
TAG FIELDS DebtorIndex , $Dimension;
TAG FIELDS OwnerType , $Dimension;
TAG FIELDS ServiceGroup , $Dimension;
TAG FIELDS Township , $Dimension;
TAG FIELDS Ward , $Dimension;
TAG FIELDS IndigentStatus, $Dimension;
and then added Conditional Coding to the dimension, example
=SubStringCount(Concat(_dimension, '|'), 'AccountStatus')
Maybe I am just doing something stupid here or I am missing something someshere
The application contains the script work as well as some conditional options in charts.
I guess you have done the script part, now look in to the application for that chart and look for its property, under the property look at the dimension tab. You will find that all the dimensions are listed here and when you click on the dimension, you will find the enable condition option. This is the place where the conditions are written. Try to understand the condition statements and try to implement in your application.
This is really helpful. I used this and it's working great.Now I have the issues of how to add a default value if one is not selected. I do not want Qlikview to stage select a dimension. I for example want the first dimension to be the default value
You can use the conditional statement like If statement to check if any dimension is selected, if not then you can give a default dimension.