<?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: Convert Wildcards to Range of Records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550607#M691012</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;Assuming that wildchars can occur in the end of the zip code, you could convert it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; zipwildchar,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(zipwildchar=Previous(zipwildchar), peek(zip)+1, replace(zipwildchar, '*', '0')) as zip&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;zipwildchar&lt;/P&gt;&lt;P&gt;123**&lt;/P&gt;&lt;P&gt;9490*&lt;/P&gt;&lt;P&gt;87124&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;while iterno()&amp;lt;=pow(10,SubStringCount(zipwildchar, '*'));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2013 19:50:12 GMT</pubDate>
    <dc:creator>whiteline</dc:creator>
    <dc:date>2013-08-29T19:50:12Z</dc:date>
    <item>
      <title>Convert Wildcards to Range of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550606#M691011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a list of zip codes, some of which are wildcarded with '*'.&amp;nbsp; Each asterisk represents one digit.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;9490* equates to 94900 through 94909&lt;/P&gt;&lt;P&gt;949** equates to 94900 through 94999&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example input:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid #000000; height: 65px; width: 63px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;&lt;STRONG&gt;zip&lt;/STRONG&gt;&lt;/P&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;87124&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;9490*&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;123**&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like the output to look like:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="249" style="border: 1px solid #000000; width: 79px; height: 249px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;zip&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;87124&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;94900&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;94901&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;94909&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12301&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12399&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The "...", of course, are all the other zip codes that would be in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how I can go about doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 18:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550606#M691011</guid>
      <dc:creator />
      <dc:date>2013-08-29T18:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Wildcards to Range of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550607#M691012</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;Assuming that wildchars can occur in the end of the zip code, you could convert it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; zipwildchar,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(zipwildchar=Previous(zipwildchar), peek(zip)+1, replace(zipwildchar, '*', '0')) as zip&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;zipwildchar&lt;/P&gt;&lt;P&gt;123**&lt;/P&gt;&lt;P&gt;9490*&lt;/P&gt;&lt;P&gt;87124&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;while iterno()&amp;lt;=pow(10,SubStringCount(zipwildchar, '*'));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 19:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550607#M691012</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2013-08-29T19:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Wildcards to Range of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550608#M691013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yourbase:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 87124&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9490*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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('yourbase') -1&lt;/P&gt;&lt;P&gt;&amp;nbsp; let value = Peek('F1', i,'yourbase');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if Index('$(value)','*') &amp;gt; 0 then // your value has at least one '*'&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vStart = Replace('$(value)','*','0');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vEnd = Replace('$(value)','*','9');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Base:&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; $(vStart) + RowNo() - 1 as Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoGenerate $(vEnd) - $(vStart);&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; else &lt;/P&gt;&lt;P&gt;&amp;nbsp; Base:&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; $(value) as Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoGenerate 1; &lt;/P&gt;&lt;P&gt;&amp;nbsp; endif &lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 19:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550608#M691013</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-08-29T19:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Wildcards to Range of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550609#M691014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since I can assume that the asterisks are at the end (no potential of numbers between them), this works perfectly.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 20:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550609#M691014</guid>
      <dc:creator />
      <dc:date>2013-08-29T20:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Wildcards to Range of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550610#M691015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clever,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason the loops breaks 123** into a range of 12310 through 12409 instead of 12300 through 12399. The RowNo() in Base doesn't reset with each iteration in the loop.&amp;nbsp; Changing the order of the inline values changes the output with this script.&amp;nbsp; If RowNo() could be reset, this will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 20:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550610#M691015</guid>
      <dc:creator />
      <dc:date>2013-08-29T20:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Wildcards to Range of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550611#M691016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to replace &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;RowNo()&lt;/SPAN&gt; with RecNo(). The first one counts the resulting table while the second - the source table, the one that is to concatenate in this example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 20:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550611#M691016</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2013-08-29T20:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Wildcards to Range of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550612#M691017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked! Also, needed to add + 1 to the Autogenerate&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; $(vEnd) - $(vStart).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 20:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550612#M691017</guid>
      <dc:creator />
      <dc:date>2013-08-29T20:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Convert Wildcards to Range of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550613#M691018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more solution - see attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 20:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550613#M691018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-29T20:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Wildcards to Range of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550614#M691019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that it works only for two wildchars.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 20:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550614#M691019</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2013-08-29T20:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Wildcards to Range of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550615#M691020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually this exaample is for one and two.&amp;nbsp; For three, there sholud be additional changes.&lt;/P&gt;&lt;P&gt;(Can place it all in an external loop... )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 20:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550615#M691020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-29T20:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Wildcards to Range of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550616#M691021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I thought about that... There would be another LOAD to determine the maximum number of asterix.&lt;/P&gt;&lt;P&gt;I think the solution with loops could be more flexible.&lt;/P&gt;&lt;P&gt;For example without limitation that the wildchars should be in the end &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 21:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550616#M691021</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2013-08-29T21:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Wildcards to Range of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550617#M691022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use Recno() instead, Will fix this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 15:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Wildcards-to-Range-of-Records/m-p/550617#M691022</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-08-30T15:58:28Z</dc:date>
    </item>
  </channel>
</rss>

