<?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: Rolling 13month not working with Aggr() and two dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-13month-not-working-with-Aggr-and-two-dimensions/m-p/1523727#M748110</link>
    <description>&lt;P&gt;You might want to try another method called the As-Of Table. See this document for more information:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Calculating-rolling-n-period-totals-averages-or-other/ta-p/1483033" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Calculating-rolling-n-period-totals-averages-or-other/ta-p/1483033&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Dec 2018 10:22:27 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2018-12-24T10:22:27Z</dc:date>
    <item>
      <title>Rolling 13month not working with Aggr() and two dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-13month-not-working-with-Aggr-and-two-dimensions/m-p/1523689#M748109</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have two dimensions.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATE and Category&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aggr(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;count({$&amp;lt;DATE={"&amp;gt;=$(=Date(vRollPosDate))&amp;lt;=$(=Date(vMaxPosDate))"} &amp;gt;}DISTINCT(Segment))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Above(count({$&amp;lt;DATE={"&amp;gt;=$(=Date(vRollPosDate))&amp;lt;=$(=Date(vMaxPosDate))"} &amp;gt;}DISTINCT(Segment))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,Category,Sort_date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have used 'sortdate' as another field to sort date in asc for line chart plotting .&lt;/P&gt;&lt;P&gt;when I implement rolling 13 months logic , upon any date selection I am able to see a single date on the line chart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;but&amp;nbsp;&lt;STRONG&gt; unable to plot 13 months(with any date selection) in the above expression.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* with DATE Dimension only and no use of Aggr in the above exp , I am able to plot rolling 13 months with any date selection.&lt;/P&gt;&lt;P&gt;Would appreciate your inputs.&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&amp;nbsp;Shreya&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-13month-not-working-with-Aggr-and-two-dimensions/m-p/1523689#M748109</guid>
      <dc:creator>shreya_nadkarni</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 13month not working with Aggr() and two dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-13month-not-working-with-Aggr-and-two-dimensions/m-p/1523727#M748110</link>
      <description>&lt;P&gt;You might want to try another method called the As-Of Table. See this document for more information:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Calculating-rolling-n-period-totals-averages-or-other/ta-p/1483033" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Calculating-rolling-n-period-totals-averages-or-other/ta-p/1483033&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2018 10:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-13month-not-working-with-Aggr-and-two-dimensions/m-p/1523727#M748110</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-12-24T10:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 13month not working with Aggr() and two dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-13month-not-working-with-Aggr-and-two-dimensions/m-p/1523749#M748111</link>
      <description>&lt;P&gt;Although I agree with Gysbert that you should def. look into AsOfTable, but give this a shot as well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;Only({$&amp;lt;DATE = {"&amp;gt;=$(=Date(vRollPosDate))&amp;lt;=$(=Date(vMaxPosDate))"}&amp;gt;}&lt;/FONT&gt; &lt;BR /&gt;Aggr(
Count({$&amp;lt;DATE&amp;gt;} DISTINCT Segment)
-
Above(Count({$&amp;lt;DATE&amp;gt;} DISTINCT Segment))
, Category, Sort_date)&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Dec 2018 12:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-13month-not-working-with-Aggr-and-two-dimensions/m-p/1523749#M748111</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-24T12:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 13month not working with Aggr() and two dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-13month-not-working-with-Aggr-and-two-dimensions/m-p/1524183#M748112</link>
      <description>&lt;P&gt;Thanks a lot Sunny for your quick response.This expression is working perfectly.(Y)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 02:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-13month-not-working-with-Aggr-and-two-dimensions/m-p/1524183#M748112</guid>
      <dc:creator>shreya_nadkarni</dc:creator>
      <dc:date>2018-12-27T02:20:17Z</dc:date>
    </item>
  </channel>
</rss>

