<?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 Re: Splitting a column into 2 separate columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Splitting-a-column-into-2-separate-columns/m-p/1421954#M814027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/176710_Capture1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/176711_Capture2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Sep 2017 05:27:56 GMT</pubDate>
    <dc:creator>satishqlik</dc:creator>
    <dc:date>2017-09-15T05:27:56Z</dc:date>
    <item>
      <title>Splitting a column into 2 separate columns</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-column-into-2-separate-columns/m-p/1421950#M814023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;I wanted to split a&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt; single column into 2 separate columns in the Script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;Logic:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;One column which has field values which contains _H&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;and another Column which doesn't have _H.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;IMG alt="Divide.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/176670_Divide.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;Thanks,&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;SP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-column-into-2-separate-columns/m-p/1421950#M814023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a column into 2 separate columns</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-column-into-2-separate-columns/m-p/1421951#M814024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Index([End ID], '_H') = 6, [End ID]) AS NewField2,&lt;/P&gt;&lt;P&gt;IF(Index(&lt;SPAN style="font-size: 13.3333px;"&gt;[End ID]&lt;/SPAN&gt;', '_H') &amp;lt;&amp;gt; 6, [End ID]) AS NewField1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(FindOneOf(Replace([END ID], '_H', '@'), '@') &amp;gt; 0, [END ID]) AS NewField2,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;IF(FindOneOf(Replace([END ID], '_H', '@'), '@') = 0, [END ID]) AS NewField1,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 21:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-column-into-2-separate-columns/m-p/1421951#M814024</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-09-14T21:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a column into 2 separate columns</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-column-into-2-separate-columns/m-p/1421952#M814025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this will help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 21:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-column-into-2-separate-columns/m-p/1421952#M814025</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-09-14T21:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a column into 2 separate columns</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-column-into-2-separate-columns/m-p/1421953#M814026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Index&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '_H')&amp;gt;0, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[NewField-With H]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Index&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '_H')=0, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[NewField2-Without H]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ &lt;BR /&gt; ID&lt;BR /&gt; B2700&lt;BR /&gt; B2800&lt;BR /&gt; B2700_H10&lt;BR /&gt; B2800_H10.1&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/176671_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 21:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-column-into-2-separate-columns/m-p/1421953#M814026</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2017-09-14T21:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a column into 2 separate columns</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-column-into-2-separate-columns/m-p/1421954#M814027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/176710_Capture1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/176711_Capture2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 05:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-column-into-2-separate-columns/m-p/1421954#M814027</guid>
      <dc:creator>satishqlik</dc:creator>
      <dc:date>2017-09-15T05:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a column into 2 separate columns</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-column-into-2-separate-columns/m-p/1421955#M814028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(wildmatch([End ID],'*_H*'),[End ID]) as EndID1,&lt;/P&gt;&lt;P&gt;if(not wildmatch([End ID],'*_H*'),[End ID]) as EndID2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pratik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 06:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-column-into-2-separate-columns/m-p/1421955#M814028</guid>
      <dc:creator>mostwanted123</dc:creator>
      <dc:date>2017-09-15T06:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a column into 2 separate columns</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-column-into-2-separate-columns/m-p/1421956#M814029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Index([End ID], '_H') = 6, &lt;STRONG&gt;Max&lt;/STRONG&gt;([End ID])) AS NewField2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Index(&lt;SPAN style="font-size: 13.3333px;"&gt;[End ID]&lt;/SPAN&gt;', '_H') &amp;lt;&amp;gt; 6, &lt;STRONG&gt;Max&lt;/STRONG&gt;([End ID])) AS NewField1&lt;/P&gt;&lt;P&gt;From Source&lt;/P&gt;&lt;P&gt;Group By ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding the Max function and group by would ensure that the data is on the same line and therefore won't have multiple lines for each ID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 07:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-column-into-2-separate-columns/m-p/1421956#M814029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-15T07:47:27Z</dc:date>
    </item>
  </channel>
</rss>

