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: 
micheledenardi
Specialist II
Specialist II

Multi value variable

hi,

i have a problem with multi value variable that qlik show me as: 'value1;value2;value3'  as a single string

there is a function that allow me to split every value of this variable ?   (es. 'value1' 'value2' 'value3')

thank's

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
1 Solution

Accepted Solutions
Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

Use Subfield function to split them as you wish.

=Subfield(MultiVariable,',',1)

Hope this help

View solution in original post

3 Replies
Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

Use Subfield function to split them as you wish.

=Subfield(MultiVariable,',',1)

Hope this help

Anonymous
Not applicable

Hi,

Try:

Left('$(vValue)', Index('$(vValue)', ';')-1) as value1,
Mid('$(vValue)', Index('$(vValue)', ';')+1, 3) as value2,
Right('$(vValue)', Len('$(vValue)')-Index('$(vValue)', ';', 2)) as value3


micheledenardi
Specialist II
Specialist II
Author

Thank Gabriel ! you are right !!!

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.