<?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 Set Analysis, Alternate States, Prior Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Alternate-States-Prior-Year/m-p/596734#M221005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Set Analysis (QV11) with Alternate States and am trying to get a &lt;STRONG&gt;prior year&lt;/STRONG&gt; calculation. The expression below works for the selected year, and is summing for the selections in the alternate state (GroupOne) but applying the time dimension selections in the default state. I can't seem to modify this to get a prior year calculation. The Year is a character string.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;sum({&lt;SPAN style="color: #0000ff;"&gt;GroupOne&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt; = $::&lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt; = $::&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;&amp;gt;} &lt;SPAN style="color: #800000;"&gt;PremiumByPolicy&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) * .001 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 May 2014 17:23:18 GMT</pubDate>
    <dc:creator>brentdej</dc:creator>
    <dc:date>2014-05-05T17:23:18Z</dc:date>
    <item>
      <title>Set Analysis, Alternate States, Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Alternate-States-Prior-Year/m-p/596734#M221005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Set Analysis (QV11) with Alternate States and am trying to get a &lt;STRONG&gt;prior year&lt;/STRONG&gt; calculation. The expression below works for the selected year, and is summing for the selections in the alternate state (GroupOne) but applying the time dimension selections in the default state. I can't seem to modify this to get a prior year calculation. The Year is a character string.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;sum({&lt;SPAN style="color: #0000ff;"&gt;GroupOne&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt; = $::&lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt; = $::&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;&amp;gt;} &lt;SPAN style="color: #800000;"&gt;PremiumByPolicy&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) * .001 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 17:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Alternate-States-Prior-Year/m-p/596734#M221005</guid>
      <dc:creator>brentdej</dc:creator>
      <dc:date>2014-05-05T17:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Alternate States, Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Alternate-States-Prior-Year/m-p/596735#M221006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;GroupOne&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Year&lt;/SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #800000;"&gt;{'$(=max({$}Year)-1)'}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt; = $::&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;PremiumByPolicy&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) * .001&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If not, please post an example document with sample data.&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 17:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Alternate-States-Prior-Year/m-p/596735#M221006</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-05-05T17:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Alternate States, Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Alternate-States-Prior-Year/m-p/596736#M221007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 17:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Alternate-States-Prior-Year/m-p/596736#M221007</guid>
      <dc:creator>brentdej</dc:creator>
      <dc:date>2014-05-05T17:52:32Z</dc:date>
    </item>
  </channel>
</rss>

