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: 
Not applicable

Multivaluated cells

Hi Comm,

Does anbody happen to know to script load a multivaluated cell excel file ? cell values are separated by ' ;'

Thanks!

Labels (1)
18 Replies
Not applicable
Author

Hi,

Give me a some sample data and what/how exactly you want?

Vinay

Colin-Albert
Partner - Champion
Partner - Champion

Have a look at the subfield command, this can expand the data into individual rows for each value.


Not applicable
Author

Project                         Contact Name   

WARSAW                    Ana

WARSAW; ITALY        John    

ITALY                         Peter

Above is the excel I have, two columns.

Once I normal load into QVW and later I make a Project filter I have three Projects, but shold be only two.

Does it make sense to you?

Many thanks!

Colin-Albert
Partner - Champion
Partner - Champion

TRY THIS

LOAD

     SUBFIELD(Project, ';') AS Project,

     [Contact Name]

FROM

[PROJDATA.xlsx]

(ooxml, embedded labels, table is Sheet1);

Colin-Albert
Partner - Champion
Partner - Champion

Trim added below to remove extra spaces

LOAD

     trim(SUBFIELD(Project, ';')) AS PROJECT,

     [Contact Name]

FROM

(ooxml, embedded labels, table is Sheet1);

MarcoWedel
MVP
MVP

LOAD Subfield(Project, ';') as Project,

          [Contact Name]

From yourdatasource;

should deliver :

Project                         Contact Name  

WARSAW                    Ana

WARSAW                    John 

ITALY                           John   

ITALY                           Peter

hope this helps

regards

Marco

Not applicable
Author

Thanks Colin, I’m trying now.

De: Colin Albert

Enviado el: lunes, 08 de septiembre de 2014 18:33

Para: Quintero, Borja @ Madrid

Asunto: Re: - Multivaluated cells

Qlik Community<http://community.qlik.com/>

Multivaluated cells

reply from Colin Albert<http://community.qlik.com/people/Colin_Albert?et=watches.email.thread> in Scripting - View the full discussion<http://community.qlik.com/message/604368?et=watches.email.thread#604368>

Not applicable
Author

Hi Colin, negative…☹ did not work, as you see they are not trimmed…any other sugestion?

De: Colin Albert

Enviado el: lunes, 08 de septiembre de 2014 18:33

Para: Quintero, Borja @ Madrid

Asunto: Re: - Multivaluated cells

Qlik Community<http://community.qlik.com/>

Multivaluated cells

reply from Colin Albert<http://community.qlik.com/people/Colin_Albert?et=watches.email.thread> in Scripting - View the full discussion<http://community.qlik.com/message/604368?et=watches.email.thread#604368>

Not applicable
Author

Hi,

Colin & Marco both correct you can use SUBFIELD.

Vinay