Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Moving Range (specifically for IMR Chart)

Hello,

I have been trying to develop an I-MR control chart.  I've found several useful threads, but am still having an issue.  I have my data in a table that is similar to the below:

WaveCandidateDate TrainedDate Certified

2014 Wave 1

A3/20/201410/15/2014
2014 Wave 1B3/20/2014
2014 Wave 1C3/20/201412/16/2014
2014 Wave 1D3/20/201411/25/2014
2014 Wave 2E6/5/20145/7/2015
2014 Wave 2F6/5/2014
2014 Wave 2G6/5/201412/16/2014
2014 Wave 2H6/5/201411/25/2014
2015 Wave 1I2/5/20158/20/2015
2015 Wave 1J2/5/20157/13/2015
2015 Wave 1K2/5/20159/17/2015

My data points are the days between the two dates, so I am actually looking for the moving range between the days.  However, I have to have the blank cells as those candidates have not certified.  Is there a way to calculate the moving range of just the data that has a date in 'Date Certified' and ignore the null cells?

I have tried this several different ways, but cannot get it to work.  What I want is similar to the below:

Days to CertifyRange
209
271

62

25021
33686
194142
1962
15838
22466

I would appreciate any help with this.  When I try I either get a blank or a very large value because it is calculating the blank cells as well.

Thanks!

Ali

2 Replies
Gysbert_Wassenaar

See attached example.


talk is cheap, supply exceeds demand
Not applicable
Author

Thank you Gysbert.  I tried your solution and had two issues.  First, using just the 'Days to Certify' expression, no values populated in the table.  Then, when I added the 'Range' expression I got an error in expression of ')' expected.  When I put in the 'Days to Certify' as part of the 'Range' expression, the 'Days to Certify' is blue instead of red.  Could this be part of my issue?

Thanks for your help!