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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
surajap123
Creator III
Creator III

nested if

Hi All,

Please help me with the difference between both the expressions. Both give the same result then why additional brackets??

=IF(Name='John','Male',if(Name='Mary','Female','N/A'))

=IF(Name='John','Male',(if(Name='Mary','Female','N/A')))

Thanks!!

1 Solution

Accepted Solutions
Not applicable

Hi Suraj,

there is nothing to worry about that its just a way of representation, additional brackets show its a part of else.they both give same result

View solution in original post

4 Replies
Not applicable

Hi Suraj,

there is nothing to worry about that its just a way of representation, additional brackets show its a part of else.they both give same result

its_anandrjs
Champion III
Champion III

Hi,

NO difference in the both the expression but better you can use Mapping table here instead of the if condition if it is in any chart that ok. But you can do this in any load script.

Regards

Anand

ecolomer
Master II
Master II

Both are the same result the only difference are your representation

surajap123
Creator III
Creator III
Author

Thanks everyone for the inputs !!