<?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: Need to repeat a string function several times in a table and start another one based on the las in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1719276#M54656</link>
    <description>&lt;P&gt;I think the fastest and most simple way would be just to copy &amp;amp; paste the units- and number-parts each 24 times in the load-statement and then adjusting the mid-parameter and the fieldnames. It may look like an ugly task but I assume it won't take much longer as 5 minutes.&lt;/P&gt;&lt;P&gt;The alternatively to it would be to use loops which run from - to with a step of 15 and creates with several variables a concatenated variable-statement which could be then used within the load. Of course it's possible but to develop here a stable solution especially for the sometimes tricky variable-syntax will cost you much more time.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jun 2020 13:37:40 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2020-06-16T13:37:40Z</dc:date>
    <item>
      <title>Need to repeat a string function several times in a table and start another one based on the last</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1718963#M54621</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a table that is composed of just one field and I need to remove the necessary information from the string present in those fields.&lt;/P&gt;&lt;P&gt;Some of these treatments need to be repeated several times.&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;LOAD&lt;BR /&gt;left(@1,10) as Outlet_cod,&lt;BR /&gt;mid(@1,11,3) as Regi_cod,&lt;BR /&gt;mid([@1],14,4) as Dist_cod,&lt;BR /&gt;mid([@1],18,6) as Terr_cod,&lt;BR /&gt;mid([@1],24,1) as Clie_Let,&lt;BR /&gt;mid([@1],25,10) as Fcc_cod,&lt;BR /&gt;&lt;STRONG&gt;mid([@1],35,15) as Units_PeriodNumber,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;mid([@1],395,15) as Values_PeriodNumber,&lt;/STRONG&gt;&lt;BR /&gt;mid([@1],755,10) as WholeSaler_Code&lt;BR /&gt;FROM file.txt;&lt;/P&gt;&lt;P&gt;The mid () in the "Units_PeriodNumber" field must be repeated 24 times. The following "Values_PeriodNumber" also needs to be repeated 24 times, but it starts at the point where the previous mid ends, so in addition to repeating the required amount, it would need to start where the previous one stopped.&lt;/P&gt;&lt;P&gt;Can you guys help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 19:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1718963#M54621</guid>
      <dc:creator>jpsarmet</dc:creator>
      <dc:date>2020-06-15T19:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need to repeat a string function several times in a table and start another one based on the las</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1718987#M54622</link>
      <description>&lt;P&gt;Would you be able to share sample data with example?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 21:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1718987#M54622</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-06-15T21:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need to repeat a string function several times in a table and start another one based on the las</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1719021#M54623</link>
      <description>&lt;P&gt;Sure!&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 00:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1719021#M54623</guid>
      <dc:creator>jpsarmet</dc:creator>
      <dc:date>2020-06-16T00:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need to repeat a string function several times in a table and start another one based on the las</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1719124#M54634</link>
      <description>&lt;P&gt;What is the output you need for those two fields?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 09:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1719124#M54634</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-06-16T09:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need to repeat a string function several times in a table and start another one based on the las</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1719260#M54652</link>
      <description>&lt;P&gt;I need to create a field for each time I have this string repetition occurrence.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;LOAD&lt;BR /&gt;left (@ 1.10) as Outlet_cod,&lt;BR /&gt;mid (@ 1,11,3) as Regi_cod,&lt;BR /&gt;mid ([@ 1], 14,4) at Dist_cod,&lt;BR /&gt;mid ([@ 1], 18,6) as Terr_cod,&lt;BR /&gt;mid ([@ 1], 24,1) as Clie_Let,&lt;BR /&gt;mid ([@ 1], 25,10) as Fcc_cod,&lt;BR /&gt;mid ([@ 1],&lt;STRONG&gt; 35&lt;/STRONG&gt;,15) the Units_PeriodNumber1,&lt;BR /&gt;mid ([@ 1], &lt;STRONG&gt;50&lt;/STRONG&gt;,15) the Units_PeriodNumber2,&lt;BR /&gt;mid ([@ 1], &lt;STRONG&gt;65&lt;/STRONG&gt;,15) the Units_PeriodNumber3,&lt;BR /&gt;... repeat the process until the twenty-fourth time,&lt;STRONG&gt; adding 15 to the past position&lt;/STRONG&gt;&lt;BR /&gt;mid ([@ 1], &lt;STRONG&gt;395&lt;/STRONG&gt;,15) as Values_PeriodNumber1,&lt;BR /&gt;mid ([@ 1], &lt;STRONG&gt;410&lt;/STRONG&gt;,15) as Values_PeriodNumber2,&lt;BR /&gt;mid ([@ 1], &lt;STRONG&gt;425&lt;/STRONG&gt;,15) as Values_PeriodNumber3,&lt;BR /&gt;... repeat the process until the twenty-fourth time, &lt;STRONG&gt;adding 15 to the past position&lt;/STRONG&gt;&lt;BR /&gt;mid ([@ 1], 755,10) as WholeSaler_Code&lt;BR /&gt;FROM file.txt;&lt;/P&gt;&lt;P&gt;Thanks a lot!!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 13:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1719260#M54652</guid>
      <dc:creator>jpsarmet</dc:creator>
      <dc:date>2020-06-16T13:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need to repeat a string function several times in a table and start another one based on the las</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1719262#M54654</link>
      <description>&lt;P&gt;to be honest this is not the good practice to load the data. Probably your text file should have proper delimited like comma or space using which you can load the data in well structured form&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 13:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1719262#M54654</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-06-16T13:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need to repeat a string function several times in a table and start another one based on the las</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1719276#M54656</link>
      <description>&lt;P&gt;I think the fastest and most simple way would be just to copy &amp;amp; paste the units- and number-parts each 24 times in the load-statement and then adjusting the mid-parameter and the fieldnames. It may look like an ugly task but I assume it won't take much longer as 5 minutes.&lt;/P&gt;&lt;P&gt;The alternatively to it would be to use loops which run from - to with a step of 15 and creates with several variables a concatenated variable-statement which could be then used within the load. Of course it's possible but to develop here a stable solution especially for the sometimes tricky variable-syntax will cost you much more time.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 13:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1719276#M54656</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-06-16T13:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need to repeat a string function several times in a table and start another one based on the las</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1719527#M54679</link>
      <description>&lt;P&gt;Hello Jpsarmet,&lt;/P&gt;&lt;P&gt;To create a generic solution for splitting fixed width records, you can define an inline table for width of the fields and then by using iterno() and while loop while loading, you can use width-inline table.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 08:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-repeat-a-string-function-several-times-in-a-table-and/m-p/1719527#M54679</guid>
      <dc:creator>SerhanKaraer</dc:creator>
      <dc:date>2020-06-17T08:10:28Z</dc:date>
    </item>
  </channel>
</rss>

