<?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 Latest Month: Set Analysis (Issue# Nested aggregation not allowed) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Latest-Month-Set-Analysis-Issue-Nested-aggregation-not-allowed/m-p/1266764#M398995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many answers out there and I have tried quite a few times, but cannot seem to return a value for the latest month. My aim is for the expression to always show the latest month and not interact with any other date selections&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a variable as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Variable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;e_RTT_Max_Date = Max({1}If(data_source='RTT',FactDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns the value required&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then try and use this variable in an expression, but the result states that &lt;SPAN style="text-decoration: underline;"&gt;nested aggregation is not allowed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=Sum(If((Max(FactDate=$(e_RTT_Max_Date),RTT_BREACH_FLAG))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone kindly point me in the right direction in how to obtain a value for latest month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Mar 2017 10:05:15 GMT</pubDate>
    <dc:creator>helen_pip</dc:creator>
    <dc:date>2017-03-23T10:05:15Z</dc:date>
    <item>
      <title>Latest Month: Set Analysis (Issue# Nested aggregation not allowed)</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-Month-Set-Analysis-Issue-Nested-aggregation-not-allowed/m-p/1266764#M398995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many answers out there and I have tried quite a few times, but cannot seem to return a value for the latest month. My aim is for the expression to always show the latest month and not interact with any other date selections&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a variable as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Variable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;e_RTT_Max_Date = Max({1}If(data_source='RTT',FactDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns the value required&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then try and use this variable in an expression, but the result states that &lt;SPAN style="text-decoration: underline;"&gt;nested aggregation is not allowed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=Sum(If((Max(FactDate=$(e_RTT_Max_Date),RTT_BREACH_FLAG))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone kindly point me in the right direction in how to obtain a value for latest month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 10:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-Month-Set-Analysis-Issue-Nested-aggregation-not-allowed/m-p/1266764#M398995</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2017-03-23T10:05:15Z</dc:date>
    </item>
  </channel>
</rss>

