<?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 Comparing dates in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-dates-in-Set-Analysis/m-p/283438#M105327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vladimir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have field with unique values like created using recno() ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try this&lt;/P&gt;&lt;P&gt;sum( {&amp;lt; [RecID] = {"=[Current Service Date]&amp;gt;=[Initial Service Date]"} &amp;gt;} [Quantity] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that I used a search expression using double quotes, not single quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2012 15:45:01 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-01-17T15:45:01Z</dc:date>
    <item>
      <title>Comparing dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-dates-in-Set-Analysis/m-p/283437#M105326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I have two dates in my table: [Current Service Date] and [Initial Service Date]. I need to display totals based on these dates comparison:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I thought this should work:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt;"&gt;Sum &lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Current Service Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {'&amp;gt;=([Initial Service Date])'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Quantity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;But it does not. &lt;/DIV&gt;&lt;DIV&gt;Both Date fields above are numeric. Any suggestions what I am&amp;nbsp; missing here?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Best regards,&lt;/DIV&gt;&lt;DIV&gt;Vladimir &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 15:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-dates-in-Set-Analysis/m-p/283437#M105326</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2012-01-17T15:32:53Z</dc:date>
    </item>
    <item>
      <title>Comparing dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-dates-in-Set-Analysis/m-p/283438#M105327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vladimir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have field with unique values like created using recno() ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try this&lt;/P&gt;&lt;P&gt;sum( {&amp;lt; [RecID] = {"=[Current Service Date]&amp;gt;=[Initial Service Date]"} &amp;gt;} [Quantity] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that I used a search expression using double quotes, not single quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 15:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-dates-in-Set-Analysis/m-p/283438#M105327</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-17T15:45:01Z</dc:date>
    </item>
    <item>
      <title>Comparing dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-dates-in-Set-Analysis/m-p/283439#M105328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, &lt;/P&gt;&lt;P&gt;Vladimir&lt;/P&gt;&lt;P&gt;You can also create a flag on script for this task:&lt;/P&gt;&lt;P&gt;Load [Current Service Date], [Initial Service Date] ,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;if(&amp;nbsp; [Current Service Date] &amp;gt;=[Initial Service Date] , 1, 0 ) as DateFlag&lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;From... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, on your chart, the set analysis expression will be: &lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;DateFlag={1} &amp;gt;} [Quantity])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 19:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-dates-in-Set-Analysis/m-p/283439#M105328</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2012-01-17T19:30:28Z</dc:date>
    </item>
    <item>
      <title>Comparing dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-dates-in-Set-Analysis/m-p/283440#M105329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;Thanks Stefan,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;Your suggestion works better than mine (:-)), but I've noticed that I cannot use '&amp;lt;=' check there..Is it because its similarity with Set Analysis syntax? I am going to check my data as well since it might contribute to the latest problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;But thanks for a hint to the right direction.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;Vladimir &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 21:11:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-dates-in-Set-Analysis/m-p/283440#M105329</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2012-01-17T21:11:26Z</dc:date>
    </item>
    <item>
      <title>Comparing dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-dates-in-Set-Analysis/m-p/283441#M105330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vladimir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you saying, that&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;=sum( {&amp;lt; [RecID] = {"=[Current Service Date]&amp;gt;=[Initial Service Date]"} &amp;gt;} [Quantity] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does work ok, but&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;=sum( {&amp;lt; [RecID] = {"=[Current Service Date]&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;=[Initial Service Date]"} &amp;gt;} [Quantity] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;does not? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 21:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-dates-in-Set-Analysis/m-p/283441#M105330</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-17T21:58:42Z</dc:date>
    </item>
  </channel>
</rss>

