<?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: Calculated Dimension in Aggr() to Determine Column Max in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974724#M333278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Sasi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Thank you for this suggestion, I will give it a try and provide feedback shortly.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Aug 2015 23:33:53 GMT</pubDate>
    <dc:creator>richardouellett</dc:creator>
    <dc:date>2015-08-23T23:33:53Z</dc:date>
    <item>
      <title>Calculated Dimension in Aggr() to Determine Column Max</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974720#M333274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a chart table below that uses a complex calculated dimension (also) below that I have labeled “People”.&amp;nbsp; I now want to determine the Max of column Freq (= 8 in example below).&amp;nbsp; In the image below “Max(Total Freq)” does not work.&amp;nbsp; As a result I believe I need to use the following Formula &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Total&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(Freq, People)) to achieve the result.&amp;nbsp; This also does not work since the label “People” as the dimension is not recognized.&amp;nbsp; I also tried inserting the calculated dimension formula below and this did not work.&amp;nbsp; Any suggestions/help greatly appreciated.&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Total&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(Freq, &lt;BR /&gt; If( MID(Permut,1,1)='O',OrdID, If( MID(Permut,1,1)='L',ListID, If( MID(Permut,1,1)='G',LabelID, If( MID(Permut,1,1)='C',ColID,&lt;BR /&gt; If( MID(Permut,1,1)='A',ArrivaID, If( MID(Permut,1,1)='P',PerfID,If( MID(Permut,1,1)='R',RptID,Null())))))))&amp;amp;'&amp;gt;'&amp;amp;&lt;BR /&gt; If( MID(Permut,2,1)='O',OrdID, If( MID(Permut,2,1)='L',ListID, If( MID(Permut,2,1)='G',LabelID, If( MID(Permut,2,1)='C',ColID,&lt;BR /&gt; If( MID(Permut,2,1)='A',ArrivaID, If( MID(Permut,2,1)='P',PerfID,If( MID(Permut,2,1)='R',RptID,Null())))))))&amp;nbsp; ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;IMG alt="CalcFindMax.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96743_CalcFindMax.jpg" style="height: 281px; width: 620px;" /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG alt="CalcFindMax2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/96744_CalcFindMax2.jpg" style="height: 337px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Aug 2015 12:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974720#M333274</guid>
      <dc:creator>richardouellett</dc:creator>
      <dc:date>2015-08-22T12:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Aggr() to Determine Column Max</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974721#M333275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have normal dimensions you could use the following approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max(total aggr(YourExpression, Dimensions))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if this could be always extend by calculated dimensions - if yes it would be a lot complexer. Easier is therefore to use interrecord-functions, this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangemax(above(total [Freg], 0, NoOfRows(total)), below(total [Freq], 0, NoOfRows(total)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Aug 2015 18:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974721#M333275</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-08-23T18:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Aggr() to Determine Column Max</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974722#M333276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp; I have learned since posting this that that you cannot use a calculated dimension in the Aggr() formula; simply does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Aug 2015 19:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974722#M333276</guid>
      <dc:creator>richardouellett</dc:creator>
      <dc:date>2015-08-23T19:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Aggr() to Determine Column Max</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974723#M333277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;why dont you try putting this formula in the script and create a new filed called people?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;If( MID(Permut,1,1)='O',OrdID, If( MID(Permut,1,1)='L',ListID, If( MID(Permut,1,1)='G',LabelID, If( MID(Permut,1,1)='C',ColID,&lt;BR /&gt; If( MID(Permut,1,1)='A',ArrivaID, If( MID(Permut,1,1)='P',PerfID,If( MID(Permut,1,1)='R',RptID,Null())))))))&amp;amp;'&amp;gt;'&amp;amp;&lt;BR /&gt; If( MID(Permut,2,1)='O',OrdID, If( MID(Permut,2,1)='L',ListID, If( MID(Permut,2,1)='G',LabelID, If( MID(Permut,2,1)='C',ColID,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; If( MID(Permut,2,1)='A',ArrivaID, If( MID(Permut,2,1)='P',PerfID,If( MID(Permut,2,1)='R',RptID,Null())))))))&amp;nbsp; ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;hth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Sasi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Aug 2015 19:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974723#M333277</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-08-23T19:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Aggr() to Determine Column Max</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974724#M333278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Sasi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Thank you for this suggestion, I will give it a try and provide feedback shortly.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Aug 2015 23:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974724#M333278</guid>
      <dc:creator>richardouellett</dc:creator>
      <dc:date>2015-08-23T23:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Aggr() to Determine Column Max</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974725#M333279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried my second suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangemax(above(total [Freg], 0, NoOfRows(total)), below(total [Freq], 0, NoOfRows(total)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 05:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974725#M333279</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-08-24T05:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Aggr() to Determine Column Max</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974726#M333280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus, I did try your suggestion and it did indeed provide the right answer.&amp;nbsp; However when I trued to sort the by other columns I seemed to have lost functionality.&amp;nbsp; When I disabled the expression the sorting capabilities returned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974726#M333280</guid>
      <dc:creator>richardouellett</dc:creator>
      <dc:date>2015-08-24T15:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Aggr() to Determine Column Max</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974727#M333281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Sasi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;This approach did indeed work and I was able to resolve original problem with "People" now being a legitimate dimension. Thank you very much!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974727#M333281</guid>
      <dc:creator>richardouellett</dc:creator>
      <dc:date>2015-08-24T15:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Aggr() to Determine Column Max</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974728#M333282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you are right some (all) inter-record-functions disable the sorting-settings and apply sorting per load-order (which could be in certain cases adjusted - but in your case there would be not much hope).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Aggr-to-Determine-Column-Max/m-p/974728#M333282</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-08-24T15:25:07Z</dc:date>
    </item>
  </channel>
</rss>

