<?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: 'Substitute' question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077610#M637295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just noticed the difference as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zeros at the end vs. Zeros at after the second hyphen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Apr 2016 22:49:24 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-07T22:49:24Z</dc:date>
    <item>
      <title>'Substitute' question</title>
      <link>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077604#M637289</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;My first post/question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm loading data from multiple sources, and the &lt;STRONG&gt;ProductId&lt;/STRONG&gt; is formatted in different ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In most sources its formatted like below (&lt;STRONG&gt;goal&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;183552000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;183552001&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;183552012&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;183552123&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in some sources it looks like below (&lt;STRONG&gt;needs to be formatted&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;18-3552&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;18-3552-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;18-3552-12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;18-3552-123&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;So first of all I need to get rid of the " - ", but that I can solve with substitute. But what I'm struggling with is how I deal with adding the zeros before the last number(s), making them all the same length.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any ideas on how to solve this would be greatly appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 19:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077604#M637289</guid>
      <dc:creator />
      <dc:date>2016-04-07T19:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: 'Substitute' question</title>
      <link>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077605#M637290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;Num(PurgeChar(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="text-decoration: line-through;"&gt;ProductId, '-'), '000000000')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;PurgeChar(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;ProductId, '-') * Pow(10, (9 - Len(&lt;STRONG style="font-size: 13.3333px;"&gt;PurgeChar(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;ProductId, '-'))))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 20:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077605#M637290</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-07T20:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: 'Substitute' question</title>
      <link>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077606#M637291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Test script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; PurgeChar(ProductId, '-') * Pow(10, (9 - Len(PurgeChar(ProductId, '-')))) as Test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProductId&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;18-3552&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;18-3552-1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;18-3552-12&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;18-3552-123&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/120973_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 20:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077606#M637291</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-07T20:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: 'Substitute' question</title>
      <link>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077607#M637292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Subfield(ProductId,'-',1)&amp;amp;Subfield(ProductId,'-',2)&amp;amp;num(Subfield(ProductId&amp;amp;'-0','-',3),'000') as Test;&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;ProductId&lt;/P&gt;&lt;P&gt;18-3552&lt;/P&gt;&lt;P&gt;18-3552-1&lt;/P&gt;&lt;P&gt;18-3552-12&lt;/P&gt;&lt;P&gt;18-3552-123&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" 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;ProductId&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;Test&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;18-3552&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;183552000&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;18-3552-1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;183552001&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;18-3552-12&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;183552012&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;18-3552-123&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;183552123&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 21:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077607#M637292</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-07T21:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: 'Substitute' question</title>
      <link>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077608#M637293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much! Works like a charm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 22:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077608#M637293</guid>
      <dc:creator />
      <dc:date>2016-04-07T22:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: 'Substitute' question</title>
      <link>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077609#M637294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you noticed the little difference in table results &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 22:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077609#M637294</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-07T22:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: 'Substitute' question</title>
      <link>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077610#M637295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just noticed the difference as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zeros at the end vs. Zeros at after the second hyphen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 22:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077610#M637295</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-07T22:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: 'Substitute' question</title>
      <link>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077611#M637296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌I hadn't noticed - was thinking it will be tomorrows project to learn how both of your solutions / functions actually work and how they differ &lt;SPAN style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 22:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substitute-question/m-p/1077611#M637296</guid>
      <dc:creator />
      <dc:date>2016-04-07T22:53:02Z</dc:date>
    </item>
  </channel>
</rss>

