<?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 Min and Max reference lines on chart - Min incorrect when using Aggr expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Min-and-Max-reference-lines-on-chart-Min-incorrect-when-using/m-p/374785#M574188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the attached QVW I'm getting a 0 plot line for the Minimum value - I expect the light blue dotted line to be plotting at the 1000 0000 level below, but its plotting at 0. QVW is also doing a button toggle between 2 calculations hence the If$(vChange) part but this works fine for the Max value plot. However, when I use the identical expression just replacing the Max function with a Min, it doesnt plot correctly. What do I need to do to I fix the Min level formula? Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I based what I have so far on the example QVW's of John Witherspoon, &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/103391#103391" title="http://community.qlik.com/message/103391#103391"&gt;http://community.qlik.com/message/103391#103391&lt;/A&gt; and &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/23455#23455" title="http://community.qlik.com/message/23455#23455"&gt;http://community.qlik.com/message/23455#23455&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Max formula which works - orange dotted line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If($(vChange)=1, Max(Aggr(Sum({$&amp;lt;recordGroupName={'Forecast'},YearName={2012}&amp;gt;}Forecast),MonthName)) , Max(Aggr(Sum({$&amp;lt;recordGroupName={'Forecast'},YearName={2012}&amp;gt;}Forecast*PackSize),MonthName)) )&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The errant formula - light blue dotted line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If($(vChange)=1, Min(Aggr(Sum({$&amp;lt;recordGroupName={'Forecast'},YearName={2012}&amp;gt;}Forecast),MonthName)) , Min(Aggr(Sum({$&amp;lt;recordGroupName={'Forecast'},YearName={2012}&amp;gt;}Forecast*PackSize),MonthName)) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/message/233287/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikView x64 - [X50 DEVTestMaxMinLines.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/17235_QlikView+x64+-+%5BX50+DEVTestMaxMinLines.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2012 16:13:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-29T16:13:16Z</dc:date>
    <item>
      <title>Min and Max reference lines on chart - Min incorrect when using Aggr expression</title>
      <link>https://community.qlik.com/t5/QlikView/Min-and-Max-reference-lines-on-chart-Min-incorrect-when-using/m-p/374785#M574188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the attached QVW I'm getting a 0 plot line for the Minimum value - I expect the light blue dotted line to be plotting at the 1000 0000 level below, but its plotting at 0. QVW is also doing a button toggle between 2 calculations hence the If$(vChange) part but this works fine for the Max value plot. However, when I use the identical expression just replacing the Max function with a Min, it doesnt plot correctly. What do I need to do to I fix the Min level formula? Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I based what I have so far on the example QVW's of John Witherspoon, &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/103391#103391" title="http://community.qlik.com/message/103391#103391"&gt;http://community.qlik.com/message/103391#103391&lt;/A&gt; and &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/23455#23455" title="http://community.qlik.com/message/23455#23455"&gt;http://community.qlik.com/message/23455#23455&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Max formula which works - orange dotted line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If($(vChange)=1, Max(Aggr(Sum({$&amp;lt;recordGroupName={'Forecast'},YearName={2012}&amp;gt;}Forecast),MonthName)) , Max(Aggr(Sum({$&amp;lt;recordGroupName={'Forecast'},YearName={2012}&amp;gt;}Forecast*PackSize),MonthName)) )&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The errant formula - light blue dotted line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If($(vChange)=1, Min(Aggr(Sum({$&amp;lt;recordGroupName={'Forecast'},YearName={2012}&amp;gt;}Forecast),MonthName)) , Min(Aggr(Sum({$&amp;lt;recordGroupName={'Forecast'},YearName={2012}&amp;gt;}Forecast*PackSize),MonthName)) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/message/233287/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikView x64 - [X50 DEVTestMaxMinLines.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/17235_QlikView+x64+-+%5BX50+DEVTestMaxMinLines.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 16:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-and-Max-reference-lines-on-chart-Min-incorrect-when-using/m-p/374785#M574188</guid>
      <dc:creator />
      <dc:date>2012-06-29T16:13:16Z</dc:date>
    </item>
  </channel>
</rss>

