Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Highlighted
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
MVP & Luminary
MVP & Luminary

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

Then you could use:

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

- Marcus

View solution in original post

3 Replies
MVP & Luminary
MVP & Luminary

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

Then you could use:

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

- Marcus

View solution in original post

raghvendra_singh
Contributor II

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

Please try this one:


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

Not applicable

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

Thanks a lot Guys.