<?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 Set Analysis with Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Dates/m-p/360930#M134033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check with this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =sum( {$&amp;lt;Date_Daily={$(=Date(Today()-1,'DD.MM.YYYY'))}&amp;gt;} [OUTBOUND DAILY])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2012 12:36:22 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2012-04-20T12:36:22Z</dc:date>
    <item>
      <title>Set Analysis with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Dates/m-p/360926#M134029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after reading so much, i am still not able to build the correct formula for my diagram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would lie to calculate the sum of OUTBOUND_DAILY sent yesterday. My formula looks like:&lt;/P&gt;&lt;P&gt;=sum(&amp;nbsp;&amp;nbsp;&amp;nbsp; {$&amp;lt;Date_Daily={&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(Today()-1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } [OUTBOUND DAILY])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Date_Daily is saved in the format: 'DD.MM.YYYY'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the formula with a fixed date like this, it works perfect:&lt;/P&gt;&lt;P&gt;=sum(&amp;nbsp;&amp;nbsp;&amp;nbsp; {$&amp;lt;Date_Daily={&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '19.04.2012'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } [OUTBOUND DAILY])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me to enter the formula correct to see each day the previous date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much,&lt;/P&gt;&lt;P&gt;Regards Mathias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 11:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Dates/m-p/360926#M134029</guid>
      <dc:creator />
      <dc:date>2012-04-20T11:32:38Z</dc:date>
    </item>
    <item>
      <title>Set Analysis with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Dates/m-p/360927#M134030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Then you have to use the same format here also&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =sum( {$&amp;lt;Date_Daily={'$(=Date(Today()-1,'DD.MM.YYYY'))}&amp;gt;} [OUTBOUND DAILY])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 11:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Dates/m-p/360927#M134030</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-04-20T11:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Dates/m-p/360928#M134031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With this problem a couple of things come to mind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Default date formatting, you will want to change the default date formatting for the document. This is done in the load script. This is important because when you call functions like "today" you want the date to look like ALL your other dates in your document MM.DD.YYYY. If you don't do this you will have to qualify the date formatting on every function where you deal with your dates, like this Date(ADateField, 'MM.DD.YYYY')&lt;/LI&gt;&lt;LI&gt;Arithmetic performed on a data field returns a NUMBER not a date. So Date1-Date2 is a number, Max(Date1) is a number, Today()-1 is a number. When you perform arithmetic and you want the result to be a date you have to wrap it in a Date() function. This is part of why I suggest changing the default date format for your document, you'll use the date function alot.&lt;/LI&gt;&lt;LI&gt;Your expression without changin your document should look like this&lt;UL&gt;&lt;LI&gt;=sum(&amp;nbsp;&amp;nbsp;&amp;nbsp; {$&amp;lt;Date_Daily={&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "$(=Date(Today()-1,'MM.DD.YYYY')"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } [OUTBOUND DAILY])&lt;/LI&gt;&lt;LI&gt;I always have the best luck with set analysis when I use the double quotes as the argument but I've seen lots of combintations work too.&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best of luck&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 11:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Dates/m-p/360928#M134031</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2012-04-20T11:53:21Z</dc:date>
    </item>
    <item>
      <title>Set Analysis with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Dates/m-p/360929#M134032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gentlemen for you quick replies. Also for the detailled description you gave.&lt;/P&gt;&lt;P&gt;I tried both formulas and both don't work. I used the formulas from chrisammers and corrected it slighty (chriscammers wrote 'MM.DD.YYYY' instead of 'DD.MM.YYYY). Furthermore I guess there is a ' or " to much or less in the formular from Celambarasan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry to ask you again, but both arent' correct. On which part can I work again to get it done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mathias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 12:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Dates/m-p/360929#M134032</guid>
      <dc:creator />
      <dc:date>2012-04-20T12:22:46Z</dc:date>
    </item>
    <item>
      <title>Set Analysis with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Dates/m-p/360930#M134033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check with this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =sum( {$&amp;lt;Date_Daily={$(=Date(Today()-1,'DD.MM.YYYY'))}&amp;gt;} [OUTBOUND DAILY])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 12:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Dates/m-p/360930#M134033</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-04-20T12:36:22Z</dc:date>
    </item>
    <item>
      <title>Set Analysis with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Dates/m-p/360931#M134034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here we go:&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Date_Daily={'$(=(Date((Today()-1), 'DD.MM.YYYY')))' }&amp;gt;}[OUTBOUND DAILY])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing was I guess, the -&amp;gt; ' &amp;lt;- needs to be set close around the Date function. Otherwise empty fields are added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much Guys,&lt;/P&gt;&lt;P&gt;you helped a lot,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Mathias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 12:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Dates/m-p/360931#M134034</guid>
      <dc:creator />
      <dc:date>2012-04-20T12:37:35Z</dc:date>
    </item>
  </channel>
</rss>

