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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
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

1 Solution

Accepted Solutions
marcus_sommer

Then you could use:

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

- Marcus

View solution in original post

3 Replies
marcus_sommer

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.