<?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 Problem with field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-field/m-p/592268#M219601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data as follows&lt;/P&gt;&lt;P&gt;Empid,ShiftAllocated&lt;/P&gt;&lt;P&gt;1,1&lt;/P&gt;&lt;P&gt;2,12&lt;/P&gt;&lt;P&gt;3,13&lt;/P&gt;&lt;P&gt;4,31&lt;/P&gt;&lt;P&gt;5,123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want this data as&lt;/P&gt;&lt;P&gt;Empid,ShiftAllocated&lt;/P&gt;&lt;P&gt;1,1&lt;/P&gt;&lt;P&gt;2,1&lt;/P&gt;&lt;P&gt;2,2&lt;/P&gt;&lt;P&gt;3,1&lt;/P&gt;&lt;P&gt;3,3&lt;/P&gt;&lt;P&gt;4,3&lt;/P&gt;&lt;P&gt;4,1&lt;/P&gt;&lt;P&gt;5,1&lt;/P&gt;&lt;P&gt;5,2&lt;/P&gt;&lt;P&gt;5,3&lt;/P&gt;&lt;P&gt;Please help me with this problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Mar 2014 11:37:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-03T11:37:12Z</dc:date>
    <item>
      <title>Problem with field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-field/m-p/592268#M219601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data as follows&lt;/P&gt;&lt;P&gt;Empid,ShiftAllocated&lt;/P&gt;&lt;P&gt;1,1&lt;/P&gt;&lt;P&gt;2,12&lt;/P&gt;&lt;P&gt;3,13&lt;/P&gt;&lt;P&gt;4,31&lt;/P&gt;&lt;P&gt;5,123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want this data as&lt;/P&gt;&lt;P&gt;Empid,ShiftAllocated&lt;/P&gt;&lt;P&gt;1,1&lt;/P&gt;&lt;P&gt;2,1&lt;/P&gt;&lt;P&gt;2,2&lt;/P&gt;&lt;P&gt;3,1&lt;/P&gt;&lt;P&gt;3,3&lt;/P&gt;&lt;P&gt;4,3&lt;/P&gt;&lt;P&gt;4,1&lt;/P&gt;&lt;P&gt;5,1&lt;/P&gt;&lt;P&gt;5,2&lt;/P&gt;&lt;P&gt;5,3&lt;/P&gt;&lt;P&gt;Please help me with this problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 11:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-field/m-p/592268#M219601</guid>
      <dc:creator />
      <dc:date>2014-03-03T11:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-field/m-p/592269#M219602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the logic behind this result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 11:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-field/m-p/592269#M219602</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-03T11:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-field/m-p/592270#M219603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think it is problem of delimiter &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if u upload Sample Data file It will be Easy For &lt;/P&gt;&lt;P&gt;us&amp;nbsp; to give Solution&lt;/P&gt;&lt;P&gt;it is it .Csv or .txt type file ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 11:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-field/m-p/592270#M219603</guid>
      <dc:creator />
      <dc:date>2014-03-03T11:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-field/m-p/592271#M219604</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;DATA:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Empid,ShiftAllocated&lt;/P&gt;&lt;P&gt;1,1&lt;/P&gt;&lt;P&gt;2,12&lt;/P&gt;&lt;P&gt;3,13&lt;/P&gt;&lt;P&gt;4,31&lt;/P&gt;&lt;P&gt;5,123&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=0 to NoOfRows('DATA') - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Let vEmpid = Peek('Empid', $(i), 'DATA');&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Let vLen = len(Peek('ShiftAllocated', $(i), 'DATA'));&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; For j=1 to $(vLen)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vEmpid) as TEST,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mid(ShiftAllocated, $(j), 1) as TEST2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident DATA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where Empid = $(vEmpid)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; next j&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Aurélien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 11:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-field/m-p/592271#M219604</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2014-03-03T11:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-field/m-p/592272#M219605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code into your script&lt;/P&gt;&lt;P&gt;//if there is delimiter then try this&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD SubField(ShiftAllocated,',') as New,* INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Empid, ShiftAllocated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, "1,2"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, "1,3"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, "3,1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, "1,2,3"&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 11:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-field/m-p/592272#M219605</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2014-03-03T11:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-field/m-p/592273#M219606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;RESULT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="160"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="65"&gt;Empid&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="95"&gt;ShiftAllocated&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCRIPT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;// add a separator @ to single char (1,2,3) with mapsubstring&lt;/P&gt;&lt;P&gt;// remove last separator &lt;/P&gt;&lt;P&gt;// use subfield&amp;nbsp; to generate rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map1:&lt;/P&gt;&lt;P&gt;mapping load * inline [&lt;/P&gt;&lt;P&gt;1, 1@&lt;/P&gt;&lt;P&gt;1, 1@&lt;/P&gt;&lt;P&gt;2, 2@&lt;/P&gt;&lt;P&gt;3, 3@&lt;/P&gt;&lt;P&gt;] ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S:&lt;/P&gt;&lt;P&gt;load Empid, ShiftAllocated, left(Newcol, len(Newcol)-1) as Newcol;&lt;/P&gt;&lt;P&gt;load Empid, ShiftAllocated, MapSubstring ('map1', ShiftAllocated) as Newcol;&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;Empid, ShiftAllocated&lt;/P&gt;&lt;P&gt;1,1&lt;/P&gt;&lt;P&gt;2,12&lt;/P&gt;&lt;P&gt;3,13&lt;/P&gt;&lt;P&gt;4,31&lt;/P&gt;&lt;P&gt;5,123&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load Empid, SubField(Newcol, '@') as ShiftAllocated&lt;/P&gt;&lt;P&gt;Resident S;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table S;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 12:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-field/m-p/592273#M219606</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-03-03T12:04:50Z</dc:date>
    </item>
  </channel>
</rss>

