<?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: Set analysis with DD/MM date format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387039#M799686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're initial technique doesn't work because the DATE_START_DD_MM values are passed along from Oracle to QlikView as&lt;EM&gt; strings&lt;/EM&gt;. QlikView doesn't recognise 02/11 as a date value (something is missing for that) and there is no underlying numerical value that says that Year=2017 (as happens with QlikView dual values). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you convert 02/11 using Date#(DATE_START_DD_MM, 'DD/MM') and a missing year, then QlikView will assume the year of the lowest numerical date value (0 being equal to 30/12/1899 and 1 being equal to 31/12/1899).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the search box to look for dates after or before a specific date, you must supply a full date value and not what you show in your listbox. In your formatted listbox (last screenshot), you can do a search for '&amp;gt;01/11/1899'. See what you get...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that 01/11 = 01/11/1899 corresponds to numerical value -59. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Nov 2017 12:14:02 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2017-11-28T12:14:02Z</dc:date>
    <item>
      <title>Set analysis with DD/MM date format</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387033#M799680</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 to date field in a .qvw. Thes result of following SQL statements :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to_char(S.DATE_START,'DD/MM/YYYY') as DATE_START,&lt;BR /&gt; to_char(S.DATE_START,'DD/MM') as DATE_START_DD_MM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i use DATE_START is Set analysis, no problem it works and i can make a selection on this field in a list box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184892_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i try to use DATE_START_DD_MM, it don't works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it considered as text (see the snapshot below with data on left)&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/184893_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;And when i try to perform a string to number conversion with Date# (&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;DATE_START_DD&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;,'DD/MM') ), &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: arial,helvetica,sans-serif;"&gt;i can't make select too &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/184894_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;IMG class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/184895_pastedImage_4.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387033#M799680</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with DD/MM date format</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387034#M799681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change below statement &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;BR /&gt;&lt;/SPAN&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;to_char(S.DATE_START,'DD/MM') as DATE_START_DD_MM&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;To &lt;/SPAN&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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date(S.DATE_START,'DD/MM') as DATE_START_DD_MM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Kaushik Solanki&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 11:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387034#M799681</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2017-11-28T11:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with DD/MM date format</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387035#M799682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer. But i'am on Oracle and Date function doesn't exists. Maybe you mean to_date, but i tried and give SQL error 01830. 00000 -&amp;nbsp; "date format picture ends before converting entire input string"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 11:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387035#M799682</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2017-11-28T11:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with DD/MM date format</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387036#M799683</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;Instead of changing it at oracle side change in Qlik. Like shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Field1,Field2,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date(S.DATE_START,'DD/MM') as DATE_START_DD_MM;&lt;/SPAN&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;Sql Select &lt;SPAN style="font-size: 13.3333px;"&gt;Field1,Field2,&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;S.DATE_START from xyz;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Kaushik Solanki&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 11:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387036#M799683</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2017-11-28T11:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with DD/MM date format</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387037#M799684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, i have tried in load statement and i am able to make a research in the list box. But, it returns not only date&amp;gt;25/05 because i have 18/05,01/01, 02/01,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="184909" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184909_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 12:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387037#M799684</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2017-11-28T12:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with DD/MM date format</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387038#M799685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Did you tried by changing default DD/MM to MM/DD or vice versa in your "Main" tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 12:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387038#M799685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-28T12:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with DD/MM date format</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387039#M799686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're initial technique doesn't work because the DATE_START_DD_MM values are passed along from Oracle to QlikView as&lt;EM&gt; strings&lt;/EM&gt;. QlikView doesn't recognise 02/11 as a date value (something is missing for that) and there is no underlying numerical value that says that Year=2017 (as happens with QlikView dual values). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you convert 02/11 using Date#(DATE_START_DD_MM, 'DD/MM') and a missing year, then QlikView will assume the year of the lowest numerical date value (0 being equal to 30/12/1899 and 1 being equal to 31/12/1899).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the search box to look for dates after or before a specific date, you must supply a full date value and not what you show in your listbox. In your formatted listbox (last screenshot), you can do a search for '&amp;gt;01/11/1899'. See what you get...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that 01/11 = 01/11/1899 corresponds to numerical value -59. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 12:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387039#M799686</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-11-28T12:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with DD/MM date format</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387040#M799687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter for your answer. Indeed, i understand why i have negative values. So, what i'am trying to achieve is to get e;g values between 01/01 and 27/11 for Year N, N-1, N-2, etc.&lt;/P&gt;&lt;P&gt;And in order to avoid to have several expressions N, N-1, N-2, etc i tried with Year as dimension and only one expression where i use &lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;DATE_START_DD_MM&lt;/SPAN&gt; in my SA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if Qlikview requires a year i will use as many expression as year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 13:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387040#M799687</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2017-11-28T13:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with DD/MM date format</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387041#M799688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that is the best thing you can do, just adding expressions for YTOD for current, last and next to last year.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;You could make your first technique work by adding a Year as dimension and doing a set analysis based&amp;nbsp; on daynumber of the year. But then you would have to take into account that every leap year has one day more after Feb. 28th. So that wouldn't work in all cases unless you create a really complex construct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Alternatively, you could consider using the YearToDate() function in your aggregation (and without set analysis). It has a parameter to shift the year at will. But if you have a large data set, you should avoid the use of IF() calls in aggregation functions...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Three expression with Set analysis based on Today()'s date and AddMonths()/AddYears() to shift a year is easier I think.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Peter&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 14:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-DD-MM-date-format/m-p/1387041#M799688</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-11-28T14:27:16Z</dc:date>
    </item>
  </channel>
</rss>

