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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
risabhroy_03
Partner - Creator II
Partner - Creator II

Null value remove

I have a dimension named "T$BOLA" and I want to remove both NULL and blank values from it in the table.

I am using the below script 

where (("T$BOLA") <> '-') and (trim("T$BOLA") <> '');

but still I can see few cases where it is coming.

 

Please help.

6 Replies
stevejoyce
Specialist II
Specialist II

where (("T$BOLA") <> '-') and (len(trim("T$BOLA") )>0);

should catch empty and nulls

risabhroy_03
Partner - Creator II
Partner - Creator II
Author

Still one  '-' is coming

stevejoyce
Specialist II
Specialist II

maybe trim the - also.

 

where ((trim("T$BOLA") <> '-') and (len(trim("T$BOLA") )>0);

risabhroy_03
Partner - Creator II
Partner - Creator II
Author

Still one -  is coming

stevejoyce
Specialist II
Specialist II

sounds odd.  on the front-end do some string /null calcuations on it and see if you can figure out what it's being recognized as.

add a table with [T$BOLA] and select that record.  do a len([T$BOLA]),  [T$BOLA] ='-', isnull([T$BOLA]) see if you can figure out what it is.  or maybe if you can share sample input data.

risabhroy_03
Partner - Creator II
Partner - Creator II
Author

Tried everything 

risabhroy_03_0-1636725366232.png