Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

if clause

I want to add severity=4 and 40 hours for that

if(Severity=1,3,if(Severity=2,5,if(Severity=3,24,'No_SLA'))) as KPI_TIME,

Labels (1)
3 Replies
sunny_talwar
MVP
MVP

May be this:

If(Severity=1, 3,

If(Severity=2, 5,

If(Severity=3, 24,

If(Severity=4, YourNumber, 'No_SLA')))) as KPI_TIME,

nagaiank
Specialist III
Specialist III

Did you try

if(Severity=1,3

,if(Severity=2,5

,if(Severity=3,24

,If(Severity=4,40,'No_SLA')))) as KPI_TIME

maxgro
MVP
MVP

a different one

pick(wildmatch(Severity,1,2,3,4, '*'), 3, 5, 24, 40, 'No_SLA')  as KPI_TIME