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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
juliakhaa
Creator
Creator

How can I convert an array into individual strings?

Hi Professionals!
I work with postgresql, however, I can't implement the functions I know in qlik.
How can I convert an array into individual strings? I have a field that has different id's, they are keys to another table, but I can't associate them in connection with the array, what can help in this situation?

thank you.

Labels (5)
1 Solution

Accepted Solutions
Or
MVP
MVP

Use Subfield() (in script) to break them down into individual rows, and then use the field created by this process to link to the other table.

View solution in original post

4 Replies
Or
MVP
MVP

Use Subfield() (in script) to break them down into individual rows, and then use the field created by this process to link to the other table.

juliakhaa
Creator
Creator
Author

I wrote this line
SubField(id_operator, ',') as logid
Can you tell me if there are not 2 values in this column, but there is one, won't it be deleted?
And the last question, my given in curly braces, how can I convert them into numbers, the function num does not work in this case for some reason, thanks a lot for the answer)

Or
MVP
MVP

There shouldn't be any problem with just a single value when using Subfield().

I'm not sure what you mean insofar as num and curly braces. You could use PurgeChar(YourString,'{}') if your strings have curly brackets that you want to remove and then format as num(), if that's what you mean?

juliakhaa
Creator
Creator
Author

Yeah, I tried the last one and this worked, thank you, you really helped me