<?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: Still more nightmare with dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001387#M340392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the confusion, in my code there is no Typo, ExportDate everywhere, and with the results I described in my original post &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2015 12:24:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-22T12:24:33Z</dc:date>
    <item>
      <title>Still more nightmare with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001380#M340385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't seem to be able to use a date in a calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Load statement&lt;/P&gt;&lt;P&gt;date#(&amp;lt;Input String&amp;gt;,'DDMMYYYY') as ExportDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Variables&lt;/P&gt;&lt;P&gt;SET lastExport = max({1} DateExport )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Calculated dimension in my chart&lt;/P&gt;&lt;P&gt;=if(DateExport=$(lastExport), Catégorie)&lt;/P&gt;&lt;P&gt;//This yields a msg "Error in calculated dimension"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;=if(DateExport='$(lastExport)', Catégorie) //Notice the single quotes&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;//This yields no result (condition seems to be always wrong)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001380#M340385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-22T12:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Still more nightmare with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001381#M340386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a typo?&lt;/P&gt;&lt;P&gt;SET lastExport = max({1} DateExport )&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max({1} &lt;STRONG&gt;Export&lt;/STRONG&gt;Date )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // right one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:13:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001381#M340386</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-22T12:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Still more nightmare with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001382#M340387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use set analysis in the script. And you cannot use an aggregation function in a Set or a Let statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001382#M340387</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-09-22T12:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Still more nightmare with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001383#M340388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Typo when I created the case here, but no typo in my code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001383#M340388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-22T12:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Still more nightmare with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001384#M340389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;date#(yourDateString,'DDMMYYYY') as &lt;STRONG&gt;ExportDate&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;from your data source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the front end I assume you declared a variable&lt;/P&gt;&lt;P&gt;as lastExport = max({1} &lt;STRONG&gt;ExportDate&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your calculated dimension&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;=if(&lt;STRONG&gt;ExportDate&lt;/STRONG&gt;='$(lastExport)', Categorie)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(&lt;STRONG&gt;ExportDate&lt;/STRONG&gt;=$(=lastExport), Categorie)&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:21:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001384#M340389</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-22T12:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Still more nightmare with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001385#M340390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌, he is probably just writing an expression (a mere string to hold in a variable) at the back-end which is to be used at the front-end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001385#M340390</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-22T12:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Still more nightmare with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001386#M340391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well then try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(DateExport=$(&lt;STRONG&gt;=&lt;/STRONG&gt;lastExport), Catégorie)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, an additional '=' sign before the variable name. &lt;STRONG&gt;This should work if there is SINGLE Catégorie against your max date.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001386#M340391</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-22T12:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Still more nightmare with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001387#M340392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the confusion, in my code there is no Typo, ExportDate everywhere, and with the results I described in my original post &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001387#M340392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-22T12:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Still more nightmare with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001388#M340393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well then I would say to inspect the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the value in the variable &lt;STRONG&gt;lastExport&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and the value in the dimesion &lt;STRONG&gt;ExportDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;are they both in the same format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001388#M340393</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-22T12:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Still more nightmare with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001389#M340394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No doesn't work like this either, "Error in calculated dimension"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001389#M340394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-22T12:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Still more nightmare with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001390#M340395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(DateExport=$(lastExport), &lt;STRONG&gt;[Catégorie]&lt;/STRONG&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001390#M340395</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-22T12:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Still more nightmare with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001391#M340396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, one more correction.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;P&gt;Redefine your variable like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET lastExport = '=max({1} DateExport )';&amp;nbsp;&amp;nbsp;&amp;nbsp; // note equal sign and single quotes&lt;/P&gt;&lt;P&gt;Then expression:&lt;/P&gt;&lt;P&gt;=if(DateExport=&lt;STRONG&gt;lastExport&lt;/STRONG&gt;, Catégorie)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // '$' not required&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001391#M340396</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-22T12:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Still more nightmare with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001392#M340397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you are not flooring your dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date(Floor(date#(yourDateString,'DDMMYYYY'))) as &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ExportDate&lt;/STRONG&gt;,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:45:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-more-nightmare-with-dates/m-p/1001392#M340397</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2015-09-22T12:45:23Z</dc:date>
    </item>
  </channel>
</rss>

