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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
NickHoff
Specialist
Specialist

Empty Spaces - Teradata

Hello,

I have a field that is not a true NULL, but it includes an empty space in the data set.  However, i'm trying to create an indicator which includes the empty space, but I can't get it to work correctly using the following.  Any ideas?

IF(ContractPUOMCode = 'EA' AND ContractLIUOMCode = 'EA' AND (PriceChargeUOMCode = 'EA' OR ISNULL(PriceChargeUOMCode)= -1 OR PriceChargeUOMCode = '' OR PriceChargeUOMCode = ' '), 'Yes','No')

Labels (1)
1 Solution

Accepted Solutions
NickHoff
Specialist
Specialist
Author

Apparently just copy and pasting the empty space out of teradata worked:

IF(ContractPUOMCode = 'EA' AND ContractLIUOMCode = 'EA' AND (PriceChargeUOMCode = 'EA' OR PriceChargeUOMCode = '  '), 'Yes','No') AS EAIND,

View solution in original post

1 Reply
NickHoff
Specialist
Specialist
Author

Apparently just copy and pasting the empty space out of teradata worked:

IF(ContractPUOMCode = 'EA' AND ContractLIUOMCode = 'EA' AND (PriceChargeUOMCode = 'EA' OR PriceChargeUOMCode = '  '), 'Yes','No') AS EAIND,