<?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 Expression not working as expected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417488#M1333215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having problem with the below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;aggregate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthEndDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vMaxSecDate)}&amp;gt;}&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;aggregate)&lt;/SPAN&gt;,1))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;I am using the above expression in a straight table and Sector is my dimension.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt;&lt;EM style="color: #808080;"&gt;&lt;EM style="color: #808080;"&gt;Can someone help me what mistake I am doing?&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080;"&gt;Regards &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417488#M1333215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having problem with the below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;aggregate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthEndDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vMaxSecDate)}&amp;gt;}&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;aggregate)&lt;/SPAN&gt;,1))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;I am using the above expression in a straight table and Sector is my dimension.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt;&lt;EM style="color: #808080;"&gt;&lt;EM style="color: #808080;"&gt;Can someone help me what mistake I am doing?&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080;"&gt;Regards &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417488#M1333215</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417489#M1333217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please Share your sample document&lt;/P&gt;&lt;P&gt;and what u want to show from that document pls mention clearly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 04:09:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417489#M1333217</guid>
      <dc:creator />
      <dc:date>2012-10-16T04:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417490#M1333219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstly, Sum() is faster than Count() so use Sum instead here. Secondly, you have not said what is not right with the expression so this is a pure guess, but try single quotes around the variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(if(aggregate&amp;lt;avg({$&amp;lt;MonthEndDate ={'$(vMaxSecDate)'}&amp;gt;}aggregate),1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 06:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417490#M1333219</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-10-16T06:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417491#M1333221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually - looking at this again I think you'll probably need to wrap your Aggregate in Sum() too:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(if(Sum(aggregate)&amp;lt;avg({$&amp;lt;MonthEndDate ={$(vMaxSecDate)}&amp;gt;}aggregate),1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 06:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417491#M1333221</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-10-16T06:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417492#M1333223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the below expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;aggregate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthEndDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vMaxSecDate)}&amp;gt;}&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;aggregate)&lt;/SPAN&gt;,1))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthEndDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vMaxSecDate)}&amp;gt;}&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;aggregate) works fine and returns me a value specific to each sector in a straight table.And when I use the same to compare and get the count inseide another expression it returns me nothing. &lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #800000; font-size: 8pt;"&gt;As you suggested I cannot use sum because I want&amp;nbsp; to compare each individual aggregate value of a sector with the max date value and get the count of those which are less that the max date aggregate value&amp;nbsp; to calculate percentile.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #800000; font-size: 8pt;"&gt;Percetile:&amp;nbsp; Number of aggregate values fall below the current max date aggregate value&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #800000; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -------------------------------------------------------------------------------------------------------&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #800000; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Total number of aggregate value&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #800000; font-size: 8pt;"&gt;Please let&amp;nbsp; me know your thoughts... &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 15:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417492#M1333223</guid>
      <dc:creator />
      <dc:date>2012-10-16T15:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417493#M1333225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #800000;"&gt;MonthEndDate&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt; ={&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM style="font-size: 8pt; color: #808080;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt;"&gt;$(vMaxSecDate)}&amp;gt;}&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;aggregate)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;...is an aggregated expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore your comparison should also be an aggregated expression.&amp;nbsp; Your dimension is Sector, each of which will most likely contain many rows of fact data so you need to compare the Sum() or Max() or some aggregated version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this not work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=Sum(if(Sum(aggregate)&amp;lt;avg({$&amp;lt;MonthEndDate ={$(vMaxSecDate)}&amp;gt;}aggregate),1))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 16:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417493#M1333225</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-10-16T16:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417494#M1333226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Jason..That doesn't work returns nothing.I am missing something...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 16:20:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417494#M1333226</guid>
      <dc:creator />
      <dc:date>2012-10-16T16:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417495#M1333227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post a sample of your app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 16:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417495#M1333227</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-10-16T16:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417496#M1333228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached sample document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 17:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417496#M1333228</guid>
      <dc:creator />
      <dc:date>2012-10-16T17:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417497#M1333229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ram I did post a sample document please look at it if you have some time. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 18:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417497#M1333229</guid>
      <dc:creator />
      <dc:date>2012-10-16T18:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417498#M1333230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I've understood what you want, this seems to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;count({&amp;lt;Val={"&amp;lt;$(=avg({&amp;lt;Clas={'Advertising'},Date={'$(=max(Date))'}&amp;gt;} Val))"}&amp;gt;} Clas)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 20:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417498#M1333230</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2012-10-16T20:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417499#M1333231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John, Thank You&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see the graph for Advertisng with out any metric (Met)&amp;nbsp; selection max value is 12.12 and number of points that fall below are 6.. so I am trying to get the points below the avg(val) at max date..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 20:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417499#M1333231</guid>
      <dc:creator />
      <dc:date>2012-10-16T20:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417500#M1333232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I misunderstood the requirement.&amp;nbsp; I think you want this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-sum(aggr(avg(Val)&amp;lt;$(=avg({&amp;lt;Clas={'Advertising'},Date={'$(=max(Date))'}&amp;gt;} Val)),Clas,Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 20:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417500#M1333232</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2012-10-16T20:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417501#M1333233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to be working fine for Advertising ..but for other clas in primary clas_type it returns wrong value and also doesn't work for Secondary Clas_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also why are we specifying the 'Advertising' in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 20:31:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417501#M1333233</guid>
      <dc:creator />
      <dc:date>2012-10-16T20:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417502#M1333234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum(aggr(if(avg(Val)&amp;lt;&amp;nbsp; avg(Total&amp;lt;Clas&amp;gt; {&amp;lt;Date={'$(=Date(max(Date)))'}&amp;gt;} Val),1),Clas,Date))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 20:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417502#M1333234</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-16T20:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417503#M1333235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Swuehl !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 21:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/417503#M1333235</guid>
      <dc:creator />
      <dc:date>2012-10-16T21:06:48Z</dc:date>
    </item>
  </channel>
</rss>

