Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Get Minimum on Average of 3 columns

  Hi,

I want to get the Result2  after getting the Result1 from Data. I am able to get the Result 1. But, Could you please help me in getting the Result2 from Result1 or the Result2 from Data. Could you please send the answer to this post to email id: harvarinf1531@gmail.com

Data:
Start WtOOI2nd OOI
39.5328.90128.373
39.61629.76229.016
39.06428.07527.761
39.11628.90328.426
39.12828.87528.284
39.25129.13528.542
39.37329.44128.822
39.43529.35428.713
39.47228.4228.083

   

Result1:
Start Wt OOI 2nd OOI
Average Wt.39.35862528.99887528.3755
Stdev0.1949651530.5516068570.341234314
Average Wt. +  (3 * Stdev)+3 Sigma39.9435204630.6536955729.39920294
Average Wt. -  (3 * Stdev)-3 Sigma38.7737295427.3440544327.35179706

   

Result2: It should be from Result1 marked in Yellow. Expression
DeltaStart Wt - Min( Start Wt,OOI, 2nd OOI)OOI - Min( Start Wt,OOI, 2nd OOI)2nd OOI - Min( Start Wt,OOI, 2nd OOI)
10.9831250.623375

0

5 Replies
sunny_talwar

Do you have a sample file where the data is already loaded? would be easier to help if you can share a qvw.

Best,

Sunny

Not applicable
Author

HI Sunny,

I got this requirement by using the RangeMIN function as seen below. Thanks for your immediate help when needed .

AvgWtforYMCInks:

LOAD
//RowNo()as SeqAvg,
AVG([Yellow Calculated Ink])as "YCI",
AVG([Magenta Calculated Ink]) as "MCI",

AVG([Cyan Calculated Ink]) as "CCI"

Resident CorbettSrc
where Pen_Id <> 'C5347020' ;

DeltaforYMCInks:

LOAD
Round((YCI - RangeMIN(YCI,MCI,CCI)),0.000001) as "Delta Yellow",
Round((MCI - RangeMIN(YCI,MCI,CCI)),0.000001) as "Delta Magenta",
Round((CCI - RangeMIN(YCI,MCI,CCI)),0.000001) as "Delta Cyan"

Resident AvgWtforYMCInks;
Thanks & Regards

Harish

sunny_talwar

Is this resolved now?

Not applicable
Author

Yes Dear Sunny. Thanks for your Response.

sunny_talwar

Then please close this thread by marking your own response as a correct answer.

Best,

Sunny