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

Announcements
Data Works for AI is here - Join the discussion and enter to win a pair of Qlik kicks: Join the Conversation!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

IF [Field_1] > [Field_2] then... in the script

Hi,

How i can compare the value of two field in the script,

i want to do : IF( [Field_1] > [Field_2] then 'Value' ) as new_field.

Thanks

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer
MVP
MVP

Then you could use:

IF([Field_1] > [Field_2], 'Value', 'SomeOtherValue' ) as new_field

- Marcus

View solution in original post

3 Replies
marcus_sommer
MVP
MVP

Then you could use:

IF([Field_1] > [Field_2], 'Value', 'SomeOtherValue' ) as new_field

- Marcus

raghvendrasingh
Creator II
Creator II

Please try this one:


IF( [Field_1] > [Field_2] , 'Value' )  as new_field

Not applicable
Author

Thanks a lot Guys.