Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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

1 Solution

Accepted Solutions
sunny_talwar

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

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