<?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 Weird requirement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Weird-requirement/m-p/276653#M103189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;Even simpler: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;subfield(rawcolumn, '/') as newcolumn&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style=": ; line-height: 115%; color: #000000; font-size: 10pt; sans-serif&amp;amp;quot: ; font-family: &amp;amp;quot; Arial&amp;amp;quot: ; ,&amp;amp;quot: ;"&gt;I.e. if you omit the third parameter of the subfield function, the Load statement will loop over that record 7 times.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Jan 2012 18:06:11 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2012-01-14T18:06:11Z</dc:date>
    <item>
      <title>Weird requirement</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-requirement/m-p/276650#M103186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-family: arial; text-align: -webkit-auto; font-size: small;"&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; text-align: -webkit-auto; font-size: small;"&gt;I have a table with a very weird column. There are multiple values stored in the column and are separated by a forward slash(‘/’). Also, the number of values in that column are fixed(in my case 7). Values are stored in the following format in the column:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; text-align: -webkit-auto; font-size: small;"&gt;Q34VS/V734.22/V55.90/S627.4////&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; text-align: -webkit-auto; font-size: small;"&gt;V34VS/V12.2/MM5.55/T33.4////&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; text-align: -webkit-auto; font-size: small;"&gt;There could be blank values in some of the “slots” as you can see in the last 3 places in the above example. There are 4 other columns in that table but those columns store usual numeric or text values like most of our tables do. Any idea how to get the data so that each value in the // slot is in a separate row such as below? Please advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; text-align: -webkit-auto; font-size: small;"&gt;Q34VS&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; text-align: -webkit-auto; font-size: small;"&gt;V734.22&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; text-align: -webkit-auto; font-size: small;"&gt;V55.90&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; text-align: -webkit-auto; font-size: small;"&gt;S627.4&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; text-align: -webkit-auto; font-size: small;"&gt;“blank”&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; text-align: -webkit-auto; font-size: small;"&gt;“blank”&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; text-align: -webkit-auto; font-size: small;"&gt;“blank”&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2012 04:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-requirement/m-p/276650#M103186</guid>
      <dc:creator />
      <dc:date>2012-01-14T04:12:30Z</dc:date>
    </item>
    <item>
      <title>Weird requirement</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-requirement/m-p/276651#M103187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peaceout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to convert the data into columns, then use a "crosstable" function to turn the columns into&amp;nbsp; rows (works as like an "un-pivot" function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To convert them into columns, the easiest thing would be to specify the delimiter when loading, which you can do if it is loaded from a text file... if not, you can use a series of functions (there are a number of ways to do this) to manually separate the text into columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;raw:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AA&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q34VS/V734.22/V55.90/S627.4////&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; V34VS/V12.2/MM5.55/T33.4////&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;left join (raw)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load AA, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;left(AA,index(AA,'/',1)-1) as col1,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;mid(AA,index(AA,'/',1)+1,index(AA,'/',2)-index(AA,'/',1)-1) as col2,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;mid(AA,index(AA,'/',2)+1,index(AA,'/',3)-index(AA,'/',2)-1) as col3,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;mid(AA,index(AA,'/',3)+1,index(AA,'/',4)-index(AA,'/',3)-1) as col4,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;mid(AA,index(AA,'/',4)+1,index(AA,'/',5)-index(AA,'/',4)-1) as col5&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident raw;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To turn the columns back into rows, use the "crosstable" statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; crosstabbed:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;crosstable(Colnumber,DATA) load * resident raw;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will produce a table like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="0" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;AA&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Colnumber&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Q34VS/V734.22/V55.90/S627.4////&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;col1&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Q34VS&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Q34VS/V734.22/V55.90/S627.4////&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;col2&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V734.22&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Q34VS/V734.22/V55.90/S627.4////&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;col3&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V55.90&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Q34VS/V734.22/V55.90/S627.4////&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;col4&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;S627.4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Q34VS/V734.22/V55.90/S627.4////&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;col5&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V34VS/V12.2/MM5.55/T33.4////&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;col1&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V34VS&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V34VS/V12.2/MM5.55/T33.4////&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;col2&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V12.2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V34VS/V12.2/MM5.55/T33.4////&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;col3&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;MM5.55&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V34VS/V12.2/MM5.55/T33.4////&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;col4&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;T33.4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V34VS/V12.2/MM5.55/T33.4////&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;col5&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps with your far-out requirement &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&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;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2012 08:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-requirement/m-p/276651#M103187</guid>
      <dc:creator />
      <dc:date>2012-01-14T08:31:37Z</dc:date>
    </item>
    <item>
      <title>Weird requirement</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-requirement/m-p/276652#M103188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with a loop like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 1 to 7&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(rawcolumn, '/', $(i)) as newcolumn&lt;/P&gt;&lt;P&gt;FROM datasource&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2012 08:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-requirement/m-p/276652#M103188</guid>
      <dc:creator />
      <dc:date>2012-01-14T08:59:12Z</dc:date>
    </item>
    <item>
      <title>Weird requirement</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-requirement/m-p/276653#M103189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;Even simpler: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;subfield(rawcolumn, '/') as newcolumn&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style=": ; line-height: 115%; color: #000000; font-size: 10pt; sans-serif&amp;amp;quot: ; font-family: &amp;amp;quot; Arial&amp;amp;quot: ; ,&amp;amp;quot: ;"&gt;I.e. if you omit the third parameter of the subfield function, the Load statement will loop over that record 7 times.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2012 18:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-requirement/m-p/276653#M103189</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-01-14T18:06:11Z</dc:date>
    </item>
  </channel>
</rss>

