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: 
hd94
Contributor II
Contributor II

Input Variable multiple value --> add rows

Hello, 

I use an input variable and i want to add rows depend numbers values separate by ';'. 

If i put one value in my input variable : i want this , it's working

hd94_0-1654069667291.png

but when i put 2 values 

hd94_1-1654069738961.png

I want this result , i tried with subfield in the table. 

toto | 971880

toto| 971940

titi | 971880

titi | 971940

Someone can help me. 

Thanks a lot. 

Labels (2)
5 Replies
vinieme12
Champion III
Champion III

try 

(toto|titi)

 

refer this article for more

https://community.qlik.com/t5/Qlik-Design-Blog/The-Expression-Search/ba-p/1463907

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
abhijitnalekar
Specialist II
Specialist II

Hi @hd94 ,

you can achieve the same using the subfield function.

Please refer to the below links.

https://community.qlik.com/t5/QlikView-App-Dev/Convert-Comma-Separated-column-value-to-rows/m-p/1181...

https://community.qlik.com/t5/QlikView-App-Dev/split-comma-separated-values-in-column-into-rows/td-p...

 

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!
hd94
Contributor II
Contributor II
Author

I tried with (toto|titi) , and subfield(field, '|') it's not working. 

hd94
Contributor II
Contributor II
Author

I read this two Topics, with a load in a script, i already used the subfield, it's ok,  but with an input variable in my sheet it's not working. 

Do you have an idea ? 

 

vinieme12
Champion III
Champion III

If your field is a string value like   'toto;titi;something;somethingelse'    then you need to split them in the load script not in the chart

DataTable:

Load 

field

subfield(field,';')  as newfield

From YourDataSource;

 

Then just use newfield in your charts ; 

 

 What exactly are trying to achieve with the variable?

 

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.