<?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: Setting default number format in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-default-number-format-in-the-script/m-p/494212#M184870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set the default format in script by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET DateFormat='MMM-YY';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what are you looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Sep 2013 16:06:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-06T16:06:12Z</dc:date>
    <item>
      <title>Setting default number format in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-default-number-format-in-the-script/m-p/494211#M184869</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;Is it possible to set the default format for a date/number in the script instead of the document properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is calculate the start of the month of a particular date and have that month start formatted as MMM-YY while still remaining as a date datatype (allows other formatting and implicit sorting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to include this in a master calendar procedure so I would prefer to be able to script the formatting instead of manually amending it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 15:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-default-number-format-in-the-script/m-p/494211#M184869</guid>
      <dc:creator>DavidFoster1</dc:creator>
      <dc:date>2013-09-06T15:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Setting default number format in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-default-number-format-in-the-script/m-p/494212#M184870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set the default format in script by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET DateFormat='MMM-YY';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what are you looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 16:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-default-number-format-in-the-script/m-p/494212#M184870</guid>
      <dc:creator />
      <dc:date>2013-09-06T16:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting default number format in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-default-number-format-in-the-script/m-p/494213#M184871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is the universal option that applies to all dates in your model. I am looking for an option for individual fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 16:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-default-number-format-in-the-script/m-p/494213#M184871</guid>
      <dc:creator>DavidFoster1</dc:creator>
      <dc:date>2013-09-06T16:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Setting default number format in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-default-number-format-in-the-script/m-p/494214#M184872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a simple trick to do that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you create a dummy table to format you field&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Temp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(Today(),'MMM/YYYY') AS _month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;AutoGenerate 1; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you load you real data&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;yourrealtable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rand() as field1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rand() as field2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; monthstart(today() - RecNo()) as _month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;AutoGenerate 100;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can drop your dummy&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Drop Table Temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;QlikView seems to respect the format of first data loaded for a field&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 16:14:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-default-number-format-in-the-script/m-p/494214#M184872</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-09-06T16:14:01Z</dc:date>
    </item>
  </channel>
</rss>

