<?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 Previous Day Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-Day-Set-Analysis/m-p/213974#M67576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Odd. QlikView allows you to subtract dates this way. Try putting that expression into a table, but don't give the expression a label. When the chart is rendered, you will see the expression with the dollar sign expansion evaluated. Do two expressions, one with the -1, one without. Then compare what is shown between the inner curly brackets. It's probably a formatting issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Sep 2010 15:56:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-22T15:56:16Z</dc:date>
    <item>
      <title>Previous Day Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Day-Set-Analysis/m-p/213971#M67573</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've got so much support from this forum over my short time using Qlikview, but this one seems to be a new one, so I'm hoping you can help....&lt;/P&gt;&lt;P&gt;I want to allow a user to select any date range and for the expression on the chart to evaluate to the total value for the day BEFORE the period selected. Eg. If I selected Apr-July 2010, I want the value in this expression for 30th May 2010.&lt;/P&gt;&lt;P&gt;I've been trying set analysis, but can't quite get it working.&lt;/P&gt;&lt;P&gt;This works, but returns the value for the first day in the period:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=sum({&amp;lt;Date={"$(=min(Date))"}&amp;gt;}[Amount])&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;So I tried this and it returns 0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=sum({&amp;lt;Date={"$(=min(Date)-1)"}&amp;gt;}[Amount])&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Strange since a text box with this in it gives me the exact date I'm interested in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=date(min(Date)-1)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Any help on this is very much appreciated!&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 14:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Day-Set-Analysis/m-p/213971#M67573</guid>
      <dc:creator />
      <dc:date>2010-09-22T14:34:55Z</dc:date>
    </item>
    <item>
      <title>Previous Day Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Day-Set-Analysis/m-p/213972#M67574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You almost had it right there. Your text box uses the Date function to convert Min(Date) - 1 to a date. You didn't do that in your Set Analysis, so your dollar sign expansion is returning a number, not a date. Try:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({&amp;lt;Date={"$(=Date(min(Date)-1))"}&amp;gt;}[Amount])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 15:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Day-Set-Analysis/m-p/213972#M67574</guid>
      <dc:creator />
      <dc:date>2010-09-22T15:37:45Z</dc:date>
    </item>
    <item>
      <title>Previous Day Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Day-Set-Analysis/m-p/213973#M67575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply - I think I already tried that!&lt;/P&gt;&lt;P&gt;I just copied your code straight in and tried it again - it still returns 0. Plus, in a text object if I do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=only({&amp;lt;Date={"$(=Date(min(Date)-1))"}&amp;gt;}[Date])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It returns nothing. If I do the same without the '-1' it displays the first date in the selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 15:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Day-Set-Analysis/m-p/213973#M67575</guid>
      <dc:creator />
      <dc:date>2010-09-22T15:46:58Z</dc:date>
    </item>
    <item>
      <title>Previous Day Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Day-Set-Analysis/m-p/213974#M67576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Odd. QlikView allows you to subtract dates this way. Try putting that expression into a table, but don't give the expression a label. When the chart is rendered, you will see the expression with the dollar sign expansion evaluated. Do two expressions, one with the -1, one without. Then compare what is shown between the inner curly brackets. It's probably a formatting issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 15:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Day-Set-Analysis/m-p/213974#M67576</guid>
      <dc:creator />
      <dc:date>2010-09-22T15:56:16Z</dc:date>
    </item>
    <item>
      <title>Previous Day Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Day-Set-Analysis/m-p/213975#M67577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - that's a useful tip. It's also helped me figure out what was hapenning.&lt;/P&gt;&lt;P&gt;The issue wasn't with the expression at all. It was the way I was selecting the date periods. I was choosing Years and Months - but then doing set analysis on Date only. If I change the expression to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=only({&amp;lt;Date={"$(=Date(min(Date)-1))"},Year={"*"},Month={"*"}&amp;gt;}[Date])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It returns the correct date. Same for the Sum expression.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 16:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Day-Set-Analysis/m-p/213975#M67577</guid>
      <dc:creator />
      <dc:date>2010-09-22T16:06:41Z</dc:date>
    </item>
    <item>
      <title>Previous Day Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Day-Set-Analysis/m-p/213976#M67578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you handle the business day issue when you need the data on Monday for Friday?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 20:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Day-Set-Analysis/m-p/213976#M67578</guid>
      <dc:creator />
      <dc:date>2010-11-19T20:42:49Z</dc:date>
    </item>
  </channel>
</rss>

