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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
dnowebdn
Contributor
Contributor

tesst

Hi,

I would like to have a solution on the follwing scenario

12 Replies
petter
Partner - Champion III
Partner - Champion III

Here is a solution actually:

2018-08-10 20_34_46-_Multiple Lines in Excel Cell into Multiple Rows in Qlik Sense - My new sheet _ .png

T:

LOAD

    Module,

    Team AS Team_,

    Subject AS Subject_

FROM [LIB://DATA/Multiple Lines in Excel Cell into Multiple Rows in Qlik Sense.xlsx]

(ooxml, embedded labels, table is Multiline);


T_Lines:

LOAD

  Module,

  If( Peek('Module')=Module, Peek('R#')+1, 1) AS R#,

  SubField(Team_,Chr(10)) AS Team

RESIDENT

  T;


OUTER JOIN


LOAD

  Module,

  If( Peek('Module')=Module, Peek('R#')+1, 1) AS R#,

  SubField(Subject_,Chr(10)) AS Subject

RESIDENT

  T;


T_LINES:

NOCONCATENATE LOAD

  Module,

  R#,

  If( IsNull(Team) , '' , Team) AS Team,

  If( IsNull(Subject) , '' , Subject) AS Subject

RESIDENT

  T_Lines

ORDER BY

  Module,R#;


DROP TABLE T_Lines;

DROP FIELDS Team_,Subject_;

dnowebdn
Contributor
Contributor
Author

Hi

i tried however i coulnot acheive 100% with my data.
can you please help check

dnowebdn
Contributor
Contributor
Author

Forslag petter-s?