<?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: Explain this Urgent in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-Urgent-for-this/m-p/520337#M194453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression you put has bunch of string functions to identify certain pattern and based on which a new field is created. The original table where you have the source field ("SLS_ORG_KEY") is in Sales_Org_Tab table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you are already familiar with Right, Left and mid functions. Please let us know what exact info you would like to gather from the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jan 2014 10:52:01 GMT</pubDate>
    <dc:creator>sudeepkm</dc:creator>
    <dc:date>2014-01-16T10:52:01Z</dc:date>
    <item>
      <title>Need  Urgent for this</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Urgent-for-this/m-p/520335#M194451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;, if(isNULL([Sales Territory ID &amp;amp; Desc]),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(right(SLS_ORG_KEY,3)='LOG','Company:' &amp;amp; left(SLS_ORG_KEY,2) &amp;amp; '; Department:' &amp;amp; trim(purgechar(mid(SLS_ORG_KEY,3),'LOG')) &amp;amp; '; Finance and Complaint Data',SLS_ORG_KEY),&lt;/P&gt;&lt;P&gt;[Sales Territory ID &amp;amp; Desc])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS 'Sales Territory ID &amp;amp; Desc'&lt;/P&gt;&lt;P&gt;RESIDENT Sales_Org_Tab;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this one I want 079 but am getting 79 only ,other should be coming properly ,this 79 only not coming properly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex :&lt;/P&gt;&lt;P&gt;sales territory id &amp;amp; desc = &lt;STRONG&gt;009&lt;/STRONG&gt; SEMPRINI ROBERTO&lt;/P&gt;&lt;P&gt;sales org_key = N1067&lt;STRONG&gt;009&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 __jive_id="51571" alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/51571_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/legacyfs/online/51609_pastedImage_0.png"&gt;&lt;IMG __jive_id="51609" alt="" class="jiveImage" height="81" src="https://community.qlik.com/legacyfs/online/51609_pastedImage_0.png" width="382" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/legacyfs/online/51610_pastedImage_1.png"&gt;&lt;IMG __jive_id="51610" alt="" class="jiveImage" height="51" src="https://community.qlik.com/legacyfs/online/51610_pastedImage_1.png" width="387" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this table&lt;/P&gt;&lt;P&gt;SLS_ORG_KEY = N104s079&lt;/P&gt;&lt;P&gt;Sales Territory ID &amp;amp; Desc = 79 - wrong result&lt;/P&gt;&lt;P&gt;Sales Territory ID &amp;amp; Desc = 079 - correct result , remaining all are getting ,but this only getting error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 10:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Urgent-for-this/m-p/520335#M194451</guid>
      <dc:creator />
      <dc:date>2014-01-16T10:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Explain this Urgent</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Urgent-for-this/m-p/520336#M194452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do u want to understand?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 10:32:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Urgent-for-this/m-p/520336#M194452</guid>
      <dc:creator>ramkrishna86</dc:creator>
      <dc:date>2014-01-16T10:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Explain this Urgent</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Urgent-for-this/m-p/520337#M194453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression you put has bunch of string functions to identify certain pattern and based on which a new field is created. The original table where you have the source field ("SLS_ORG_KEY") is in Sales_Org_Tab table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you are already familiar with Right, Left and mid functions. Please let us know what exact info you would like to gather from the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 10:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Urgent-for-this/m-p/520337#M194453</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2014-01-16T10:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Explain this Urgent</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Urgent-for-this/m-p/520338#M194454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what it says in pseudo code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF [Sales Territory ID &amp;amp; Desc] = NULL THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF SLS_ORG_KEY ends in 'LOG' THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET [Sales Territory ID &amp;amp; Desc] = concatenation of various texts and values&lt;/P&gt;&lt;P&gt;&amp;nbsp; ELSE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET [Sales Territory ID &amp;amp; Desc] = SLS_ORG_KEY&lt;/P&gt;&lt;P&gt;&amp;nbsp; END IF&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently, your example already had a value in [Sales Territory ID &amp;amp; Desc] because its value is neither the concatenation of various texts and values nor the value of&amp;nbsp; SLS_ORG_KEY.&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>Thu, 16 Jan 2014 10:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Urgent-for-this/m-p/520338#M194454</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-01-16T10:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Explain this Urgent</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Urgent-for-this/m-p/520339#M194455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply but my requirment is this&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-450604-51607/pastedImage_0.png"&gt;&lt;IMG alt="" class="jiveImage" height="81" src="https://community.qlik.com/legacyfs/online/51607_pastedImage_0.png" width="382" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-450604-51608/pastedImage_1.png"&gt;&lt;IMG alt="" class="jiveImage" height="51" src="https://community.qlik.com/legacyfs/online/51608_pastedImage_1.png" width="387" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this table&lt;/P&gt;&lt;P&gt;SLS_ORG_KEY = N104s079&lt;/P&gt;&lt;P&gt;Sales Territory ID &amp;amp; Desc = 79 - wrong result &lt;/P&gt;&lt;P&gt;Sales Territory ID &amp;amp; Desc = 079 - correct result , remaining all are getting ,but this only getting error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 11:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Urgent-for-this/m-p/520339#M194455</guid>
      <dc:creator />
      <dc:date>2014-01-16T11:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need  Urgent for this</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Urgent-for-this/m-p/520340#M194456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure Sales Territories 079 and 430 &lt;EM&gt;do have a description&lt;/EM&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because to me it seems like their description is blank/NULL, and in your objects QlikView decides that 079 looks exactly like a number, omits the leading zero and right-aligns the result. It isn't wrong, it's just not treated as TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your LOAD script, you could use the TEXT() function to force QlikView to always treat your [Sales Territory ID &amp;amp; Desc] field as text. That may fix the alignment and disappearing leading zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 08:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Urgent-for-this/m-p/520340#M194456</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-01-21T08:36:54Z</dc:date>
    </item>
  </channel>
</rss>

