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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

ignore value in subfield

Hi all

İ tried to combine 4 columns into one column with this script

subfield(DS_DELAY_SUB_CODE_1 & ';' & DS_DELAY_SUB_CODE_2 & ';' & DS_DELAY_SUB_CODE_3 & ';' & DS_DELAY_SUB_CODE_4, ';') as DS_DELAY_SUB_CODE

But i want to ignore '?' character in this subfields

how can i do this

thnaks

1 Solution

Accepted Solutions
Not applicable
Author

purgechar(

subfield(DS_DELAY_SUB_CODE_1 & ';' & DS_DELAY_SUB_CODE_2 & ';' & DS_DELAY_SUB_CODE_3 & ';' & DS_DELAY_SUB_CODE_4, ';')

,'?')

View solution in original post

4 Replies
Not applicable
Author

purgechar(

subfield(DS_DELAY_SUB_CODE_1 & ';' & DS_DELAY_SUB_CODE_2 & ';' & DS_DELAY_SUB_CODE_3 & ';' & DS_DELAY_SUB_CODE_4, ';')

,'?')

Not applicable
Author

will i take all sub_codes without '?'

Not applicable
Author

i think so

try it

Not applicable
Author

The purgechar will remove all ? from the string subfield(DS_DELAY_SUB_CODE_1 & ';' & DS_DELAY_SUB_CODE_2 & ';' & DS_DELAY_SUB_CODE_3 & ';' & DS_DELAY_SUB_CODE_4, ';')