<?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: Aggr function for a specific time period in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456506#M794350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can see it as that way, but I see it that functions such as Sum/Max/Min/Avg/Median/Concat... etc are the ones that take set analysis... so I basically added it to the Max() function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Dec 2017 13:00:39 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-12-29T13:00:39Z</dc:date>
    <item>
      <title>Aggr function for a specific time period</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456503#M794347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right now I am trying to kind of create my own heat-map in Qlikview.&amp;nbsp; I have it mostly working, but I need some help with some set analysis and aggregation of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the colormix function to set a upper and lower limit and using some set analysis combined with the aggr() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max(aggr(Sum({&amp;lt;[Discharge Date ID]= P({$}[Reference Date ID])&amp;gt;}[IP Discharge Flg Cnt]), [Discharge Month]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am summing Inpatient Discharges and getting the max discharges in all the months we have data for.&amp;nbsp; The problem is that the time frame I want to use for my heat map is 12 month fiscal calendar, and people are able to choose the fiscal year.&amp;nbsp; So when I use the colormix function to set a sliding scale for the heatmap, the upper limit (or max()), is the highest count of discharges in every month that we have data for.&amp;nbsp; What I want is for the [Discharge Month] part of the aggregation to be the same set analysis that is in the Sum() part.&amp;nbsp; That way the limits for my colormix will be for the shown data, rather than all of it.&amp;nbsp; So my heatmap will be dynamic based on the date selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible at all?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated, and if you need any further clarification feel free to ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456503#M794347</guid>
      <dc:creator>shinnickr</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function for a specific time period</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456504#M794348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;[Discharge Date ID]= P({$}[Reference Date ID])&amp;gt;}&lt;/SPAN&gt;aggr(Sum({&amp;lt;[Discharge Date ID]= P({$}[Reference Date ID])&amp;gt;}[IP Discharge Flg Cnt]), [Discharge Month]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 20:55:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456504#M794348</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-28T20:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function for a specific time period</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456505#M794349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Woohoo!&amp;nbsp; That's it.&amp;nbsp; Thanks Sunny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the correct syntax for applying set analysis to aggregation is to put it before the aggr?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 12:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456505#M794349</guid>
      <dc:creator>shinnickr</dc:creator>
      <dc:date>2017-12-29T12:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function for a specific time period</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456506#M794350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can see it as that way, but I see it that functions such as Sum/Max/Min/Avg/Median/Concat... etc are the ones that take set analysis... so I basically added it to the Max() function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 13:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456506#M794350</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-29T13:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function for a specific time period</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456507#M794351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh okay that definitely makes sense.&amp;nbsp; Thank you for helping me understand a bit more!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 13:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456507#M794351</guid>
      <dc:creator>shinnickr</dc:creator>
      <dc:date>2017-12-29T13:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function for a specific time period</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456508#M794352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My pleasure &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 13:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456508#M794352</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-29T13:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function for a specific time period</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456509#M794353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I could just pick your brain again, without having to create another post...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the heat map working fairly well, but I'm looking to make it a little better.&amp;nbsp; I have a cycle group in the dimensions that cycles between multiple ways of looking at the data.&amp;nbsp; The formula I'm using for the colormix for the heat map is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;colormix1(Sum({&amp;lt;[Discharge Date ID]= P({$}[Reference Date ID])&amp;gt;}[IP Discharge Flg Cnt]) / $(=Max({&amp;lt;[Discharge Date ID]= P({$}[Reference Date ID])&amp;gt;}aggr(Sum({&amp;lt;[Discharge Date ID]= P({$}[Reference Date ID])&amp;gt;}[IP Discharge Flg Cnt]), [Discharge Month]))), RGB(191, 223, 255), RGB(0, 45, 90))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'd like to do is somehow incorporate GetFieldSelection(Comparison Group) into it somewhere so that it further aggregates over the current dimension.&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;I've tried a few different ways, but nothing seemed to work.&amp;nbsp; &lt;/SPAN&gt;That way the colors will be more dynamic.&amp;nbsp; Because right now the overall max of all the data in the current aggregation is 4,088.&amp;nbsp; But when I have a dimension with a lot of rows, all the numbers are very small.&amp;nbsp; So all the colors are on the lighter side, because none of them get close to the overall max.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 13:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456509#M794353</guid>
      <dc:creator>shinnickr</dc:creator>
      <dc:date>2017-12-29T13:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function for a specific time period</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456510#M794354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;colormix1(Sum({&amp;lt;[Discharge Date ID]= P({$}[Reference Date ID])&amp;gt;}[IP Discharge Flg Cnt]) / $(=Max({&amp;lt;[Discharge Date ID]= P({$}[Reference Date ID])&amp;gt;}Aggr(Sum({&amp;lt;[Discharge Date ID]= P({$}[Reference Date ID])&amp;gt;}[IP Discharge Flg Cnt]),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;$(='[' &amp;amp; GetCurrentField([Group Name]) &amp;amp; ']')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;))), RGB(191, 223, 255), RGB(0, 45, 90))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 13:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456510#M794354</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-29T13:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function for a specific time period</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456511#M794355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gosh, Sunny.&amp;nbsp; You're so good.&amp;nbsp; Thank you!!&amp;nbsp; That is exactly what I needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Heat Map.PNG" class="jive-image image-1" src="/legacyfs/online/188481_Heat Map.PNG" style="height: 173px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's lookin' much better now, with your help.&amp;nbsp; Thank you again!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 13:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456511#M794355</guid>
      <dc:creator>shinnickr</dc:creator>
      <dc:date>2017-12-29T13:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function for a specific time period</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456512#M794356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am glad it worked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 13:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-for-a-specific-time-period/m-p/1456512#M794356</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-29T13:46:14Z</dc:date>
    </item>
  </channel>
</rss>

