<?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: Problem with multiple date selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-multiple-date-selections/m-p/773724#M1032453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EDIT: The Problem has been solved by now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I had pretty much the same problem. I also used calculated listboxes instead of listboxes using fields directly. So I tried as explained above, but I received an error. Here is what I did:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generic&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIMESTAMP,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WERT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YEAR(TIMESTAMP) as Jahr&lt;/P&gt;&lt;P&gt;FROM Source01;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I got this Error:&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: S0022, ErrorCode: 904, ErrorMsg: [Oracle][ODBC][Ora]ORA-00904: "YEAR": invalid identifier&lt;/P&gt;&lt;P&gt;Generic&lt;BR /&gt;SQL SELECT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIMESTAMP,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WERT,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YEAR(TIMESTAMPSOURCELT) as Jahr&lt;BR /&gt;FROM Source01;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thinking the 'Generic' Keyword could cause the error, I tried it with a different Source:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;NR as "Nummer",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TimeStamp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(TimeStamp) as Jahr&lt;/P&gt;&lt;P&gt;FROM Source02;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I received the same error.&lt;/P&gt;&lt;P&gt;Obviously the 'Year' command does not work, but why? I'd be very grateful, if someone could help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;phz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2015 10:53:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-01T10:53:13Z</dc:date>
    <item>
      <title>Problem with multiple date selections</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-multiple-date-selections/m-p/773720#M1032449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a .csv in which they unfortunately don't specify the date. It is imported as a text string which looks like: 20150127 (for 27th of January 2015). I have added the following string into the script to make sure it loads as a date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Datum, &lt;/P&gt;&lt;P&gt;Date(MakeDate(Left(Datum,4),Mid(Datum,5,2),Right(Datum,2)),'YYYY-MM-DD') as Datum_New,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far so good. I can also specify list boxes with separate Year, Month and Day functions which work. But as soon as I start making multiple selections; i.e. 2015 and March, it isn't having it. It will not select multiple selections from these boxes. How to fix this? Or a better overall solution to the problem of having these date issues in the first place?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Maarten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 15:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-multiple-date-selections/m-p/773720#M1032449</guid>
      <dc:creator />
      <dc:date>2015-01-27T15:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple date selections</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-multiple-date-selections/m-p/773721#M1032450</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 suppose you are selecting in calculated listboxes rather than listboxes using fields directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So instead of creating listboxes with expressions like month(Datum) or year(Datum) try to generate separate fields for month and year in the script.&lt;/P&gt;&lt;P&gt;Otherwise selections in the month(Datum) listbox reset selections in the year(Datum) listbox (because in fact they both apply selections to the same field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One solution to do so could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Datum) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Datum) as Year;&lt;/P&gt;&lt;P&gt;LOAD Date(Date#(Datum, 'YYYYMMDD'),'YYYY-MM-DD') AS Datum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Someotherfields&lt;/P&gt;&lt;P&gt;From yourdatasource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 16:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-multiple-date-selections/m-p/773721#M1032450</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-01-27T16:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple date selections</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-multiple-date-selections/m-p/773722#M1032451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! Thank you very much. Easier solution as well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 18:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-multiple-date-selections/m-p/773722#M1032451</guid>
      <dc:creator />
      <dc:date>2015-01-27T18:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple date selections</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-multiple-date-selections/m-p/773723#M1032452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 19:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-multiple-date-selections/m-p/773723#M1032452</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-01-27T19:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple date selections</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-multiple-date-selections/m-p/773724#M1032453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EDIT: The Problem has been solved by now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I had pretty much the same problem. I also used calculated listboxes instead of listboxes using fields directly. So I tried as explained above, but I received an error. Here is what I did:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generic&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIMESTAMP,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WERT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YEAR(TIMESTAMP) as Jahr&lt;/P&gt;&lt;P&gt;FROM Source01;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I got this Error:&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: S0022, ErrorCode: 904, ErrorMsg: [Oracle][ODBC][Ora]ORA-00904: "YEAR": invalid identifier&lt;/P&gt;&lt;P&gt;Generic&lt;BR /&gt;SQL SELECT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIMESTAMP,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WERT,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YEAR(TIMESTAMPSOURCELT) as Jahr&lt;BR /&gt;FROM Source01;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thinking the 'Generic' Keyword could cause the error, I tried it with a different Source:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;NR as "Nummer",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TimeStamp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(TimeStamp) as Jahr&lt;/P&gt;&lt;P&gt;FROM Source02;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I received the same error.&lt;/P&gt;&lt;P&gt;Obviously the 'Year' command does not work, but why? I'd be very grateful, if someone could help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;phz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 10:53:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-multiple-date-selections/m-p/773724#M1032453</guid>
      <dc:creator />
      <dc:date>2015-04-01T10:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple date selections</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-multiple-date-selections/m-p/773725#M1032454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Philipp,&lt;/P&gt;&lt;P&gt;Year() is a valid function for Oracle for date fields, but you may need to use another one like To_Date().&lt;/P&gt;&lt;P&gt;See Oracle documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions183.htm" title="http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions183.htm"&gt;TO_DATE&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 10:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-multiple-date-selections/m-p/773725#M1032454</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2015-04-15T10:50:08Z</dc:date>
    </item>
  </channel>
</rss>

