<?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 last day - with any selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/last-day-with-any-selection/m-p/885702#M529772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following formula in textfield that should give the number of DimensionToCount on the day that is before the selected day (or month):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;InDay&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vDateToAnalyse&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, -1), DimensionToCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vDateToAnalyse&lt;/EM&gt;&lt;/STRONG&gt;:&amp;nbsp; DayName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), 0) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;That returns the correct number if I have no selection. But if I choose another day and want to see the Value of the day before, I get "0" because of the selection.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I thought something like that could be the solution: &lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;&lt;STRONG&gt;({1}&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt; (&lt;SPAN style="color: #0000ff;"&gt;InDay&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;, &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;vDateToAnalyse&lt;/EM&gt;&lt;/STRONG&gt;, -1), DimensionToCount))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But that Returns the wrong value. Does anyone have an idea how to solve this problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Many thanks in advance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Agathe&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2015 06:42:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-16T06:42:33Z</dc:date>
    <item>
      <title>last day - with any selection</title>
      <link>https://community.qlik.com/t5/QlikView/last-day-with-any-selection/m-p/885702#M529772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following formula in textfield that should give the number of DimensionToCount on the day that is before the selected day (or month):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;InDay&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vDateToAnalyse&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, -1), DimensionToCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vDateToAnalyse&lt;/EM&gt;&lt;/STRONG&gt;:&amp;nbsp; DayName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), 0) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;That returns the correct number if I have no selection. But if I choose another day and want to see the Value of the day before, I get "0" because of the selection.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I thought something like that could be the solution: &lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;&lt;STRONG&gt;({1}&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt; (&lt;SPAN style="color: #0000ff;"&gt;InDay&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;, &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;vDateToAnalyse&lt;/EM&gt;&lt;/STRONG&gt;, -1), DimensionToCount))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But that Returns the wrong value. Does anyone have an idea how to solve this problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Many thanks in advance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Agathe&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 06:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-day-with-any-selection/m-p/885702#M529772</guid>
      <dc:creator />
      <dc:date>2015-07-16T06:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: last day - with any selection</title>
      <link>https://community.qlik.com/t5/QlikView/last-day-with-any-selection/m-p/885703#M529773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10.6666679382324px; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;vDateToAnalyse&lt;/EM&gt;&lt;/STRONG&gt;:&amp;nbsp; DayName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({1}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;), 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 15:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-day-with-any-selection/m-p/885703#M529773</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-07-16T15:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: last day - with any selection</title>
      <link>https://community.qlik.com/t5/QlikView/last-day-with-any-selection/m-p/885704#M529774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your suggestion, but that leads to the Problem, that the date is fix to the max date. But in the formula I want to have a variable date in relation to the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agathe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 06:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-day-with-any-selection/m-p/885704#M529774</guid>
      <dc:creator />
      <dc:date>2015-07-20T06:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: last day - with any selection</title>
      <link>https://community.qlik.com/t5/QlikView/last-day-with-any-selection/m-p/885705#M529775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;&lt;STRONG&gt;({&amp;lt;&lt;/STRONG&gt;&lt;SPAN style="color: #800000;"&gt;Date={'$(=Date(Max(Date)-1))'}&amp;gt;}&lt;/SPAN&gt; DimensionToCount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesn't work, try to share a samplw qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 06:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-day-with-any-selection/m-p/885705#M529775</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-07-20T06:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: last day - with any selection</title>
      <link>https://community.qlik.com/t5/QlikView/last-day-with-any-selection/m-p/885706#M529776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;sorry for waiting so long, but many thanks to you for your answer.&lt;/P&gt;&lt;P&gt;Unfortunately your Suggestion didn´t work. :-(.&lt;/P&gt;&lt;P&gt;I created an example:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 06:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-day-with-any-selection/m-p/885706#M529776</guid>
      <dc:creator />
      <dc:date>2015-07-27T06:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: last day - with any selection</title>
      <link>https://community.qlik.com/t5/QlikView/last-day-with-any-selection/m-p/885707#M529777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For last month try:&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Month={'$(=Month(AddMonths(Max(Date),-1)))'}&amp;gt;} Employee)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 07:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-day-with-any-selection/m-p/885707#M529777</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-07-28T07:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: last day - with any selection</title>
      <link>https://community.qlik.com/t5/QlikView/last-day-with-any-selection/m-p/885708#M529778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That showed a number in the demo but unfortunately not in my master file. I will try it otherwise but many thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 06:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-day-with-any-selection/m-p/885708#M529778</guid>
      <dc:creator />
      <dc:date>2015-08-10T06:14:55Z</dc:date>
    </item>
  </channel>
</rss>

