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: 
Sxbbb
Creator III
Creator III

want to know at each point Each WorkOrder Which point doesn't pass Spce?

 
 

 want like this

Sxbbb_0-1677205761258.png

 

 

Over spec each point is from not between min and max values.
By taking the number of each "SampleNo", each "WorKOrder" that is not between the min and max values

 Data Now

Example 1 work order
Sxbbb_1-1677205761256.png

 

 

want to know at each point Each WorkOrder Which point doesn't pass Spce = that is not between the min and max values

Labels (5)
1 Reply
edwin
Master II
Master II

try this:

load *, if(Value>=Min and Value<=Max,1,0) as Flag inline [
WO, Sample, Point, Value, Max, Min
WO1,1,1,32,30,22
WO1,1,2,31,30,22
WO1,1,3,30,30,22
WO1,1,4,25,30,22
WO1,1,5,24,30,22
WO1,2,1,33,30,22
WO1,2,2,32,30,22
WO1,2,3,31,30,22
WO1,2,4,26,30,22
WO1,2,5,23,30,22
WO1,3,1,33,30,22
WO1,3,2,32,30,22
WO1,3,3,27,30,22
WO1,3,4,26,30,22
WO1,3,5,33,30,22
];

 

edwin_0-1677857003243.png


this counts distint Sample no:

Count(distinct {<Flag={0}>}Sample)

you can also use

Count({<Flag={0}>}Sample)

if you dont count distincts