<?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 Same script, two files, one dropping preceeding 0's in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160893#M34988</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Test file now uploaded.&lt;/P&gt;&lt;P&gt;I've checked all the 'SET' clauses at the start of both files and they do not differ at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Oct 2010 08:38:10 GMT</pubDate>
    <dc:creator>adamdavi3s</dc:creator>
    <dc:date>2010-10-28T08:38:10Z</dc:date>
    <item>
      <title>Same script, two files, one dropping preceeding 0's</title>
      <link>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160889#M34984</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 a basic SQL script to load cost centres into two separate dashboards:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;load costc_code,&lt;BR /&gt; costc_code_description,&lt;BR /&gt; costc_description;&lt;BR /&gt;&lt;BR /&gt;SQL select&lt;BR /&gt;&lt;BR /&gt;d1.dim_value AS 'costc_code',&lt;BR /&gt;d1.dim_value + '-'+d1.description AS costc_code_description,&lt;BR /&gt;d1.description AS 'costc_description'&lt;BR /&gt;FROM agldescription d1&lt;BR /&gt;WHERE d1.client='SD' and d1.attribute_id='C1';&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;In one dashboard it loads the codes correctly e.g.&lt;/P&gt;&lt;P&gt;00080&lt;/P&gt;&lt;P&gt;00090&lt;/P&gt;&lt;P&gt;00091&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However in the second it is loading as:&lt;/P&gt;&lt;P&gt;80&lt;/P&gt;&lt;P&gt;90&lt;/P&gt;&lt;P&gt;91&lt;/P&gt;&lt;P&gt;In BOTH cases it is loading the CORRECT value into the concatenated description. e.g. 00080-COSTCENTRE1&lt;/P&gt;&lt;P&gt;The code in the script is EXACTLY the same in both dashboards and both are using the same ODBC connection so I can't understand why I am getting different results...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 09:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160889#M34984</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2010-10-27T09:40:52Z</dc:date>
    </item>
    <item>
      <title>Same script, two files, one dropping preceeding 0's</title>
      <link>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160890#M34985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you upload a QV document with your example? It would be easier to understand why i'ts not working.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 00:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160890#M34985</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-10-28T00:45:28Z</dc:date>
    </item>
    <item>
      <title>Same script, two files, one dropping preceeding 0's</title>
      <link>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160891#M34986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data is the same, but formatting may be different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 00:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160891#M34986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-28T00:54:19Z</dc:date>
    </item>
    <item>
      <title>Same script, two files, one dropping preceeding 0's</title>
      <link>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160892#M34987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Both,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just created a blank file with the load script and it loads the items correctly (WITH the preceding 0), which suggests there must be something in one dashboard causing it to load in the wrong format, but I don't know what this could be??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 08:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160892#M34987</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2010-10-28T08:22:49Z</dc:date>
    </item>
    <item>
      <title>Same script, two files, one dropping preceeding 0's</title>
      <link>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160893#M34988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Test file now uploaded.&lt;/P&gt;&lt;P&gt;I've checked all the 'SET' clauses at the start of both files and they do not differ at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 08:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160893#M34988</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2010-10-28T08:38:10Z</dc:date>
    </item>
    <item>
      <title>Same script, two files, one dropping preceeding 0's</title>
      <link>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160894#M34989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you assure me that they are exactly the same codes, the result cannot be different.&lt;/P&gt;&lt;P&gt;If you upload a QV with your info maybe we can help you. Otherwise, we're not wizards.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 08:40:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160894#M34989</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-10-28T08:40:49Z</dc:date>
    </item>
    <item>
      <title>Same script, two files, one dropping preceeding 0's</title>
      <link>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160895#M34990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if you wish to maintain the codes as string (i.e. with leading "0"), use the function TEXT(costc_code). This will force QV to treat it always as text.&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 08:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160895#M34990</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2010-10-28T08:43:36Z</dc:date>
    </item>
    <item>
      <title>Same script, two files, one dropping preceeding 0's</title>
      <link>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160896#M34991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcel,&lt;/P&gt;&lt;P&gt;The QV files are massive I am afraid, I will try and compress one down. I just wasn't sure if there was a setting or something that I could be missing!&lt;/P&gt;&lt;P&gt;Investigating further:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both scripts are exactly the same, although the file which is not working correctly loads some additional data but it is not linked.&lt;/P&gt;&lt;P&gt;The file that is not working appears to be loading the data as numeric, whereas the working file is loading it as text but I can't see anywhere where this is specified&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 08:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160896#M34991</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2010-10-28T08:43:54Z</dc:date>
    </item>
    <item>
      <title>Same script, two files, one dropping preceeding 0's</title>
      <link>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160897#M34992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did initially try the text clause in the script but it made no difference at all (very strangely!) I am afraid!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 08:46:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160897#M34992</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2010-10-28T08:46:45Z</dc:date>
    </item>
    <item>
      <title>Same script, two files, one dropping preceeding 0's</title>
      <link>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160898#M34993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorted, I have no idea why its loading differently but if I actually remember to alias my text(costc_code) it works &lt;IMG alt="Embarrassed" src="http://community.qlik.com/emoticons/emotion-10.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 09:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-script-two-files-one-dropping-preceeding-0-s/m-p/160898#M34993</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2010-10-28T09:32:44Z</dc:date>
    </item>
  </channel>
</rss>

