2 Replies Latest reply: Nov 17, 2014 7:50 AM by Robin Carlsson RSS
      • Re: what is a alternative states when it will using alternative states
        Agis Kalogiannis

        Hi Subbu

         

        The following is from the QlikView Help contents.

         

        I hope this helps.

         

        Regards

        Agis

         

        Alternate States

        Description

        You can use Alternate States to perform comparative analysis between sets of multiple data items, for example for basket analysis purposes. A state holds a set of selections.

        The QlikView developer can create multiple states within a QlikView document and apply these states to specific objects within the document. The end-user can create copies of these objects (server objects) and then put those objects into different states.

        The most important difference between Detach and Alternate States is that ALL objects in a given state will respond to user selections made in that state. Objects in a given state are not affected by user selections in the other states.

        Alternate States functionality is not accessible in the load script.

        Note!
        Alternate States functionality is enabled by a QlikView developer and should be used with caution as it can cause great confusion with end-users as there is no automatic on-screen indication that objects or expressions are in, or reference, alternate states. It is up to the QlikView developer to provide this information to the end-user using the StateName() function.

        Setting Alternate States

        Do the following to enable and set alternate states:

        1. Click Alternate States... in the Document Properties: General tab.
          The Alternate States dialog opens.
        2. Click Add... to create a number of states, and name them. The names will be referred to as state identifiers.
        3. Click OK to close the dialog.

        Now the QlikView developer can create new Alternate States from within screen objects.

        End-users who access QlikView documents from a QlikView Server can make use of Alternate States but cannot create Alternate States.

        Assigning States to Objects

        Do the following to assign a state to an object:

        1. Open the Properties dialog and select the General tab.
        2. Set Alternate State to the state identifier you want to use for the object.

        The object will now be independent from the rest of the document in terms of selection, unless other objects are set to the same state.

        There are two states that are always available; default state and inherited. The default state is the state where most QlikView usage occurs and is represented by $. The QlikView document is always in the default state. Objects can inherit states from higher level objects, such as sheets and containers. This means that states are inherited as such: Document - Sheet - Sheet Objects. The sheets and sheet objects are always in the inherited state unless overridden by the QlikView developer.

        • Re: what is a alternative states when it will using alternative states
          Robin Carlsson

          Hi,

           

          alternate states can be used to make comparative analysis in QlikView. In practice, you can apply "states" to multiple objects in QlikView, so one object responds to a specific user selection while another object responds to another user selection. E.g. two charts can have different facts or dimensions presented simultaneously dependent on users' selection. Users might want to perform this kind of analysis by 'comparing' two copies of a chart next to each other, instead of having all the facts on a single chart.

           

          For example:

          Chart 1: presents sum of sales, where the selected dimension is region Europe.

          Chart 2: presents sum of sales, where the selected dimension is region Asia.

          In this case there would be too many countries to use a single chart, it would be better to use two charts using alternate state (as it allows you to make different selections for the two charts).


          Also worth knowing, altermate state is currently only available in QlikView. Comparative analysis is meant to work differently in Qlik Sense.