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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Concat() including blank values

Hallo QV geniuses,

As the way I see it, concat() doesn't include blank values:

I have a table like this:

ABC
11a
2b
33

when I do:

concat(A,',')

It gives me this result:


1,3


But what I want is like this:


1,,3


Is it possible?Many thanks.

5 Replies
Anonymous
Not applicable
Author

I have just checked and it works fine for me.

Do beware though that it sorts the values so the null comes first and the output I get is :

    ,1,3

If you use this =concat(A,',',B) then it sorts by B and the output is :

     1,,3

Not applicable
Author

In excel, if you just leave it blank it will not work. But if you apply a space like pressing the space button it will work.

Space and blank values differ in concat(). Please try it in excel.

Anonymous
Not applicable
Author

I do not have Excel.

Yousef_Amarneh
Partner - Creator III
Partner - Creator III

try this work around

Yousef Amarneh
maxgro
MVP
MVP

if you have an excel blank (not space) you can check it and erplace with a ''

to get 1,,3

=concat(if(len(trim(A))=0,'',A), ',', B)