Another way to do this...
 
To set up the script, run the analysis the way you want, whether its in distribution, with a control chart, capability, or process screening. Then add a local data filter to look at the date or row range you want, e.g. the last 50 rows or something.  
 
Then find this like in the script:
	Local Data Filter(
		Add Filter( columns( :Row ), Where( :Row >= 15 & :Row <= 20 ) )
	),
and edit it to look like this:
	Local Data Filter(
		Add Filter( columns( :Row ), Where( :Row = nrow()-5 & :Row = nrow() ) )
	),
In the first script the report uses row 15 to 20.  
the report uses the last 5 rows regardless of how many rows there are.* 
 
 
*... and yes, I konw 5 rows are two few for a good capability report, this just an example
 
					
				
			
			
				
	JMP Systems Engineer, Health and Life Sciences (Pharma)