<?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: First value in above function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702035#M1070389</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand correctly both versions return the same value (2010-01) not the previous (2009-12, which is filtered away) one for the first row. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Aug 2014 12:44:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-19T12:44:34Z</dc:date>
    <item>
      <title>First value in above function</title>
      <link>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702033#M1070387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I filter my data, the above function doesn't return the value for first row. Is there any way of getting the value of 2009-12 in yellow cell (in a dynamic way of course, not hard coding). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/64692_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 08:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702033#M1070387</guid>
      <dc:creator />
      <dc:date>2014-08-19T08:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: First value in above function</title>
      <link>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702034#M1070388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use for this a check from rowno():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(rowno() = 1, count(DISTINCT iPerson), Above(count(DISTINCT iPerson)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or for a cummulative sum:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Dimensionality() = 0, sum(aggr(count(DISTINCT iPerson),iMonth)),&lt;/P&gt;&lt;P&gt;rangesum(count(DISTINCT iPerson), Above(count(DISTINCT iPerson), 1, rowno(total))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 12:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702034#M1070388</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-08-19T12:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: First value in above function</title>
      <link>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702035#M1070389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand correctly both versions return the same value (2010-01) not the previous (2009-12, which is filtered away) one for the first row. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 12:44:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702035#M1070389</guid>
      <dc:creator />
      <dc:date>2014-08-19T12:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: First value in above function</title>
      <link>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702036#M1070390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes thats correct - if you want show the unfiltered value from last prevoius month you need something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(rowno() = 1, count({1&amp;lt; iMonth = {'2009-12'}&amp;gt;} DISTINCT iPerson), Above(count(DISTINCT iPerson)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or more dynamically (you need a numeric time-period)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(rowno() = 1, count({1&amp;lt; iMonth = {"$(=iMonth -1)"}&amp;gt;} DISTINCT iPerson), Above(count(DISTINCT iPerson)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 12:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702036#M1070390</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-08-19T12:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Re: First value in above function</title>
      <link>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702037#M1070391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the filtered period starts from 2010-01, the second one still returns 0. But if add there "all" it works.&lt;/P&gt;&lt;P&gt;if(rowno() = 1, count({1&amp;lt; iMonth = {"$(=iMonth -1)"}&amp;gt;}&lt;STRONG&gt; all&lt;/STRONG&gt; DISTINCT iPerson), Above(count(DISTINCT iPerson))).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I only want to consider persons from A to G the problem is not solved...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 13:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702037#M1070391</guid>
      <dc:creator />
      <dc:date>2014-08-19T13:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: First value in above function</title>
      <link>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702038#M1070392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For me it worked with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(rowno() = 1, count({&amp;lt; iMonth = {'2009-12'}&amp;gt;} DISTINCT total iPerson), Above(count(DISTINCT iPerson)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 13:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702038#M1070392</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-08-19T13:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: First value in above function</title>
      <link>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702039#M1070393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that one works but I hoped I could find some solution that doesn't require hard coding the start date so that the period could be changed dynamically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 13:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702039#M1070393</guid>
      <dc:creator />
      <dc:date>2014-08-19T13:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: First value in above function</title>
      <link>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702040#M1070394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this you need a continuous numeric MonthCounter - have a look here: &lt;A href="https://community.qlik.com/message/563904"&gt;Re: Howto make a variable to calculate quarters regarding year changes?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 13:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702040#M1070394</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-08-19T13:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: First value in above function</title>
      <link>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702041#M1070395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thanks. I hoped there would be dynamic solution without peek (as my actual data is of couse more complex). I think I just then need to hard code the start date. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 05:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-value-in-above-function/m-p/702041#M1070395</guid>
      <dc:creator />
      <dc:date>2014-08-20T05:55:45Z</dc:date>
    </item>
  </channel>
</rss>

