<?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: Inputfield as Num() in Script Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70209#M605680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's optimal loaded even if you see that it needs 9 bytes (it's from the mem-file) because of the fact that it's not a normal field else an inputfield which information needs to be stored too - and all records will be handled as an unique value. This means (my load was an autogenerate 10000) that the symbol table contains 10000 values. I could imagine that this is what the document analyzer had detected ...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/203061_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2018 12:29:39 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-05-22T12:29:39Z</dc:date>
    <item>
      <title>Inputfield as Num() in Script Load</title>
      <link>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70203#M605674</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 inputfield in the load script that needs to be declared as numeric using the Num() function. This is according to the Document Analyser.QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inputfied myField;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(0) as myField&lt;/P&gt;&lt;P&gt;From [...]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I'm filling the column with zero to be able to fill it later on. However, it is not in the optimal 8 bytes storage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 08:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70203#M605674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-22T08:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inputfield as Num() in Script Load</title>
      <link>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70204#M605675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;According to &lt;A href="https://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/Scripting/data-types.htm"&gt;Data types in &lt;SPAN class="NewSetQlik Sense"&gt;Qlik Sense&lt;/SPAN&gt;&lt;/A&gt; Qlik field are not formatted as strings, dates or numbers but it depends which is the content of these field... You can format the content as text or number, not the field !&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;so&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1526978752871187" jivemacro_uid="_1526978752871187" modifiedtitle="true"&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Inputfied myField;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; as myField,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //myField is automatically recognised as numeric&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text(0) as myFieldText,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;myFieldText contains 0 formatted as text&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; num(0,'#.##0,00')&amp;nbsp;&amp;nbsp;&amp;nbsp; as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;myFieldWithDecimals&lt;/SPAN&gt;,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;myFieldWithDecimals contain 0.00 (with 2 decimals)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(IsText(myFieldTest),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;myFieldTest, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;myFieldTest&lt;/SPAN&gt;,'#.##0,00')&amp;nbsp; //here the content could be text or number with 2 decimals... depending if the content is numeric or not..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From [...]&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 08:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70204#M605675</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2018-05-22T08:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Inputfield as Num() in Script Load</title>
      <link>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70205#M605676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Additional information about Qlik Data types here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2830"&gt;Data Types in QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 08:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70205#M605676</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2018-05-22T08:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Inputfield as Num() in Script Load</title>
      <link>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70206#M605677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declaring "0 as myfield" does indeed make it numeric automatically i'm aware but it is taking more bytes to store. The num() function reduces that. This is the recommendation from the document analyser: "the numeric field is occupying more than the optimal 8 bytes. Correct this problem by explicitly using the num() function."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question still remains, does anyone know the &lt;STRONG&gt;syntax &lt;/STRONG&gt;to explicitly declare an inputfield as numeric?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 09:10:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70206#M605677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-22T09:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Inputfield as Num() in Script Load</title>
      <link>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70207#M605678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure I know this, but since you mentioned document analyzer, may be &lt;A href="https://community.qlik.com/qlik-users/2286"&gt;rwunderlich&lt;/A&gt;‌ might be able to give his suggestions as he is the master mind behind document analyzer &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 09:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70207#M605678</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-22T09:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Inputfield as Num() in Script Load</title>
      <link>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70208#M605679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Sunny. Hoping he will see this in time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 09:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70208#M605679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-22T09:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Inputfield as Num() in Script Load</title>
      <link>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70209#M605680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's optimal loaded even if you see that it needs 9 bytes (it's from the mem-file) because of the fact that it's not a normal field else an inputfield which information needs to be stored too - and all records will be handled as an unique value. This means (my load was an autogenerate 10000) that the symbol table contains 10000 values. I could imagine that this is what the document analyzer had detected ...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/203061_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 12:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70209#M605680</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-05-22T12:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Inputfield as Num() in Script Load</title>
      <link>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70210#M605681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;InputFields have some special characteristics as Marcus said. I would not be concerned about the Document Analyzer recommendation in this case.&amp;nbsp; I'll see if I can update DA to not make this recommendation for InputFields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 15:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70210#M605681</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-05-22T15:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Inputfield as Num() in Script Load</title>
      <link>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70211#M605682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright, Thank you Rob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 May 2018 10:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inputfield-as-Num-in-Script-Load/m-p/70211#M605682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-27T10:08:22Z</dc:date>
    </item>
  </channel>
</rss>

