Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Comparative Analysis

I have the following chart which i am using for comparative analysis of two groups namely Group A vs Group B:

Screen Shot 2016-04-12 at 19.30.22.png

The expressions for the two groups are as follows:

Screen Shot 2016-04-12 at 19.34.08.png

Screen Shot 2016-04-12 at 19.34.26.png

Now i want to use Moving Annual Totals instead of straight sum to do the comparisons.  I have modified the two expressions to be as follows using the AsOfMonths set analysis:

Screen Shot 2016-04-12 at 19.35.49.png

Screen Shot 2016-04-12 at 19.36.27.png

Amount = ([MedAid Amount] + Shortfall)

However the comparative analysis does not work and i get the following graph:

Screen Shot 2016-04-12 at 19.30.47.png

The MAT values are for the whole data sets and not the respective groups and the two values for Group A and B are the same.  How can i solve my problem.

Regards

Chris

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this:

Sum({[Group A] * $<MonthDiff = {"<12"}>} Amount)

or

Sum({[Group A] * $}*{$<MonthDiff = {"<12"}>} Amount)

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

May be this:

Sum({[Group A] * $<MonthDiff = {"<12"}>} Amount)

or

Sum({[Group A] * $}*{$<MonthDiff = {"<12"}>} Amount)

Anonymous
Not applicable
Author

Thanks Sunny, i used the first expression and it is working

Regards