<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Splitting Cell Data into a new row in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Splitting-Cell-Data-into-a-new-row/m-p/1024826#M464314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Case #&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Participant Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Primary Result&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Role in Case&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1. John Doe&lt;/P&gt;&lt;P&gt;2. Jane Doe&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1. Termination&lt;/P&gt;&lt;P&gt;2. First Written Warning&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1. Implicated Person&lt;/P&gt;&lt;P&gt;2. Implicated Person&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;56789&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1. Mike Miller&lt;/P&gt;&lt;P&gt;2. John Smith&lt;/P&gt;&lt;P&gt;3. Joe Montana&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1. Unsubstantiated&lt;/P&gt;&lt;P&gt;2. Unsubstantiated&lt;/P&gt;&lt;P&gt;3. Coaching/Informal Guidance&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P style="font-size: 13.3333px;"&gt;1. Implicated Person&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2. Implicated Person&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3. Implicated Person&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a spreadsheet with cells similar to the above table. I need to be able to do a count of how many results we have (5 terminations, 3 first written warnings etc). The cells participant name, primary result and role in case have multiple lines in one cell. Is there a way to split this data out so that they are on a new line (row) but maintain the case #? Or can I keep them as they are but still count by term?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My final outcome is that I need to count the number of unsubstantiated, coaching, verbal warning, first written warning, resignation and termination counts for the report. Generally each case number will have 1-4 of these primary results because multiple people were associated with the event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wasn't sure if this was something I would do when loading the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Apr 2016 19:13:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-04-26T19:13:22Z</dc:date>
    <item>
      <title>Splitting Cell Data into a new row</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-Cell-Data-into-a-new-row/m-p/1024826#M464314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Case #&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Participant Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Primary Result&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Role in Case&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1. John Doe&lt;/P&gt;&lt;P&gt;2. Jane Doe&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1. Termination&lt;/P&gt;&lt;P&gt;2. First Written Warning&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1. Implicated Person&lt;/P&gt;&lt;P&gt;2. Implicated Person&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;56789&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1. Mike Miller&lt;/P&gt;&lt;P&gt;2. John Smith&lt;/P&gt;&lt;P&gt;3. Joe Montana&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1. Unsubstantiated&lt;/P&gt;&lt;P&gt;2. Unsubstantiated&lt;/P&gt;&lt;P&gt;3. Coaching/Informal Guidance&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P style="font-size: 13.3333px;"&gt;1. Implicated Person&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2. Implicated Person&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3. Implicated Person&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a spreadsheet with cells similar to the above table. I need to be able to do a count of how many results we have (5 terminations, 3 first written warnings etc). The cells participant name, primary result and role in case have multiple lines in one cell. Is there a way to split this data out so that they are on a new line (row) but maintain the case #? Or can I keep them as they are but still count by term?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My final outcome is that I need to count the number of unsubstantiated, coaching, verbal warning, first written warning, resignation and termination counts for the report. Generally each case number will have 1-4 of these primary results because multiple people were associated with the event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wasn't sure if this was something I would do when loading the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 19:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-Cell-Data-into-a-new-row/m-p/1024826#M464314</guid>
      <dc:creator />
      <dc:date>2016-04-26T19:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Cell Data into a new row</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-Cell-Data-into-a-new-row/m-p/1024827#M464315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌please post a sample file to test solutions with.&lt;/P&gt;&lt;P&gt;Maybe subfield() could solve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 20:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-Cell-Data-into-a-new-row/m-p/1024827#M464315</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-04-26T20:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Cell Data into a new row</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-Cell-Data-into-a-new-row/m-p/1024828#M464316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please provide sample data along with the desired output format so that it will be helpful for us to understand &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 11:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-Cell-Data-into-a-new-row/m-p/1024828#M464316</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-04-27T11:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Cell Data into a new row</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-Cell-Data-into-a-new-row/m-p/1024829#M464317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help. I've attached a sample data set. The first tab is what would be loaded into QV. My goal would be to do a pivot table to get the counts needed to generate what is found in columns AD-AM on the second tab. Column X is really the only column that I need to split the data. I tried SubField but I don't have a good delimiter that I can use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 13:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-Cell-Data-into-a-new-row/m-p/1024829#M464317</guid>
      <dc:creator />
      <dc:date>2016-04-27T13:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Cell Data into a new row</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-Cell-Data-into-a-new-row/m-p/1024830#M464318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your query column X is the only thing you need to split right. Then could you please see the below script and let me know this is you were expecting and anything I missed out. I splitted the column X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load subfield(replace([Primary Participant Result],CHR(10),';'),';') as [Primary Participant Result]&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [-Load into QV]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Sreeman.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 18:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-Cell-Data-into-a-new-row/m-p/1024830#M464318</guid>
      <dc:creator />
      <dc:date>2016-04-27T18:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Cell Data into a new row</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-Cell-Data-into-a-new-row/m-p/1024831#M464319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_214615_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/122920_QlikCommunity_Thread_214615_Pic1.JPG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_214615_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/122922_QlikCommunity_Thread_214615_Pic2.JPG" style="height: 400px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14617937946007565" jivemacro_uid="_14617937946007565"&gt;
