<?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 Calculating % change - Year over year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-change-Year-over-year/m-p/672083#M473764</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;I am trying to calculate the % change of allowed dollars PMPM between years. I am currently using the following formula:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;above( sum([AMT_ALLOWED])/ sum({1}MM_UNITS))/( sum([AMT_ALLOWED])/ sum({1}MM_UNITS))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;) -1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;EM&gt;Note - i need the "/ sum({1}MM_UNITS))" to stay in the expression to get an accurate PMPM. Because if someone wants to restrict by a claim &lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;parameter&lt;/EM&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;EM&gt;, I still need my underlying population to stay constant (because i need members for PMPM, not claimants).&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;However, if I make any selection to restrict my data, I encounter the following problem (Say I only want to see 'Owners' and 'PR Individual')--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Before I made the "%Change Allowed" field, anything that was excluded from my selection would collapse. Now everything remains and is populated with nulls/zeros. Any suggestions on how to change my formula above to get the excluded fields to collapse again? Or perhaps a better way to calculate % change between years as shown above?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thank you. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Oct 2014 15:44:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-21T15:44:30Z</dc:date>
    <item>
      <title>Calculating % change - Year over year</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-change-Year-over-year/m-p/672083#M473764</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;I am trying to calculate the % change of allowed dollars PMPM between years. I am currently using the following formula:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;above( sum([AMT_ALLOWED])/ sum({1}MM_UNITS))/( sum([AMT_ALLOWED])/ sum({1}MM_UNITS))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;) -1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;EM&gt;Note - i need the "/ sum({1}MM_UNITS))" to stay in the expression to get an accurate PMPM. Because if someone wants to restrict by a claim &lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;parameter&lt;/EM&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;EM&gt;, I still need my underlying population to stay constant (because i need members for PMPM, not claimants).&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;However, if I make any selection to restrict my data, I encounter the following problem (Say I only want to see 'Owners' and 'PR Individual')--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Before I made the "%Change Allowed" field, anything that was excluded from my selection would collapse. Now everything remains and is populated with nulls/zeros. Any suggestions on how to change my formula above to get the excluded fields to collapse again? Or perhaps a better way to calculate % change between years as shown above?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thank you. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 15:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-change-Year-over-year/m-p/672083#M473764</guid>
      <dc:creator />
      <dc:date>2014-10-21T15:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating % change - Year over year</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-change-Year-over-year/m-p/672084#M473765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps the problem is that you're dividing by zero for the other benchmark values because of the {1}. Maybe this works: &lt;STRONG&gt;alt(&lt;/STRONG&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;above( sum([AMT_ALLOWED])/ sum({1}MM_UNITS))/( sum([AMT_ALLOWED])/ sum({1}MM_UNITS))&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) -1&lt;STRONG&gt;,0)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 19:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-change-Year-over-year/m-p/672084#M473765</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-10-21T19:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating % change - Year over year</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-change-Year-over-year/m-p/672085#M473766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert - that didn't work for this scenario, but i found a way to simplify a few of my other expressions and reference them. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Changed my expression for 'MMs' to:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;BENCHMARKS=P(BENCHMARKS),INCURRED_YEAR=P(INCURRED_YEAR),INCURRED_YEAR_AND_MONTH=P(INCURRED_YEAR_AND_MONTH)&amp;gt;} MM_UNITS) &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'Total Alwd PMPM' to:&lt;/STRONG&gt; sum([AMT_ALLOWED])/[MM's]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'%Change Alwd' to&lt;/STRONG&gt;: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;([Total Alwd PMPM])/ &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;below([Total Alwd PMPM])-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way i was able to avoid using the {1} in my '% change' column altogether, by using my set analysis on the front end in my MM's expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 14:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-change-Year-over-year/m-p/672085#M473766</guid>
      <dc:creator />
      <dc:date>2014-10-23T14:48:40Z</dc:date>
    </item>
  </channel>
</rss>

