<?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 question...sets within sets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-question-sets-within-sets/m-p/263248#M99020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very new to QlikView and am having trouble with a trend analysis I have to do for our users.&amp;nbsp; In my "transaction" table, I have semi-monthly snapshots of certain data so I always need to pull the most recent set (depending on date selections) in my reports.&amp;nbsp; I understand how to do this and have it working, however I now need to do a monthly trend, so rather than pulling the max transaction date from the table for the date range specified, I have to now find the max date for each month rather than the entire set of data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel like I'm mucking up the scenario a bit, so here's a breakdown of what I'm doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get a set where the transaction type = 'A' for the year of 2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In cumulative reports, I would further reduce the set to only those transactions where the transaction date = max(transaction date) and calculate the item value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the trend report, where I'm using the month/year as a dimension, &lt;/P&gt;&lt;P&gt;I need to look at the set where transaction type = 'A' month by month and calculate the value where the transaction date is the max transaction date for that month (since it's a semi-monthly snapshot there are potentially two different transaction dates per month).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing I need to use an aggr function, but I'm not sure where or how to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone run across a similar scenario and/or have ideas on how to meet this business requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Leigh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2011 21:31:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-14T21:31:16Z</dc:date>
    <item>
      <title>Set analysis question...sets within sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-question-sets-within-sets/m-p/263248#M99020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very new to QlikView and am having trouble with a trend analysis I have to do for our users.&amp;nbsp; In my "transaction" table, I have semi-monthly snapshots of certain data so I always need to pull the most recent set (depending on date selections) in my reports.&amp;nbsp; I understand how to do this and have it working, however I now need to do a monthly trend, so rather than pulling the max transaction date from the table for the date range specified, I have to now find the max date for each month rather than the entire set of data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel like I'm mucking up the scenario a bit, so here's a breakdown of what I'm doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get a set where the transaction type = 'A' for the year of 2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In cumulative reports, I would further reduce the set to only those transactions where the transaction date = max(transaction date) and calculate the item value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the trend report, where I'm using the month/year as a dimension, &lt;/P&gt;&lt;P&gt;I need to look at the set where transaction type = 'A' month by month and calculate the value where the transaction date is the max transaction date for that month (since it's a semi-monthly snapshot there are potentially two different transaction dates per month).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing I need to use an aggr function, but I'm not sure where or how to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone run across a similar scenario and/or have ideas on how to meet this business requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Leigh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 21:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-question-sets-within-sets/m-p/263248#M99020</guid>
      <dc:creator />
      <dc:date>2011-09-14T21:31:16Z</dc:date>
    </item>
    <item>
      <title>Set analysis question...sets within sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-question-sets-within-sets/m-p/263249#M99021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leigh, yes, you can do this with AGGR but since you have just two snapshots per month wouldn't make more sense to just add a flag to mark the ones that are the max for that month?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 00:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-question-sets-within-sets/m-p/263249#M99021</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-09-15T00:18:02Z</dc:date>
    </item>
    <item>
      <title>Set analysis question...sets within sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-question-sets-within-sets/m-p/263250#M99022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this particular scenario adding a flag would make the solution easier, yes.&amp;nbsp; However, I fully anticipate a need to use both snapshots, not just the max one, so adding a flag for this one scenario doesn't seem like the optimal solution since it is situation specific.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 13:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-question-sets-within-sets/m-p/263250#M99022</guid>
      <dc:creator />
      <dc:date>2011-09-16T13:09:22Z</dc:date>
    </item>
  </channel>
</rss>

