<?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 Rolling 12 month count not working with embedded set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-12-month-count-not-working-with-embedded-set-analysis/m-p/1202318#M386953</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'm having an issue calculating a rolling 12 month count of records. It works for all of my line charts, however, when I add an embedded set analysis statement, the rolling 12 month set analysis no longer work.&amp;nbsp; Would anyone have a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count(DISTINCT{&amp;lt;Calendar.&lt;SPAN style="font-size: 13.3333px;"&gt;C_YEAR_DASH_MONTH&lt;/SPAN&gt;={"&amp;gt;=$(=Addmonths(MAX(DATE#(Calendar.C_YEAR_DASH_MONTH,'YYYY-MM')),-12))&amp;lt;=$(=MAX(DATE#(Calendar.&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;C_YEAR_DASH_MONTH&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,'YYYY-MM')))"},Calendar.Date=, Calendar.MONTH=,Calendar.Year=&amp;gt;} Fact.ACCOUNT))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The above expression works perfectly, however, when I add the embedded set analysis like the expression below, it no longer works.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;count(DISTINCT{&amp;lt;Calendar.&lt;SPAN style="font-size: 13.3333px;"&gt;C_YEAR_DASH_MONTH&lt;/SPAN&gt;={"&amp;gt;=$(=Addmonths(MAX(DATE#(Calendar.C_YEAR_DASH_MONTH,'YYYY-MM')),-12))&amp;lt;=$(=MAX(DATE#(Calendar.&lt;SPAN style="font-size: 13.3333px;"&gt;C_YEAR_DASH_MONTH&lt;/SPAN&gt;,'YYYY-MM')))"},Calendar.Date=, Calendar.MONTH=,Calendar.Year=,&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Fact.ACCOUNT = p({$&amp;lt;Fact.POI_VALUE = {1}&amp;gt;}Fact.ACCOUNT)&lt;/STRONG&gt;&lt;/SPAN&gt;, Metric1.Description *= e(Metric1.Description) &amp;gt;} Fact.ACCOUNT))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Oct 2016 19:05:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-31T19:05:22Z</dc:date>
    <item>
      <title>Rolling 12 month count not working with embedded set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-month-count-not-working-with-embedded-set-analysis/m-p/1202318#M386953</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'm having an issue calculating a rolling 12 month count of records. It works for all of my line charts, however, when I add an embedded set analysis statement, the rolling 12 month set analysis no longer work.&amp;nbsp; Would anyone have a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count(DISTINCT{&amp;lt;Calendar.&lt;SPAN style="font-size: 13.3333px;"&gt;C_YEAR_DASH_MONTH&lt;/SPAN&gt;={"&amp;gt;=$(=Addmonths(MAX(DATE#(Calendar.C_YEAR_DASH_MONTH,'YYYY-MM')),-12))&amp;lt;=$(=MAX(DATE#(Calendar.&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;C_YEAR_DASH_MONTH&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,'YYYY-MM')))"},Calendar.Date=, Calendar.MONTH=,Calendar.Year=&amp;gt;} Fact.ACCOUNT))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The above expression works perfectly, however, when I add the embedded set analysis like the expression below, it no longer works.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;count(DISTINCT{&amp;lt;Calendar.&lt;SPAN style="font-size: 13.3333px;"&gt;C_YEAR_DASH_MONTH&lt;/SPAN&gt;={"&amp;gt;=$(=Addmonths(MAX(DATE#(Calendar.C_YEAR_DASH_MONTH,'YYYY-MM')),-12))&amp;lt;=$(=MAX(DATE#(Calendar.&lt;SPAN style="font-size: 13.3333px;"&gt;C_YEAR_DASH_MONTH&lt;/SPAN&gt;,'YYYY-MM')))"},Calendar.Date=, Calendar.MONTH=,Calendar.Year=,&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Fact.ACCOUNT = p({$&amp;lt;Fact.POI_VALUE = {1}&amp;gt;}Fact.ACCOUNT)&lt;/STRONG&gt;&lt;/SPAN&gt;, Metric1.Description *= e(Metric1.Description) &amp;gt;} Fact.ACCOUNT))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 19:05:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-month-count-not-working-with-embedded-set-analysis/m-p/1202318#M386953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-31T19:05:22Z</dc:date>
    </item>
  </channel>
</rss>

