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

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

Need Help on case statement

Hi Team,

Can any one convert below code to qlikview

case when Key<10 then 1

when Key<50 then 2

when Key<500 then 3

when Key< 3000 then 4

when Key< 8678 then 5

when PARTY_RISK_SCORE_RV<10000 then 6

when PARTY_RISK_SCORE_RV>=10000 then 7

end level

Thanks,

Chinnu.

Labels (1)
1 Solution

Accepted Solutions
Sergey_Shuklin
Specialist
Specialist

Hello!

If(Key<10, 1,

If(Key<50, 2,

If(Key<500, 3,

If(Key<3000, 4,

If(Key<8678, 5,

If(PARTY_RISK_SCORE_RV<10000, 6,

If(PARTY_RISK_SCORE_RV>=10000, 7

))))))) as level

View solution in original post

1 Reply
Sergey_Shuklin
Specialist
Specialist

Hello!

If(Key<10, 1,

If(Key<50, 2,

If(Key<500, 3,

If(Key<3000, 4,

If(Key<8678, 5,

If(PARTY_RISK_SCORE_RV<10000, 6,

If(PARTY_RISK_SCORE_RV>=10000, 7

))))))) as level