Cycle dimensions using a variable button or dropdown

    Cycle dimensions that change multiple objects with one selection have been a powerful tool in Qlik visualisations and dashboards. Whilst this has not quite made it into the product there is a very simple workaround that enables you to get all of your charts dynamically changing. This can used for both dimensions and measures (see this link for an example using measures).

     

    Here's a quick example (plays 2 times)

    cycle-dimension.gif

     


    Steps to implement

     

    > Download and install the QSVariable extension from Branch (or see attached for the version at the time of writing).

     

    > To create a cyclic dimension:

    Capture.PNG

    1. Specify a variable name. If you have not already created this variable it will create it in the application.

    2. Select Button or Select (dropdown) in the 'Render as' option. You can also experiment with the style and width setting to get different effects.

    3. Click 'Add Alternative'

    4. Enter in the Value and the Label for the option you want to setup. The 'Value' will be passed into the variable and so this should match your fieldname identically (i.e. case sensitive and use square brackets where there is a space in your fieldname e.g. [Customer Name])

    5. Repeat steps 3 and 4 for each additional option you wish to show and switch between.

    6. Enter the default value for the variable so that a selection is always made on open.

         a. In the Edit sheet window, click on the following button in the bottom left.

    Variable.JPG

         b. In the Variable window that pops up, click on the edit icon of the variable you wish to update.

    Variable1.JPG

    c. Enter the Value that will be the default value for your variable. Ensure that it is one of the values that you have entered in the variable extension object. When done click on the edit button again to save and close the window.

    Variable2.JPG

     

    7. Create a dimension in your master items (or reference directly in each chart) using the variable reference as $(VariableName).

     

     

    Known Limitations

     

    > We are unable to dynamically label dimensions and measures at this stage (as of writing after release of v3.1). As such you have generic naming of the dynamic field.

     

     

    See the attached example for more details or comment below.

     

    Thanks