<?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 Let statement passes dual value as Text value? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Let-statement-passes-dual-value-as-Text-value/m-p/1192358#M385118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a suspicion that dual values (such as date) in let statement cannot handle it as dual value, but rather a value (typically text). &lt;/P&gt;&lt;P&gt;For example, if I use: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vTest = Date(Today(), 'YYYY-MM'); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then $(vTest) is no longer dual value, but a text string of '2016-10'. &lt;SPAN style="font-size: 10pt;"&gt;Is this correct understanding? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I would appreciate for your feedback in advance. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2016 07:36:37 GMT</pubDate>
    <dc:creator>atsushi_saijo</dc:creator>
    <dc:date>2016-10-12T07:36:37Z</dc:date>
    <item>
      <title>Let statement passes dual value as Text value?</title>
      <link>https://community.qlik.com/t5/QlikView/Let-statement-passes-dual-value-as-Text-value/m-p/1192358#M385118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a suspicion that dual values (such as date) in let statement cannot handle it as dual value, but rather a value (typically text). &lt;/P&gt;&lt;P&gt;For example, if I use: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vTest = Date(Today(), 'YYYY-MM'); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then $(vTest) is no longer dual value, but a text string of '2016-10'. &lt;SPAN style="font-size: 10pt;"&gt;Is this correct understanding? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I would appreciate for your feedback in advance. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 07:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Let-statement-passes-dual-value-as-Text-value/m-p/1192358#M385118</guid>
      <dc:creator>atsushi_saijo</dc:creator>
      <dc:date>2016-10-12T07:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Let statement passes dual value as Text value?</title>
      <link>https://community.qlik.com/t5/QlikView/Let-statement-passes-dual-value-as-Text-value/m-p/1192359#M385119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are sort of right, if the date format is not the same as the format from environmental variable, it will save it as text. That is why I usually try to store date as number in variables and then we can always convert them into date using date functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Let vTest = Num(Today());&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then you can use it in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where OrderDate &amp;lt;= $(vTest);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 08:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Let-statement-passes-dual-value-as-Text-value/m-p/1192359#M385119</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-12T08:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Let statement passes dual value as Text value?</title>
      <link>https://community.qlik.com/t5/QlikView/Let-statement-passes-dual-value-as-Text-value/m-p/1192360#M385120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Variables cannot store dual values. Dual values are a QlikView (field) concept and variables came for free with the Microsoft VBScript language. It's a pity though...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBScript variables are untyped however (&lt;EM&gt;variant&lt;/EM&gt;), so I'm not sure that they only store text values. It often looks that way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 09:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Let-statement-passes-dual-value-as-Text-value/m-p/1192360#M385120</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-10-12T09:03:32Z</dc:date>
    </item>
  </channel>
</rss>

