<?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 Re: Need help in determining Time Period in which calculation takes place in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-in-determining-Time-Period-in-which-calculation-takes/m-p/761822#M1034014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you help! It wasn't the perfect answer, since the variable strings returned the maximum date after Salary instead of date of salary, but it helped me greatly along the way!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've fixed it like this:&lt;/P&gt;&lt;P&gt;Variable:&lt;/P&gt;&lt;P&gt;vSalaryDate&amp;nbsp; =MaxString(if([Name / Description] = 'Salary', [Date]))&lt;BR /&gt;vEndDate&amp;nbsp; =Date(Today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then using it in an expression:&lt;/P&gt;&lt;P&gt;Expression:&amp;nbsp; =sum({$&amp;lt;Date={"&amp;gt;=$(vSalaryDate)&amp;lt;=$(vEndDate)"}&amp;gt;} [Amount (EUR)])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now just to add the Withdrawal/Deposit qualifier and I'm done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2015 12:59:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-26T12:59:44Z</dc:date>
    <item>
      <title>Need help in determining Time Period in which calculation takes place</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-determining-Time-Period-in-which-calculation-takes/m-p/761820#M1034012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys, just finished designer training and since practice makes perfect, I'm currently trying to build a reporting app for my own personal finances.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway. I would like to have a monitor on my monthly expenses and income. Problem is; I would like to calculate from the moment my salaray is deposited until the next time it is received. And this is unfortunately not a fixed date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example; my sheet looks a bit like this (very simplified)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 497px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 50pt;" width="66"&gt;Date&lt;/TD&gt;&lt;TD style="width: 97pt;" width="129"&gt;Name / Description&lt;/TD&gt;&lt;TD style="width: 47pt;" width="63"&gt;Account&lt;/TD&gt;&lt;TD style="width: 108pt;" width="144"&gt;Deposit / Withdrawal&lt;/TD&gt;&lt;TD style="width: 71pt;" width="95"&gt;Amount (EUR)&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="height: 15.0pt;"&gt;22-1-2015&lt;/TD&gt;&lt;TD&gt;Salary&lt;/TD&gt;&lt;TD align="right"&gt;12345678&lt;/TD&gt;&lt;TD&gt;Deposit&lt;/TD&gt;&lt;TD align="right"&gt;xxxx&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="height: 15.0pt;"&gt;21-1-2015&lt;/TD&gt;&lt;TD&gt;Supermarket&lt;/TD&gt;&lt;TD align="right"&gt;12345678&lt;/TD&gt;&lt;TD&gt;Withdrawal&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made variables for calculating only deposit or withdrawal; no problem. But now I wan't to throw time in the equation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like for it to calculate the Sum of the Deposit or Withdrawal only in the time period starting from the last time 'Salary' can be found in the sheet. So as soon new salary is received it will start calculating again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible? If you need any more information or look at my current set analysis I'll be happy to give it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2015 11:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-determining-Time-Period-in-which-calculation-takes/m-p/761820#M1034012</guid>
      <dc:creator />
      <dc:date>2015-01-25T11:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in determining Time Period in which calculation takes place</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-determining-Time-Period-in-which-calculation-takes/m-p/761821#M1034013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;if I understand the question, you can create a variable for the last date of Salary:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=DATE(Max({&amp;lt;[Name/Description]={'Salary'}&amp;gt;} Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can use the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[Deposit/Withdrawal]={'Withdrawal'}, Date={"&amp;gt;$(vMaxDate)"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that sum amount of all Withdrawal from the last date of Salary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if I have understood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Elena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2015 19:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-determining-Time-Period-in-which-calculation-takes/m-p/761821#M1034013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-25T19:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in determining Time Period in which calculation takes place</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-determining-Time-Period-in-which-calculation-takes/m-p/761822#M1034014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you help! It wasn't the perfect answer, since the variable strings returned the maximum date after Salary instead of date of salary, but it helped me greatly along the way!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've fixed it like this:&lt;/P&gt;&lt;P&gt;Variable:&lt;/P&gt;&lt;P&gt;vSalaryDate&amp;nbsp; =MaxString(if([Name / Description] = 'Salary', [Date]))&lt;BR /&gt;vEndDate&amp;nbsp; =Date(Today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then using it in an expression:&lt;/P&gt;&lt;P&gt;Expression:&amp;nbsp; =sum({$&amp;lt;Date={"&amp;gt;=$(vSalaryDate)&amp;lt;=$(vEndDate)"}&amp;gt;} [Amount (EUR)])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now just to add the Withdrawal/Deposit qualifier and I'm done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 12:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-determining-Time-Period-in-which-calculation-takes/m-p/761822#M1034014</guid>
      <dc:creator />
      <dc:date>2015-01-26T12:59:44Z</dc:date>
    </item>
  </channel>
</rss>

