<?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: Get all previous dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-all-previous-dates/m-p/1044794#M921922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, this means that you already have a solution now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then please close this thread (you can set it to Assumed Answered just to close it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still have open issues, please clarify what your setting is. Best by uploading a small data set / qvw and your expected results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;Just guessing that you may want to use a set expression here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; sum(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/STRONG&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;lt;Date = {"&amp;lt;$(investmentFinishDate)"} &amp;gt;} &lt;/STRONG&gt;&lt;/EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aggr(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(&lt;STRONG&gt;{&amp;lt;Date = {"&amp;lt;$(investmentFinishDate)"} &amp;gt;}&lt;/STRONG&gt; [Adj Close],-Date)*Stocks_Qty-Total_Inv&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/EM&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; Equity&lt;/EM&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; )*100/Budget&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In addition to the already mentioned blog posts, also have a look at &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4669"&gt;Set Analysis in the Aggr function&lt;/A&gt;‌&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="http://aftersync.com/blog/the-magic-of-set-analysis-point-in-time-reporting" title="http://aftersync.com/blog/the-magic-of-set-analysis-point-in-time-reporting"&gt;The Magic of Set Analysis - Point In Time Reporting • Blog • AfterSync&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Apr 2016 23:17:08 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-04-15T23:17:08Z</dc:date>
    <item>
      <title>Get all previous dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-all-previous-dates/m-p/1044789#M921917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a variable &lt;EM&gt;investmentFinishDate &lt;/EM&gt;that is a date dynamically setted scrolling a slider. &lt;/P&gt;&lt;P&gt;Something like this:&lt;BR /&gt;&lt;IMG alt="date.png" class="jive-image image-1" height="150" src="https://community.qlik.com/legacyfs/online/121820_date.png" style="height: 149.597px; width: 742px;" width="742" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I retrieve all previous dates to &lt;EM style="font-size: 13.3333px;"&gt;investmentFinishDate?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;P.S. I'm not able to open qlikview file because I have a personal edition. Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-all-previous-dates/m-p/1044789#M921917</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get all previous dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-all-previous-dates/m-p/1044790#M921918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All previous dates given what data set? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you maybe&amp;nbsp; looking for a set expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(&lt;STRONG&gt;{&amp;lt;DateField = {"&amp;lt;=$(investmenFinishDate)"}&amp;gt;}&lt;/STRONG&gt; DISTINCT DateField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take care that your variable value is matching the field format of DateField:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4076"&gt;A Primer on Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 22:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-all-previous-dates/m-p/1044790#M921918</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-15T22:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get all previous dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-all-previous-dates/m-p/1044791#M921919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I have an &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;investmentFinishDate &lt;/EM&gt;variable&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/EM&gt;and I want to build a pivot table where for each date precedent to &lt;EM&gt;investmentFinishDate &lt;/EM&gt;I have to use this expression &lt;BR /&gt;&lt;EM&gt;=(sum(aggr(FirstSortedValue([Adj Close],-Date)*Stocks_Qty-Total_Inv,Equity)))*100/Budget.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;However, thank you for your &lt;SPAN lang="en"&gt;availability. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 22:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-all-previous-dates/m-p/1044791#M921919</guid>
      <dc:creator />
      <dc:date>2016-04-15T22:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get all previous dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-all-previous-dates/m-p/1044792#M921920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could consider making investmentFinishDate a field instead of a variable, then creating a table that links each investmentFinishDate to all previous dates. We generally call this an "AsOf table". Someone may have a better link, but if you scroll down through this document, you'll see the idea discussed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a lot of ways to build the AsOf table. We can help you if you decide to go this way but are having trouble with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 22:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-all-previous-dates/m-p/1044792#M921920</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-04-15T22:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get all previous dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-all-previous-dates/m-p/1044793#M921921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try adding a button with the Select in Field Action.&amp;nbsp; using your variable and the date field in your data set.&amp;nbsp; So something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Button Select.PNG" class="jive-image image-1" src="/legacyfs/online/121823_Button Select.PNG" style="height: 521px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 22:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-all-previous-dates/m-p/1044793#M921921</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2016-04-15T22:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get all previous dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-all-previous-dates/m-p/1044794#M921922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, this means that you already have a solution now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then please close this thread (you can set it to Assumed Answered just to close it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still have open issues, please clarify what your setting is. Best by uploading a small data set / qvw and your expected results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;Just guessing that you may want to use a set expression here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; sum(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/STRONG&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;lt;Date = {"&amp;lt;$(investmentFinishDate)"} &amp;gt;} &lt;/STRONG&gt;&lt;/EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aggr(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(&lt;STRONG&gt;{&amp;lt;Date = {"&amp;lt;$(investmentFinishDate)"} &amp;gt;}&lt;/STRONG&gt; [Adj Close],-Date)*Stocks_Qty-Total_Inv&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/EM&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; Equity&lt;/EM&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; )*100/Budget&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In addition to the already mentioned blog posts, also have a look at &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4669"&gt;Set Analysis in the Aggr function&lt;/A&gt;‌&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="http://aftersync.com/blog/the-magic-of-set-analysis-point-in-time-reporting" title="http://aftersync.com/blog/the-magic-of-set-analysis-point-in-time-reporting"&gt;The Magic of Set Analysis - Point In Time Reporting • Blog • AfterSync&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 23:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-all-previous-dates/m-p/1044794#M921922</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-15T23:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get all previous dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-all-previous-dates/m-p/1044795#M921923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;I want to implement a table where for each date precedent to a variable &lt;EM&gt;investmentFinishDate &lt;/EM&gt;I have to associate this expression:&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=(sum(aggr(FirstSortedValue([Adj Close],-Date)*Stocks_Qty-Total_Inv,Equity)))*100/Budget.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So if, for example, my investmentFinishDate is set to 22/09/2012 I have to keep all dates precedent to 22/09/2012 and for each date I have to calculate the expression above. &lt;BR /&gt;Clearly I imported a table Date where there are all dates I need. &lt;BR /&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 23:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-all-previous-dates/m-p/1044795#M921923</guid>
      <dc:creator />
      <dc:date>2016-04-15T23:18:55Z</dc:date>
    </item>
  </channel>
</rss>

