<?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 Date problem using Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-problem-using-Set-Analysis/m-p/144292#M505789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I'm new user QV.&lt;/P&gt;&lt;P&gt;On this instrucción &lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;DATE = {$(#=only(DATE)-1)}&amp;gt;} CASH)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;how I can&lt;/SPAN&gt; &lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;add a condition (for example the state of one &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;registration)&lt;/SPAN&gt;&lt;/SPAN&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;which would be the&lt;/SPAN&gt; &lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;syntax?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2011 16:33:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-01T16:33:19Z</dc:date>
    <item>
      <title>Date problem using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-using-Set-Analysis/m-p/144287#M505784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I'm new user of Qlikview and manage to do an analysis using dates and values.&lt;/P&gt;&lt;P&gt;My data strucutre is a table with the following fields : DATE - Name - Account - CASH&lt;/P&gt;&lt;P&gt;I tried to do an analysis based on the date for the cash field, e.g. having a column with cash for a selected date and another one for (selected date - 1).&lt;/P&gt;&lt;P&gt;I've tried to do the following but it doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;( {$&amp;lt;DATE=DATE&amp;gt;} CASH) --&amp;gt; for the selected date which works&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Sum({1&amp;lt;DATE =&lt;B&gt;&lt;I&gt;$(DATE-1)&lt;/I&gt;&lt;/B&gt;&amp;gt;} CASH) --&amp;gt; dosn't work. In fact, it gives the total sum of the CASH for all data.&lt;/P&gt;&lt;P&gt;Could you please help me.&lt;/P&gt;&lt;P&gt;Thx &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 22:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-using-Set-Analysis/m-p/144287#M505784</guid>
      <dc:creator />
      <dc:date>2009-05-15T22:17:30Z</dc:date>
    </item>
    <item>
      <title>Date problem using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-using-Set-Analysis/m-p/144288#M505785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this is the expression you need:&lt;/P&gt;&lt;P&gt;sum(CASH) + above(sum(CASH),1,1)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Here is how it looks&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6787.Image1.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6787.Image1.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can adjust how many days back by changing the second argument of the "above" function. Like this&lt;/P&gt;&lt;P&gt;sum(CASH) + above(sum(CASH),2,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 23:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-using-Set-Analysis/m-p/144288#M505785</guid>
      <dc:creator />
      <dc:date>2009-05-15T23:06:13Z</dc:date>
    </item>
    <item>
      <title>Date problem using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-using-Set-Analysis/m-p/144289#M505786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe, if I understood correctly your question, this should help by providing you the sum of previuos day:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date={"$(=date(Date-1))"}&amp;gt;} Cash )&lt;/P&gt;&lt;P&gt;I have attached a little file were I have tested it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: I have tested on your file and it works fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 03:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-using-Set-Analysis/m-p/144289#M505786</guid>
      <dc:creator />
      <dc:date>2009-05-19T03:55:56Z</dc:date>
    </item>
    <item>
      <title>Date problem using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-using-Set-Analysis/m-p/144290#M505787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ops i posted the wrong file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 04:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-using-Set-Analysis/m-p/144290#M505787</guid>
      <dc:creator />
      <dc:date>2009-05-19T04:00:03Z</dc:date>
    </item>
    <item>
      <title>Date problem using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-using-Set-Analysis/m-p/144291#M505788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great job!&lt;/P&gt;&lt;P&gt;I tried to figure this out myself, and all the other solutions, but only this one worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 04:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-using-Set-Analysis/m-p/144291#M505788</guid>
      <dc:creator />
      <dc:date>2009-05-19T04:19:22Z</dc:date>
    </item>
    <item>
      <title>Date problem using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-using-Set-Analysis/m-p/144292#M505789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I'm new user QV.&lt;/P&gt;&lt;P&gt;On this instrucción &lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;DATE = {$(#=only(DATE)-1)}&amp;gt;} CASH)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;how I can&lt;/SPAN&gt; &lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;add a condition (for example the state of one &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;registration)&lt;/SPAN&gt;&lt;/SPAN&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;which would be the&lt;/SPAN&gt; &lt;SPAN class="hps" title="Haz clic para obtener otras posibles traducciones"&gt;syntax?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 16:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-using-Set-Analysis/m-p/144292#M505789</guid>
      <dc:creator />
      <dc:date>2011-07-01T16:33:19Z</dc:date>
    </item>
  </channel>
</rss>

