Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

NullAsValue

Good morning,

I wrote:

ODBC CONNECT TO abc;

NullAsValue *;

Set NullValue = '0 ';


SQL SELECT ......;

But null values ​​remain, how can I do?



Thank you

18 Replies
Anonymous
Not applicable
Author

Hi,

Try adding NullInterpret function above null value function, you may have blank which are not converting into 0.

SET NullInterpret ='';

NullAsValue pc;

Set NullValue = '0';

alexandros17
Partner - Champion III
Partner - Champion III

Where do you load the field PC, from a table or from an external file?

Not applicable
Author

Nothing..

I tried to see the table and the values ​​that are null QlikView tells me that in fact they are already at 0..

antoniotiman
Master III
Master III

Hi Miriana,

perhaps are You using MySQL DB ?

Antonio

Anonymous
Not applicable
Author

Then in that case, you have problem in your expression. Can you add "Only" function for pc and check if it is working. Apparently it should be Sum(pc) but not sure about you dataset so cannot comment.

Sum ({$<numero={'5'}}> qty) * Only(pc)

Not applicable
Author

No, I use SQL Server..

Not applicable
Author

Nothing again..

Not applicable
Author

From a table..

olivetwist
Creator
Creator

I think you would need to do a preceding load. it wont replace nulls in a select in my experience.