<?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: Class function for calculated values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372343#M830424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Avinash, I gave the wrong example!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm actually trying to use:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=CLASS(AGGR(AVG({&amp;lt;GEN={'ALL'}&amp;gt;}PriorAP)-AGGR(NODISTINCT AVG({&amp;lt;GEN={'ALL'}&amp;gt;} PriorAP),ID)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff6600;"&gt;ID&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,BinWidth)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jun 2017 14:21:45 GMT</pubDate>
    <dc:creator>jessica_webb</dc:creator>
    <dc:date>2017-06-28T14:21:45Z</dc:date>
    <item>
      <title>Class function for calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372339#M830420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am creating several histograms using the class function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where the histogram is for a straightforward value that is being pulled from my data, I'm not having any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note that 'BinWidth' is a variable which is defined by an input box&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DIM:&lt;/P&gt;&lt;P&gt;=CLASS(AGGR(AVG({&amp;lt;GEN={'ALL'}&amp;gt;}AP_Weighted),ID),BinWidth)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXP:&lt;/P&gt;&lt;P&gt;Count(DISTINCT ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I'm now trying to create a histogram with a much more complex value and here I'm coming unstuck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression on its own (which works fine in a table) is:&lt;/P&gt;&lt;P&gt;AVG({&amp;lt;GEN={'ALL'}&amp;gt;}PriorAP)-AGGR(NODISTINCT AVG({&amp;lt;GEN={'ALL'}&amp;gt;} PriorAP),ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try to insert that into the calculated dimension like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=CLASS(AGGR(AVG({&amp;lt;GEN={'ALL'}&amp;gt;}PriorAP)-AGGR(NODISTINCT AVG({&amp;lt;GEN={'ALL'}&amp;gt;} PriorAP),ID)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,ID)&lt;/SPAN&gt;,BinWidth)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get complete nonsense!&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/Class-function-for-calculated-values/m-p/1372339#M830420</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Class function for calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372340#M830421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You love Nodistinct, don't you? May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=Class(Aggr(Avg({&amp;lt;GEN={'ALL'}&amp;gt;}PriorAP)-Avg(TOTAL &amp;lt;ID&amp;gt; {&amp;lt;GEN={'ALL'}&amp;gt;} PriorAP), ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, KS5_LAESTAB)&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;, BinWidth)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 13:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372340#M830421</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-28T13:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Class function for calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372341#M830422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Add &lt;/EM&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;EM&gt;KS5_LAESTAB as the Dimension you will get the result ...&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;EM&gt;In order to use AGGR you need to have that dimension in the chart &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 13:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372341#M830422</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-06-28T13:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Class function for calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372342#M830423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Love it... Or just blindly add it to my expressions!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid your suggestion didn't work. But that's my fault as I had given my example incorrectly!&lt;/P&gt;&lt;P&gt;Have amended it above, but to clarify I was trying to use:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=CLASS(AGGR(AVG({&amp;lt;GEN={'ALL'}&amp;gt;}PriorAP)-AGGR(NODISTINCT AVG({&amp;lt;GEN={'ALL'}&amp;gt;} PriorAP),ID)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,&lt;SPAN style="color: #ff6600;"&gt;ID&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,BinWidth)&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;So I tried your suggestion amended to:&lt;/SPAN&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;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;=Class(Aggr(Avg({&amp;lt;GEN={'ALL'}&amp;gt;}PriorAP)-Avg(TOTAL &amp;lt;ID&amp;gt; {&amp;lt;GEN={'ALL'}&amp;gt;} PriorAP), ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, &lt;SPAN style="color: #ff6600;"&gt;ID&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;, BinWidth)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;But this gives me nothing in my chart at all!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 14:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372342#M830423</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-06-28T14:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Class function for calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372343#M830424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Avinash, I gave the wrong example!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm actually trying to use:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=CLASS(AGGR(AVG({&amp;lt;GEN={'ALL'}&amp;gt;}PriorAP)-AGGR(NODISTINCT AVG({&amp;lt;GEN={'ALL'}&amp;gt;} PriorAP),ID)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff6600;"&gt;ID&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,BinWidth)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 14:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372343#M830424</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-06-28T14:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Class function for calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372344#M830425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share few rows of data to show what exactly are you trying to do here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372344#M830425</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-28T15:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Class function for calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372345#M830426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a spreadsheet of the table that this histogram should build upon.&lt;/P&gt;&lt;P&gt;You'll see there's a column called 'PriorAP' which is created with the expression:&lt;/P&gt;&lt;P&gt;=AVG({&amp;lt;GEN={'ALL'}&amp;gt;}PriorAP)-AGGR(NODISTINCT AVG({&amp;lt;GEN={'ALL'}&amp;gt;} PriorAP),ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would want to see in the Histogram is essentially the number of rows that fall into each bin. I've realised now actually that referring to 'ID' in my expression perhaps doesn't make sense, as I'm not really interested in distinct or non-distinct IDs...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example, with the attached data, if I set my bin width to 0.5, I would expect to see frequencies approximately of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 128px; border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="64"&gt;&lt;STRONG&gt;Bin&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" width="64"&gt;&lt;STRONG&gt;Frequency&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-12.5&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-12&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-11.5&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-11&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-10.5&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-10&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-9.5&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-9&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-8.5&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-8&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-7.5&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-7&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-6.5&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-6&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-5.5&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-5&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-4.5&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-4&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-3.5&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-3&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-2.5&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-2&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-1.5&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-1&lt;/TD&gt;&lt;TD align="right"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;-0.5&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;0&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;0.5&lt;/TD&gt;&lt;TD align="right"&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;1.5&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2.5&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;3.5&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;4&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;4.5&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;5&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 07:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372345#M830426</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-06-29T07:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Class function for calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372346#M830427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this ?&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168533_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 07:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372346#M830427</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-06-29T07:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Class function for calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372347#M830428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&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;=Aggr(Avg({&amp;lt;GEN={'ALL'}&amp;gt;}PriorAP)-Avg(TOTAL &amp;lt;ID&amp;gt;{&amp;lt;GEN={'ALL'}&amp;gt;} PriorAP),ID, Type, Set)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 09:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372347#M830428</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-29T09:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Class function for calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372348#M830429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a lot of testing, I think that's working..!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the full expression I'm using is:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Class(Aggr(Avg({&amp;lt;GEN={'ALL'}&amp;gt;}PriorAP)-Avg(TOTAL &amp;lt;ID&amp;gt;{&amp;lt;GEN={'ALL'}&amp;gt;} PriorAP),ID, Type, Set), BinWidth)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again for your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jess&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 12:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372348#M830429</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-06-29T12:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Class function for calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372349#M830430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you don't mind me bringing this one up again!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last expression you suggested is working perfectly, but I now have an even more complex one that I'm struggling to get into my histogram!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned before, the expression that worked before is:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Class(Aggr(Avg({&amp;lt;GEN={'ALL'}&amp;gt;}PriorAP)-Avg(TOTAL &amp;lt;ID&amp;gt;{&amp;lt;GEN={'ALL'}&amp;gt;} PriorAP),ID, Type, Set), BinWidth)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;I am now trying to edit it to get the following expression (which works in my straight table) into the histogram:&lt;/P&gt;&lt;P&gt;=SUM({1&amp;lt;GEN={'ALL'}&amp;gt;}NUM)/AGGR(NODISTINCT SUM({1&amp;lt;GEN={'ALL'}&amp;gt;} NUM),ID)/AVG({1}TOTAL AGGR(SUM({1&amp;lt;GEN={'ALL'}&amp;gt;}NUM)/SUM(TOTAL &amp;lt;ID&amp;gt; {1&amp;lt;GEN={'ALL'}&amp;gt;} NUM), ID, Type_Set))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I've tried is:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Class(Aggr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(Sum({&amp;lt;GEN={'ALL'}&amp;gt;}NUM)/SUM({1}TOTAL &amp;lt;ID&amp;gt;{1&amp;lt;GEN={'ALL'}&amp;gt;} NUM)/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(AVG({1}TOTAL AGGR(SUM({1&amp;lt;GEN={'ALL'&amp;gt;}NUM)/SUM(TOTAL &amp;lt;ID&amp;gt; &amp;lt;Type_Set&amp;gt; {1&amp;lt;GEN={'ALL'}&amp;gt;}NUM)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,ID, Type, Set), BinWidth)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But wow... what a mess!!! Any ideas? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2017 11:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-function-for-calculated-values/m-p/1372349#M830430</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-07-12T11:29:20Z</dc:date>
    </item>
  </channel>
</rss>

