<?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: Work around Before ( ) function ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Work-around-Before-function/m-p/832677#M292958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to fix it.&lt;/P&gt;&lt;P&gt;Previoulsy the rolling months was for 12 months, that's why I was losing the first month (as a result of using before () )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I created a rolling month for 13 months, This way I get all 12 months of data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2015 20:06:07 GMT</pubDate>
    <dc:creator>swarup_malli</dc:creator>
    <dc:date>2015-06-16T20:06:07Z</dc:date>
    <item>
      <title>Work around Before ( ) function ?</title>
      <link>https://community.qlik.com/t5/QlikView/Work-around-Before-function/m-p/832672#M292953</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;&lt;/P&gt;&lt;P&gt;I'm using &lt;STRONG&gt;&lt;EM&gt;Before ()&lt;/EM&gt;&lt;/STRONG&gt; function to find the difference between 2 rows&amp;nbsp;&amp;nbsp; for rolling months in a pivot table with horizontal dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with before() function is ,after using it the first column becomes null.That's how its designed to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the following formula ( subtracting 2 rows to display sum for rolling months ,ROLLING_FLAG={1} is the flag I'm using to display rolling months)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;EM&gt;&lt;STRONG&gt;= &lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt; SUM(&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGGR(&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Sum ({&amp;lt;ROLLING_FLAG={1}&amp;gt;}FLIGHT_HRS) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;/ COUNT({&amp;lt; ROLLING_FLAG={1}&amp;gt;} AC_SERIAL)) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;* COUNT({&amp;lt;ROLLING_FLAG={1}&amp;gt;}AC_SERIAL),MODEL_CODE,ROLL ))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;Before( total(SUM(&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGGR(&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Sum ( FLIGHT_HRS) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;/ COUNT(AC_SERIAL)) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;* COUNT(AC_SERIAL),MODEL_CODE,ROLL ))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt; ))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following result (see fig below)&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="89605" alt="QV before.png" class="jive-image image-1" src="/legacyfs/online/89605_QV before.png" style="height: 94px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the column for July-2014 to be populated with the right value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how I want the pivot table to look like ( I'm using different columns in the below table,I want the below values to be shown in the above chart)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="89631" alt="QV before  2.png" class="jive-image image-2" src="/legacyfs/online/89631_QV before  2.png" style="height: 81px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching a sample qvw for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: swarup malli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-around-Before-function/m-p/832672#M292953</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2015-06-16T14:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Populate the first column of Pivot table ,by manipulating Before () function</title>
      <link>https://community.qlik.com/t5/QlikView/Work-around-Before-function/m-p/832673#M292954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why don't you try with if condition with the below logic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the min(month) then the normal sum else you can use the code which you have&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 16:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-around-Before-function/m-p/832673#M292954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-16T16:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate the result of before ( ) function</title>
      <link>https://community.qlik.com/t5/QlikView/Work-around-Before-function/m-p/832674#M292955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry I did not get you ? what's normal sum ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 18:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-around-Before-function/m-p/832674#M292955</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2015-06-16T18:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Work around Before ( ) function ?</title>
      <link>https://community.qlik.com/t5/QlikView/Work-around-Before-function/m-p/832675#M292956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is as you commented, since there is nothing before, QV does not know what value to use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use dimensionality for this &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-7969"&gt;How to use - Dimensionality()&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 19:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-around-Before-function/m-p/832675#M292956</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-06-16T19:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Work around Before ( ) function ?</title>
      <link>https://community.qlik.com/t5/QlikView/Work-around-Before-function/m-p/832676#M292957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you ! Ramon let me take a look at .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 19:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-around-Before-function/m-p/832676#M292957</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2015-06-16T19:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Work around Before ( ) function ?</title>
      <link>https://community.qlik.com/t5/QlikView/Work-around-Before-function/m-p/832677#M292958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to fix it.&lt;/P&gt;&lt;P&gt;Previoulsy the rolling months was for 12 months, that's why I was losing the first month (as a result of using before () )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I created a rolling month for 13 months, This way I get all 12 months of data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 20:06:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Work-around-Before-function/m-p/832677#M292958</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2015-06-16T20:06:07Z</dc:date>
    </item>
  </channel>
</rss>

