<?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 Aggregation over Full Set in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-over-Full-Set/m-p/540939#M1133358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a bar chart where the Dimension is a field, denoting the number of days a particular manufacturing job is either ahead or behind its due date. So the range can go from -20 to +20. The name of the field is 'Diff'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Expression in the chart is a Count, being the number of Jobs that have that same amount of days' advance or delay over their due date. The expression is therefore, No of Jobs = Count(JobNumber).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart works fine. However, what I want to do is set the Y-axis to a fixed maximum value, that is based on the maximum Count over the Full Set of records, i.e. over {1}. So that when I make a selection , the scale of the chart does not suddenly change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I cannot seem to get the correct syntax in the Static Max axis expression. My latest attempt is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt; =1.1*(&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;({1}&lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;JobNumber&lt;/SPAN&gt;),&lt;SPAN style="color: #800000;"&gt;Diff&lt;/SPAN&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;but this still lets the chart choose its own maximum scale whenever I narrow down a selection.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;My hunch is that what I should be doing is calculating the maximum scale in the script and then call that value in the axis expression, but before I approach that course of action I would like to satisfy myself that I am not making some basic flaws in my expression syntax.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Can anyone offer some advice or point me in the right direction?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Pete&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Nov 2013 22:56:42 GMT</pubDate>
    <dc:creator>peter_burgess</dc:creator>
    <dc:date>2013-11-18T22:56:42Z</dc:date>
    <item>
      <title>Aggregation over Full Set</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-over-Full-Set/m-p/540939#M1133358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a bar chart where the Dimension is a field, denoting the number of days a particular manufacturing job is either ahead or behind its due date. So the range can go from -20 to +20. The name of the field is 'Diff'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Expression in the chart is a Count, being the number of Jobs that have that same amount of days' advance or delay over their due date. The expression is therefore, No of Jobs = Count(JobNumber).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart works fine. However, what I want to do is set the Y-axis to a fixed maximum value, that is based on the maximum Count over the Full Set of records, i.e. over {1}. So that when I make a selection , the scale of the chart does not suddenly change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I cannot seem to get the correct syntax in the Static Max axis expression. My latest attempt is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt; =1.1*(&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;({1}&lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;JobNumber&lt;/SPAN&gt;),&lt;SPAN style="color: #800000;"&gt;Diff&lt;/SPAN&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;but this still lets the chart choose its own maximum scale whenever I narrow down a selection.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;My hunch is that what I should be doing is calculating the maximum scale in the script and then call that value in the axis expression, but before I approach that course of action I would like to satisfy myself that I am not making some basic flaws in my expression syntax.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Can anyone offer some advice or point me in the right direction?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Pete&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 22:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-over-Full-Set/m-p/540939#M1133358</guid>
      <dc:creator>peter_burgess</dc:creator>
      <dc:date>2013-11-18T22:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation over Full Set</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-over-Full-Set/m-p/540940#M1133359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably need to apply the set identfier 1 to both aggregations:&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;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=1.1*(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;max&lt;/SPAN&gt;({1} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;aggr&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Count&lt;/SPAN&gt;({1} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;JobNumber&lt;/SPAN&gt;),&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Diff&lt;/SPAN&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 23:53:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-over-Full-Set/m-p/540940#M1133359</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-18T23:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation over Full Set</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-over-Full-Set/m-p/540941#M1133360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you swuehl, that worked perfectly &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;Best,&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 00:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-over-Full-Set/m-p/540941#M1133360</guid>
      <dc:creator>peter_burgess</dc:creator>
      <dc:date>2013-11-19T00:23:18Z</dc:date>
    </item>
  </channel>
</rss>

