<?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 Year Help in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-Help-in-Pivot-Table/m-p/13214#M775778</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 looking to create a pivot table that looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/200659_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I need the following 2017 and 2016 filled in for the Persistency row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The persistency equation should take the current year exposures / by the previous years exposures.&amp;nbsp; I tried using the above and below function and I cannot seem to get this to act properly. eg. this should be 2017 Renew Exposures / 2016 Exposures in the first column and then 2016 Renew Exposures / 2015 Exposures in the second column.&amp;nbsp; The third column should be blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Here is the equation I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[ROLLED AY]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = ,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;SEGMENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-={' '}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[ANNUALIZED NEW/RENEWAL DESCRIPTION]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;= {'RENEW'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[BI WRITTEN EXPOSURE YEARS]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;BR /&gt; /&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Above&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[ROLLED AY]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;SEGMENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-={' '}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[BI WRITTEN EXPOSURE YEARS]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[ROLLED AY]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Just Looking for some help to get this to behave properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Justin&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Year Help in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Help-in-Pivot-Table/m-p/13214#M775778</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 looking to create a pivot table that looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/200659_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I need the following 2017 and 2016 filled in for the Persistency row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The persistency equation should take the current year exposures / by the previous years exposures.&amp;nbsp; I tried using the above and below function and I cannot seem to get this to act properly. eg. this should be 2017 Renew Exposures / 2016 Exposures in the first column and then 2016 Renew Exposures / 2015 Exposures in the second column.&amp;nbsp; The third column should be blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Here is the equation I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[ROLLED AY]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = ,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;SEGMENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-={' '}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[ANNUALIZED NEW/RENEWAL DESCRIPTION]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;= {'RENEW'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[BI WRITTEN EXPOSURE YEARS]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;BR /&gt; /&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Above&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[ROLLED AY]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;SEGMENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-={' '}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[BI WRITTEN EXPOSURE YEARS]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[ROLLED AY]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Just Looking for some help to get this to behave properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Justin&lt;/SPAN&gt;&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/Year-Help-in-Pivot-Table/m-p/13214#M775778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Year Help in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Help-in-Pivot-Table/m-p/13215#M775779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have multiple options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;[ROLLED AY] = ,&amp;nbsp; SEGMENT-={' '}, [ANNUALIZED NEW/RENEWAL DESCRIPTION]= {'RENEW'}&amp;gt;}[BI WRITTEN EXPOSURE YEARS])&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Aggr(&lt;SPAN style="color: #ff0000;"&gt;Below&lt;/SPAN&gt;(Sum({&amp;lt;[ROLLED AY]=,SEGMENT-={' '}&amp;gt;} [BI WRITTEN EXPOSURE YEARS])), [ROLLED AY])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Try with After function without Aggr()&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;[ROLLED AY] = ,&amp;nbsp; SEGMENT-={' '}, [ANNUALIZED NEW/RENEWAL DESCRIPTION]= {'RENEW'}&amp;gt;}[BI WRITTEN EXPOSURE YEARS])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;After&lt;/SPAN&gt;(Sum({&amp;lt;[ROLLED AY]=,SEGMENT-={' '}&amp;gt;} [BI WRITTEN EXPOSURE YEARS]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 19:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Help-in-Pivot-Table/m-p/13215#M775779</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-24T19:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Year Help in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Help-in-Pivot-Table/m-p/13216#M775780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perfect thank you for the help!&amp;nbsp; Option 2 worked perfectly.&amp;nbsp; When I tried option 1 it filled in 2017 and 2015.&amp;nbsp; Curious why that happened.&amp;nbsp; Either way, I really appreciate the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 19:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Help-in-Pivot-Table/m-p/13216#M775780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-24T19:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Year Help in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Help-in-Pivot-Table/m-p/13217#M775781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be because of sorting of year field in the script... do you have QV12 or above? If you do, you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;[ROLLED AY] = ,&amp;nbsp; SEGMENT-={' '}, [ANNUALIZED NEW/RENEWAL DESCRIPTION]= {'RENEW'}&amp;gt;}[BI WRITTEN EXPOSURE YEARS])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(Below(Sum({&amp;lt;[ROLLED AY]=,SEGMENT-={' '}&amp;gt;} [BI WRITTEN EXPOSURE YEARS])), &lt;SPAN style="color: #ff0000;"&gt;(&lt;/SPAN&gt;[ROLLED AY]&lt;SPAN style="color: #ff0000;"&gt;, (NUMERIC))&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was the new functionality which was brought into QlikView and Qlik Sense. Read more about this here :&lt;A href="https://community.qlik.com/qlik-blogpost/4673"&gt;The sortable Aggr function is finally here!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 19:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Help-in-Pivot-Table/m-p/13217#M775781</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-24T19:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Year Help in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Help-in-Pivot-Table/m-p/13218#M775782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, read about After and Before here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8205"&gt;Missing Manual - Before() and After()&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 19:22:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Help-in-Pivot-Table/m-p/13218#M775782</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-24T19:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Year Help in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Help-in-Pivot-Table/m-p/13219#M775783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great thank you again.&amp;nbsp; I do not have QV 12 yet.&amp;nbsp; I will try to look at the sorting for the Rolled AY.&amp;nbsp; If it makes sense should I set up a sort in script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 19:26:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Help-in-Pivot-Table/m-p/13219#M775783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-24T19:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Year Help in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Help-in-Pivot-Table/m-p/13220#M775784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, if you can sort Rolled AY in ascending order in the script... your Aggr() with Before should work without any issues&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 19:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Help-in-Pivot-Table/m-p/13220#M775784</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-24T19:27:52Z</dc:date>
    </item>
  </channel>
</rss>

