Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Alternate State

Hi,

I am using Alternate states to calculate Sum of a Field in two different charts with say AS1 and AS2 Alternate State applied

Eg.:

          

Dim1Dim2Exp-AS1
100Abc=20
101Pqr=31

                                                                                    

Dim1Dim2Exp-AS2
100Hij=11
101Mno=04

Now, I need to calculate difference between the Expression in another Chart which is WHITHOUT alternate state;

Dim1Exp
10009
10127

kindly help with any idea !

Thanks in advance !

2 Replies
Anonymous
Not applicable
Author

Within Set Analysis you can define which Alternate State an expression should use.

So create two expressions against the two States and subtract them

Anonymous
Not applicable
Author

Here the bit from the Help about it :

Comparing Alternate States

You can compare two states on the same object. For example, you can create a line chart to display both states of the data with the same axis by assigning a state in the expression using Set Analysis.

Example:

If you have defined the states Group1 and Group2, you can compare the average of field Adj.Close for the groups by showing these two expressions in a line chart:

Avg({[Group1]} [Adj.Close])

Avg({[Group2]} [Adj.Close])