<?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 Subfield() function Problem ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subfield-function-Problem/m-p/833775#M293322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my transformations i am using subfield() function to get First meal in/out times, second meal in/out times from a string(Meal_times).&lt;/P&gt;&lt;P&gt;it is working fine for small set of data, while i am using with&amp;nbsp; real time (millions of records) it is not working, it is taking ages to load and also it seems to be never ending load. I have gone through few community links but i didn't understood them well ref:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-6998"&gt;https://community.qlik.com/docs/DOC-6998&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/589691#589691"&gt;&lt;STRONG&gt;https://community.qlik.com/message/589691#589691&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/23109"&gt;jagan&lt;/A&gt;&amp;nbsp; &lt;A href="https://community.qlik.com/qlik-users/3136"&gt;rbecher&lt;/A&gt;&amp;nbsp; here they are talking about splitting, how can i resolve this problem by using splitting in my scenario. Please find attached QVW and link &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;for my &lt;/SPAN&gt;query&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/762999#762999"&gt;https://community.qlik.com/message/762999#762999&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ganesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2015 11:18:02 GMT</pubDate>
    <dc:creator>ganeshreddy</dc:creator>
    <dc:date>2015-05-11T11:18:02Z</dc:date>
    <item>
      <title>Subfield() function Problem ?</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-function-Problem/m-p/833775#M293322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my transformations i am using subfield() function to get First meal in/out times, second meal in/out times from a string(Meal_times).&lt;/P&gt;&lt;P&gt;it is working fine for small set of data, while i am using with&amp;nbsp; real time (millions of records) it is not working, it is taking ages to load and also it seems to be never ending load. I have gone through few community links but i didn't understood them well ref:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-6998"&gt;https://community.qlik.com/docs/DOC-6998&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/589691#589691"&gt;&lt;STRONG&gt;https://community.qlik.com/message/589691#589691&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/23109"&gt;jagan&lt;/A&gt;&amp;nbsp; &lt;A href="https://community.qlik.com/qlik-users/3136"&gt;rbecher&lt;/A&gt;&amp;nbsp; here they are talking about splitting, how can i resolve this problem by using splitting in my scenario. Please find attached QVW and link &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;for my &lt;/SPAN&gt;query&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/762999#762999"&gt;https://community.qlik.com/message/762999#762999&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ganesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 11:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-function-Problem/m-p/833775#M293322</guid>
      <dc:creator>ganeshreddy</dc:creator>
      <dc:date>2015-05-11T11:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield() function Problem ?</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-function-Problem/m-p/833776#M293323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to serialize all your time registrations for every Employee, just like in the example for Emp_ID = 107. QlikView works better with fewer string manipulations and more pure row data operations.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to tune a few things inbetween (like optionally throwing out all text values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then for every employee and every single day, find the first and last time registration and calculate the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 11:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-function-Problem/m-p/833776#M293323</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-05-11T11:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield() function Problem ?</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-function-Problem/m-p/833777#M293324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried all possibilities which you have mentioned, but no use. Here if i use distinct key word it is working fine but i am loosing records. Can you give me a possible solution. i just referred this link&amp;nbsp; &lt;A href="https://community.qlik.com/docs/DOC-4657"&gt;The Secret Life of SubField&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ganesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 12:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-function-Problem/m-p/833777#M293324</guid>
      <dc:creator>ganeshreddy</dc:creator>
      <dc:date>2015-05-11T12:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield() function Problem ?</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-function-Problem/m-p/833778#M293325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I meant wass something to improve performance (and I guess you didn't try this yet, or performance wouldn't be an issue anymore). To serialize the information, you can try omething like this. The script snippet loads from the INLINE table fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Table2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOCONCATENATE &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD &lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;RowNo() AS RID, &lt;/SPAN&gt;Date, [EMP ID], subfield(Meal_Times, '|') AS Event &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT EMP_TIME;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Table3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOCONCATENATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD RID, Date, [EMP ID], Event, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(Event, '-', 1) AS Start, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(Event, '-', 2) AS Stop&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT Table2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ORDER BY Date, [EMP ID], RID;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP Table Table2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP Table EMP_TIME;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You now have a table with serialized events. Time periods will be split in a start and stop time. RID is used to restore the original order, otherwise you should use StartTime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the important questions: what are you trying to figure out, and what defines "a meal"? The break between Stop and Start times? Something else as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 15:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-function-Problem/m-p/833778#M293325</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-05-11T15:31:34Z</dc:date>
    </item>
  </channel>
</rss>

