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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
kevbrown
Creator II
Creator II

Scripting between

How can I add an extra column in my data to say if the score is high or low. So i have a column called Gates and i need to produce a new column called Score in which i need to put high or low depending on the score. So anything >10 but <999 needs to say Low and anything >999 needs to say High.

1 Solution

Accepted Solutions
sunny_talwar

May be like this:

LOAD Gates,

          If(Gates > 10 and Gates <= 999, 'Low',

          If(Gates > 999, 'High', 'N/A')) as Score

FROM Source;

View solution in original post

4 Replies
sunny_talwar

May be like this:

LOAD Gates,

          If(Gates > 10 and Gates <= 999, 'Low',

          If(Gates > 999, 'High', 'N/A')) as Score

FROM Source;

Saravanan_Desingh

One more version..

Load *, Pick(Match(-1,(Gates > 10 And Gates <= 999),Gates > 999,Gates<=10),'Low','High','N/A') As Score;

Load * Inline [

Gates

11

1000

9

];

sunny_talwar

Nice, looks good. Thanks for sharing this saran7de

Saravanan_Desingh

I'm proud. A word from Vashishtha