<?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: Loading number and text formats in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122339#M632240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if ItemID is already fixed, but may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$(ConcatKey('$(varCompanyID)', &lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(IsNum(ItemID), Num(ItemID, '##'), ItemID))) as _ItemID&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Aug 2016 20:09:53 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-08-03T20:09:53Z</dc:date>
    <item>
      <title>Loading number and text formats</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122331#M632232</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;I have an issue when loading items into QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some items load as text and some load as numbers. Some have '-' and some have letters in the string. View the image below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue with the item numbers that load as numbers. Instead of loading as item # 15430, it loads as item # 15430.0000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using TRIM but that doesn't work. I tried NUM but then it drops all of the item #'s formatted with a '-' or letter in them. I tried TEXT but that just aligns everything on the left.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do this in the load script rather than on the object for example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be great!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="item num.PNG" class="jive-image image-1" src="/legacyfs/online/133481_item num.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 15:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122331#M632232</guid>
      <dc:creator />
      <dc:date>2016-08-03T15:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Loading number and text formats</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122332#M632233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about bringing them all as text:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Text(_ItemID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 15:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122332#M632233</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T15:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Loading number and text formats</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122333#M632234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;purgchar(_ItemID,'0123456789')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 15:20:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122333#M632234</guid>
      <dc:creator />
      <dc:date>2016-08-03T15:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Loading number and text formats</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122334#M632235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Text(_ItemID) just moves everything left&lt;/P&gt;&lt;P&gt;&lt;IMG alt="item as text.PNG" class="jive-image image-1" src="/legacyfs/online/133482_item as text.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 15:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122334#M632235</guid>
      <dc:creator />
      <dc:date>2016-08-03T15:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Loading number and text formats</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122335#M632236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to keep the ones formatted as 123-521 and 134G for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is with the ones like 1543.000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 15:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122335#M632236</guid>
      <dc:creator />
      <dc:date>2016-08-03T15:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Loading number and text formats</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122336#M632237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(IsNum(_ItemID), Num(_ItemID, '##'), _ItemID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 16:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122336#M632237</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T16:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Loading number and text formats</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122337#M632238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=num( KeepChar('153000','0123456789'),'#.##0')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 16:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122337#M632238</guid>
      <dc:creator />
      <dc:date>2016-08-03T16:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Loading number and text formats</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122338#M632239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I add my keys to it then it does not work unfortunately. Any idea? &lt;/P&gt;&lt;P&gt;&lt;IMG alt="p1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133510_p1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="p2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/133517_p2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 20:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122338#M632239</guid>
      <dc:creator />
      <dc:date>2016-08-03T20:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Loading number and text formats</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122339#M632240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if ItemID is already fixed, but may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$(ConcatKey('$(varCompanyID)', &lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(IsNum(ItemID), Num(ItemID, '##'), ItemID))) as _ItemID&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 20:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122339#M632240</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T20:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Loading number and text formats</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122340#M632241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an error message which I believe is because the amount of expressions in the variable &lt;/P&gt;&lt;P&gt;&lt;IMG alt="p3.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133521_p3.PNG" style="height: 121px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 20:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122340#M632241</guid>
      <dc:creator />
      <dc:date>2016-08-03T20:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Loading number and text formats</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122341#M632242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the looks of things, it seems that the second half of the expression isn't taken into the variable you have created. Would you be able to share the definition of &lt;STRONG&gt;vConcatKey &lt;/STRONG&gt;variable? You might need to add $2 in addition to $1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 21:56:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122341#M632242</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T21:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Loading number and text formats</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122342#M632243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ConcatKey = if(trim($1)='' or IsNull($1), '*NONE', trim($1)) &amp;amp; '%' &amp;amp; if(trim($2)='' or IsNull($2), '*NONE', trim($2));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 13:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-number-and-text-formats/m-p/1122342#M632243</guid>
      <dc:creator />
      <dc:date>2016-08-08T13:18:39Z</dc:date>
    </item>
  </channel>
</rss>

