<?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 SV:Re: Difference between dates in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234006#M501801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I chaged it to this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;date(InvoiceActivationDate, 'YYYY-MM-DD')={"&amp;gt;=$(=Date(max(pay_date)-21))&amp;lt;=$(=Date(max(pay_date)-14))"&amp;gt;} OriginalPrice)&lt;/P&gt;&lt;P&gt;was that correct? however, still does not work.&lt;/P&gt;&lt;P&gt;The formats is the same so the YYYY-MM-DD should be redundant.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;//A.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2011 11:19:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-01T11:19:32Z</dc:date>
    <item>
      <title>Difference between dates in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234002#M501797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm trying to get a sum according to a datefield that decides the activationdate of the invoices to be summarized. I'v got this form a life saver on this forum but it does not work. Any idéas? Or workarounds?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;InvoiceActivationDate={'&amp;gt;=$(=Date(max(pay_date)-21))&amp;lt;=$(=Date(max(pay_date)-14))'&amp;gt;} OriginalPrice)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;//A.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 10:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234002#M501797</guid>
      <dc:creator />
      <dc:date>2011-03-01T10:26:50Z</dc:date>
    </item>
    <item>
      <title>Difference between dates in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234003#M501798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Can u send a sample of your application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 10:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234003#M501798</guid>
      <dc:creator />
      <dc:date>2011-03-01T10:57:25Z</dc:date>
    </item>
    <item>
      <title>SV:Re: Difference between dates in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234004#M501799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do i do that? without exposing the company i work for =).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 11:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234004#M501799</guid>
      <dc:creator />
      <dc:date>2011-03-01T11:06:00Z</dc:date>
    </item>
    <item>
      <title>Difference between dates in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234005#M501800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ankay,&lt;/P&gt;&lt;P&gt;Change the single quotes to double quotes. ie ' &amp;gt;=.... ' to "&amp;gt;= ..." . Also chekc the date format in InvoiceActivationDate field. and put the same format in Date(........... ,'DD/MM/YYYY').&lt;/P&gt;&lt;P&gt;Also i see a single quotes at the end of OrginalPrice)'. Remove it.&lt;/P&gt;&lt;P&gt;Check if it works fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 11:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234005#M501800</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-03-01T11:09:48Z</dc:date>
    </item>
    <item>
      <title>SV:Re: Difference between dates in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234006#M501801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I chaged it to this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;date(InvoiceActivationDate, 'YYYY-MM-DD')={"&amp;gt;=$(=Date(max(pay_date)-21))&amp;lt;=$(=Date(max(pay_date)-14))"&amp;gt;} OriginalPrice)&lt;/P&gt;&lt;P&gt;was that correct? however, still does not work.&lt;/P&gt;&lt;P&gt;The formats is the same so the YYYY-MM-DD should be redundant.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;//A.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 11:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234006#M501801</guid>
      <dc:creator />
      <dc:date>2011-03-01T11:19:32Z</dc:date>
    </item>
    <item>
      <title>SV:Re: Difference between dates in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234007#M501802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no.. not on the InvoiceActivationDate field. Check what is the format for the InvoiceActivationDate.&lt;/P&gt;&lt;P&gt;for eg as you said its 'yyyy-mm-dd' then&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;InvoiceActivationDate={"&amp;gt;=$(=Date(max(pay_date)-21),'YYYY-MM-DD')&amp;lt;=$(=Date(max(pay_date)-14),'YYYY-MM-DD')"&amp;gt;} OriginalPrice)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 11:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234007#M501802</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-03-01T11:22:54Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: Difference between dates in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234008#M501803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't work either... it's the difference that i'm worried about because this set analysis works perfect;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;InvoiceActivationDate={'&amp;gt;=$(=Date(max(pay_date)-14))'}&amp;gt;} OriginalPrice)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//A.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 11:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234008#M501803</guid>
      <dc:creator />
      <dc:date>2011-03-01T11:26:18Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: Difference between dates in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234009#M501804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then check what the maxDate -21 and maxdate-14&lt;/P&gt;&lt;P&gt;Because your above code say &amp;gt;14 and we were trying on &amp;lt;14.&lt;/P&gt;&lt;P&gt;Check the data for the range you require.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 11:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234009#M501804</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-03-01T11:42:20Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: SV:Re: Difference between dates in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234010#M501805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's correct. e.g. say that pay_date is 2011-02-28 then max(pay_date)-21 is 2011-02-07 and max(pay_date)-14 is 2011-02-21&lt;/P&gt;&lt;P&gt;so i want to sum invoices that are activated between those dates InvoiceActivation&amp;gt;2011-02-07 and &amp;lt;2011-02-21&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 12:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234010#M501805</guid>
      <dc:creator />
      <dc:date>2011-03-01T12:07:20Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: SV:Re: Difference between dates in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234011#M501806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hei&lt;/P&gt;&lt;P&gt;try this one as an example&lt;/P&gt;&lt;P&gt;may be it'll helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 13:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234011#M501806</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-03-01T13:01:08Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: SV:Re: SV:Re: Difference between dates in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234012#M501807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so so much!&lt;/P&gt;&lt;P&gt;The reson why i didn't work was the "}" at the end... stupid of me not to see it.&lt;/P&gt;&lt;P&gt;Thanks a lot!!&lt;/P&gt;&lt;P&gt;//A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 13:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates-in-set-analysis/m-p/234012#M501807</guid>
      <dc:creator />
      <dc:date>2011-03-01T13:44:30Z</dc:date>
    </item>
  </channel>
</rss>

