Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
mohanrajsubrama
Contributor II
Contributor II

How do i bring up this logic in qlikview

Hi Folks ,

I have a requirement like below and I am wondering how to do it Qlikview.

I am having a table of data elements with different metrics in it with scores.

   

METRICIDELEMIDScore
1052101100
1050101100
104810194

And in another table I have Min and Max Threshold for these Metric Id's.I need to join these 2 based on Metric ID so I ll get 6 records with score in it.

Now for 1052 Metric :

if Alert =1001 then ErrorMin=0

if Alert=1001 then ErrorMax=99.98

if Alert =1002 then Warning min=99

if Alert =1002 then Warning max=99.99    This follows for remaining Metrics ID' s also.

Now my logic should be

if( score< = ErrorMax,'Error' ,

if (score>ErrorMax and score<=Warning max,'Warning'

if (score>Warning max,Passed)))

Could you guys please guide how can we achieve this in Qlikview..

METRICALERTLEVELDEIDALERTLEVELIDMETRICIDELEMIDMAXTHRESHOLDMINTHRESHOLD
10371001105210199.980
10381002105210199.9999
10551001105010199.980
10561002105010199.9999
10571001104810199.980
10581002104810199.9999

Regards,

Mohan

1 Reply
settu_periasamy
Master III
Master III

Hi,

Do you already have the Second table (with Min and Max threshold), or do you want to create that table based on ALERTLEVELID?