&lt;P&gt;SET vSplitRows = If(SubField($1,Chr(10),IterNo()) like IterNo()&amp;amp;'. *', SubField(SubField($1,Chr(10),IterNo()),IterNo()&amp;amp;'. ',2), SubField($1,Chr(10),IterNo()));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;LOAD RecNo() as ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Assigned Tier], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Organization/Building name], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Location/Address], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; City, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [State/Province], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Case Number], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Issue, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Case Status], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Intake Method], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Date Opened], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Date Closed], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Case Creator], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Details, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Significant, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Impact Rating], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Primary Case Outcome], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Action Taken], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Primary Assignee Function]&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="" data-containerid="-1" data-containertype="-1" data-objectid="223217" data-objecttype="13" href="https://community.qlik.com/servlet/JiveServlet/download/2053-214615-1027906-223217/SAMPLE_Closed+Case+Report+Q1+2016+Data+Only.xlsx"&gt;https://community.qlik.com/servlet/JiveServlet/download/1027906-223217/SAMPLE_Closed%20Case%20Report%20Q1%202016%20Data%20Only.xlsx&lt;/A&gt;&lt;SPAN&gt;] (ooxml, embedded labels, table is [-Load into QV]);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;table2:&lt;/P&gt;
&lt;P&gt;LOAD RecNo() as ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IterNo() as SeqNo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vSplitRows([Participant Name])) as [Participant Name],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vSplitRows([Relationship to Organization/Case])) as [Relationship to Organization/Case],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vSplitRows([Role in Case])) as [Role in Case],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vSplitRows([Primary Participant Result])) as [Primary Participant Result]&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="" data-containerid="-1" data-containertype="-1" data-objectid="223217" data-objecttype="13" href="https://community.qlik.com/servlet/JiveServlet/download/2053-214615-1027906-223217/SAMPLE_Closed+Case+Report+Q1+2016+Data+Only.xlsx"&gt;https://community.qlik.com/servlet/JiveServlet/download/1027906-223217/SAMPLE_Closed%20Case%20Report%20Q1%202016%20Data%20Only.xlsx&lt;/A&gt;&lt;SPAN&gt;] (ooxml, embedded labels, table is [-Load into QV])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;While IterNo()&amp;lt;=RangeMax(SubStringCount([Participant Name],Chr(10)),SubStringCount([Relationship to Organization/Case],Chr(10)),SubStringCount([Role in Case],Chr(10)),SubStringCount([Primary Participant Result],Chr(10)))+1;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 21:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-Cell-Data-into-a-new-row/m-p/1024831#M464319</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-04-27T21:52:58Z</dc:date>
    </item>
  </channel>
</rss>

