<?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: Transform Date to Number while keeping the value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714629#M667884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one worked. The brackets were missing. I think though, that Marco's solution might work too. Going to try that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks guys!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Nov 2014 09:20:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-04T09:20:41Z</dc:date>
    <item>
      <title>Transform Date to Number while keeping the value</title>
      <link>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714621#M667876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having the following issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to reload data from a table within SAP. Since I only need the latest 3 months I applied this formula:&lt;/P&gt;&lt;P&gt;date(AddMonths(MonthStart(today()),-2),'YYYYMMDD') which would result by today in 20140801. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, if I put that into the where statement, it wouldn't work. If i put the plain numbers - hard coded - into it, it works. I think the solution would be, to transform the date format shown above, into a number. Unfortunatley, if I do that, it turns to 41852. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would you guys go about such an issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 16:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714621#M667876</guid>
      <dc:creator />
      <dc:date>2014-10-28T16:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Transform Date to Number while keeping the value</title>
      <link>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714622#M667877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All dates have a corresponding numerical value as you experienced, if you need the date again simply do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;ADDRESS&gt;Date(41852&lt;/ADDRESS&gt;&lt;ADDRESS&gt;&lt;/ADDRESS&gt;&lt;ADDRESS&gt;...&lt;/ADDRESS&gt;&lt;ADDRESS&gt;&lt;/ADDRESS&gt;&lt;ADDRESS&gt;let me know&lt;/ADDRESS&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 16:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714622#M667877</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-10-28T16:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Transform Date to Number while keeping the value</title>
      <link>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714623#M667878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian, if the hard-coded number works you can try with the $-expansion formula:&lt;/P&gt;&lt;P&gt;$(=date(AddMonths(MonthStart(today()),-2),'YYYYMMDD'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 16:20:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714623#M667878</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-10-28T16:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Transform Date to Number while keeping the value</title>
      <link>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714624#M667879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let vDt= date(AddMonths(MonthStart(today()),-2),'YYYYMMDD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sql Select * from Table where DateField &amp;gt; '$vDt';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 16:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714624#M667879</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-28T16:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Transform Date to Number while keeping the value</title>
      <link>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714625#M667880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried both, Ruben's and Anbu's proposal, unfortunatley it didn't work. Especially Anbu's solution seemed promising, since the LET statement should display the content of a variable as it is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 11:09:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714625#M667880</guid>
      <dc:creator />
      <dc:date>2014-10-29T11:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Transform Date to Number while keeping the value</title>
      <link>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714626#M667881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post sample qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 11:12:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714626#M667881</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-29T11:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Transform Date to Number while keeping the value</title>
      <link>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714627#M667882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Text(date(AddMonths(MonthStart(today()),-2),'YYYYMMDD'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num#(Text(date(AddMonths(MonthStart(today()),-2),'YYYYMMDD')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 11:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714627#M667882</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-10-29T11:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Transform Date to Number while keeping the value</title>
      <link>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714628#M667883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following anbu's solution, if vDt has the value you want, maybe it work using () in where clause:&lt;/P&gt;&lt;P&gt;Let vDt= date(AddMonths(MonthStart(today()),-2),'YYYYMMDD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sql Select * from Table where DateField &amp;gt; '$(vDt)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 13:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714628#M667883</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-10-29T13:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Transform Date to Number while keeping the value</title>
      <link>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714629#M667884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one worked. The brackets were missing. I think though, that Marco's solution might work too. Going to try that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks guys!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transform-Date-to-Number-while-keeping-the-value/m-p/714629#M667884</guid>
      <dc:creator />
      <dc:date>2014-11-04T09:20:41Z</dc:date>
    </item>
  </channel>
</rss>

