Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Qlikview Dynamic update for blank column values

Hi All,

I am running a following simple query in my macro

SQL_String = "Update [TABLENAME] set Category  = '" & psaCat.text & "',Category_No = '" & ruleNum.text & "' Where [Employee Name] Like '" & empName.text &"' AND [Expense Justification] LIKE '**';"

Here my column [Expense Justification] has few blank values.

The update statement works when Employee Name = 'abc'  AND Expense Justification  = 'Some text'

but it does not work when Employee Name = 'abc'  AND Expense Justification  = ' '

My assumption is, LIKE '**' takes into account any text value or blank value.

Am I missing something obvious here.

I tried isNull which does not work either.

Any pointers are appreciated.

Regards,

T

2 Replies
Anonymous
Not applicable
Author

Hi, T,

Is Expense Justification  = ' ' case a NULL value or empty value?

You can try

AND ([Expense Justification] LIKE '**' OR [Expense Justification] is NULL)

or

AND ([Expense Justification] LIKE '**' OR [Expense Justification]='')


Zhihong

Not applicable
Author

Hi Zhinhong,

Thanks for looking into this.

Its a empty value.

I tried the expressions you mentioned but it does not work.

Regards,

T