<?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: Convert variable to numeric value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189639#M384538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting an error unknown statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2016 12:28:42 GMT</pubDate>
    <dc:creator>tmumaw</dc:creator>
    <dc:date>2016-09-21T12:28:42Z</dc:date>
    <item>
      <title>Convert variable to numeric value</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189633#M384532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning everybody,&lt;/P&gt;&lt;P&gt;Simple one for you I have a variable vWKEND that I what to make numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;vWKEND&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('WEDAT', 0, 'CurrentDate'); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I need to make vWKEND numeric....not too sure about the syntax to do this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I tried this one with no luck:&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num('$(vWKEND)') as NumWkend; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189633#M384532</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2016-09-21T12:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convert variable to numeric value</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189634#M384533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what Format is WEDAT?&lt;/P&gt;&lt;P&gt;have you tried: week($(vWKEND))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189634#M384533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T12:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Convert variable to numeric value</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189635#M384534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is part of my script.&amp;nbsp; I thought I would try creating another variable to pass throughout the script, but for some reason it does not like my syntax....something really simple I know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;CurrentDate:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FISPD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FISYR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Billing Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;WEDAT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;WKNO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;D&gt; (&lt;/D&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Billing Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '$(vToday)';&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vFisYr&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('FISYR', 0, 'CurrentDate');&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vFisPd&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('FISPD', 0, 'CurrentDate');&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vWkNo&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('WKNO', 0, 'CurrentDate');&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vWKEND&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('WEDAT', 0, 'CurrentDate');&lt;BR /&gt; &lt;BR /&gt; Num(Date(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vWKEND)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'YYYY-MM-DD')) AS vNumWkend;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TABLE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; CurrentDate;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189635#M384534</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2016-09-21T12:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Convert variable to numeric value</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189636#M384535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any of the below statement should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10.6667px; font-family: inherit;"&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #808080;"&gt;&lt;EM style="font-weight: inherit; font-size: 10.6667px; font-family: inherit;"&gt;vWKEND&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; = Evaluate(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;('WEDAT', 0, 'CurrentDate'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10.6667px; font-family: inherit;"&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #808080;"&gt;&lt;EM style="font-weight: inherit; font-size: 10.6667px; font-family: inherit;"&gt;vWKEND&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; = Num(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;('WEDAT', 0, 'CurrentDate'));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189636#M384535</guid>
      <dc:creator />
      <dc:date>2016-09-21T12:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert variable to numeric value</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189637#M384536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Num(Date(&lt;STRONG&gt;'&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vWKEND)&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;'&lt;/EM&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'YYYY-MM-DD')) AS vNumWkend;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;what Format is WEDAT?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189637#M384536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T12:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert variable to numeric value</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189638#M384537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or &lt;STRONG style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;vWkNo&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; = Num(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;('WKNO', 0, 'CurrentDate'));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189638#M384537</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2016-09-21T12:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert variable to numeric value</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189639#M384538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting an error unknown statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189639#M384538</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2016-09-21T12:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Convert variable to numeric value</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189640#M384539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189640#M384539</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2016-09-21T12:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert variable to numeric value</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189641#M384540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, I didnot read exactly&lt;/P&gt;&lt;P&gt;you cannot assign a variable to other variable using as!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should use&lt;/P&gt;&lt;P&gt;Let vNumWkend=&lt;SPAN style="font-size: 8pt;"&gt;Num(Date(&lt;STRONG&gt;'&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vWKEND)&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;'&lt;/EM&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'YYYY-MM-DD')) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or you directly use&lt;/P&gt;&lt;P&gt;Let vNumWkend=&lt;SPAN style="font-size: 8pt;"&gt;Num(Date(&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('WEDAT', 0, 'CurrentDate'),&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 'YYYY-MM-DD')) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-variable-to-numeric-value/m-p/1189641#M384540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T12:34:32Z</dc:date>
    </item>
  </channel>
</rss>

