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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
bharatkishore
Creator III
Creator III

if condition

Hi All,

I am writing the below expression in script.. but my expression is not working..Can you please tell me where i am missing out..

if(Country='Brazil' and Batch_Code='U',

if(Strategic_Part='Tubes' and [U-D_NL9s]<>0 ,sum(mat_con_qua)*(-1)*sum([U-D_NL9s])*1.055,0)) as test

Thanks,

Bharat

24 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

What do you mean by "Calculated field"? A field is a field and it must be present in the source table before you can LOAD...GROUP BY it into a new table.

olivierrobin
Specialist III
Specialist III

if the field is used to name a formula (after AS in the same load), you have to replace it by it's corresponding formula

bharatkishore
Creator III
Creator III
Author

Thanks Nagaraju..

It is working exactly.. Can you please tell me where i have missed out

bharatkishore
Creator III
Creator III
Author

Thanks a lot Oliver..

bharatkishore
Creator III
Creator III
Author

Thanks a lot Peter..