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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
abhaysingh
Specialist II
Specialist II

Condition Not working

Hi guys,

I m writing very simple if condition and strange its not working,,pls suggest

if((GL_CC_Flag=1 and  (Cost_Center)= 'NA'  ), Cost_Center=19001,0) as TestCenter;


i want where if((GL_CC_Flag=1 and  (Cost_Center)= 'NA'  ), will true cost centre will feed as 19001

when i m doing below for testing its working means giving output 1 but in above giving output 0

if((GL_CC_Flag=1 and  (Cost_Center)= 'NA'  ), 1,0) as TestCenter;



pls suggest

10 Replies
engishfaque
Specialist III
Specialist III

Dear Abhay,

Kindly share your sample data as the condition can be make properly.

Kind regards,

Ishfaque Ahmed