<?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 Set reference line in scatter chart according to scale in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-reference-line-in-scatter-chart-according-to-scale/m-p/327267#M581722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using kind of the same expression, but wasn't sure whether there was a better solution or no. But the use of ceil is pretty smart, at least if you know all the ranges you'll go through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finally will only use the "max(aggr..." expression, multiplying by a 1.15 coefficient and of course divide by 2 for the reference line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx Erica.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2011 09:00:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-18T09:00:21Z</dc:date>
    <item>
      <title>Set reference line in scatter chart according to scale</title>
      <link>https://community.qlik.com/t5/QlikView/Set-reference-line-in-scatter-chart-according-to-scale/m-p/327265#M581720</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;since it's easier to explain with an example, the attached file is what I would like to obtain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I would like to be able to set the position of a reference line according to the scale of the axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see you coming, telling me it's easy! Well, if I want to set it from the maximum value in my chart (as you can set the max scale), yes. But I would like to position it at the middle of the axis itself, without consideration on the value of the points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if as in the example, my axis goes from 0 to 400, I want to set it at 400 / 2. But automatically, since the max can change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the explaination is good enough, many thanks in advance for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;benetche&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 14:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-reference-line-in-scatter-chart-according-to-scale/m-p/327265#M581720</guid>
      <dc:creator />
      <dc:date>2011-11-17T14:55:48Z</dc:date>
    </item>
    <item>
      <title>Set reference line in scatter chart according to scale</title>
      <link>https://community.qlik.com/t5/QlikView/Set-reference-line-in-scatter-chart-according-to-scale/m-p/327266#M581721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Benetche &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no way to reference the Max from within a chart in qlikview (as far as I know). So the solution here would be to set the max manually, and then use the same function to set your reference line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To set a "manual Max" you will need to max using the aggregate function over the dimension, containing the same expression for that axis. For example if your Y expression is "=sum(Amount)" and your dimension is "Month" then your function would look like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),Month)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;I also X by 1.1 or some arbitrary amount so that the greatest figures are not exactly on the edge of the chart. I also use the ceil function to round the max to the nearest figure:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Activity Month]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),1000) &lt;/SPAN&gt;&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="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Each reference line would use this formula, divided by 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to using a reference line, you could aslo use gridlines and set the step to [the maximum for that axis]/2. This would add flexibility if you wanted to specify a different number of lines in the future.&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;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 20:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-reference-line-in-scatter-chart-according-to-scale/m-p/327266#M581721</guid>
      <dc:creator />
      <dc:date>2011-11-17T20:50:29Z</dc:date>
    </item>
    <item>
      <title>Set reference line in scatter chart according to scale</title>
      <link>https://community.qlik.com/t5/QlikView/Set-reference-line-in-scatter-chart-according-to-scale/m-p/327267#M581722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using kind of the same expression, but wasn't sure whether there was a better solution or no. But the use of ceil is pretty smart, at least if you know all the ranges you'll go through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finally will only use the "max(aggr..." expression, multiplying by a 1.15 coefficient and of course divide by 2 for the reference line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx Erica.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 09:00:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-reference-line-in-scatter-chart-according-to-scale/m-p/327267#M581722</guid>
      <dc:creator />
      <dc:date>2011-11-18T09:00:21Z</dc:date>
    </item>
  </channel>
</rss>

