<?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: Conditional colours for Scatter Chart dots above and Below the Line in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-colours-for-Scatter-Chart-dots-above-and-Below-the/m-p/1158262#M377659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rean,&lt;/P&gt;&lt;P&gt;as you seem to need a linear trendline and not just a diagonal line there is the problem that you have to display a line function inside a scatter chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be honest, I have no clue how this should work, even with the reference line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the way out is a second line chart with the same axis, invisible apart from the line itself in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. calculate formula for the reference line via linest...()&lt;BR /&gt; 2. use background color of 1st dimension to define color and insert formula&lt;BR /&gt; 3. Fix axis to max +10%&lt;BR /&gt; 4. for the reference line, create separate line chart with same fixed axis&lt;BR /&gt; 5. put underneath and synchronize using "show grid".&lt;BR /&gt; 6. when all fits, make all colors of the line chart transparent except for the trend line&lt;BR /&gt; &lt;BR /&gt; -&amp;gt; note that the colors and trendline will react on selections, too&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; And this is the revised formula for the colours:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&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;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;green&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;BR /&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;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GLAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PatientDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;vM&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)+&lt;/SPAN&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;vB&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;blue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;red&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()&lt;BR /&gt; )&lt;BR /&gt; ) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;while vM is linest_m() and vB is linest_b()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;and that's how it looks:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG __jive_id="128975" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128975_pastedImage_5.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and with a selction it changes e.g. to&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="128987" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/128987_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Alternatively&lt;/STRONG&gt;&lt;/SPAN&gt; to avoid all this mess with the synchronized charts, you could as well use a line chart with just symbols instead. The problem with potentially not unique y-values can be solved by adding a really small random value to the x-values while loading.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&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;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PatientDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; + (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Rand&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()/100000) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PatientDays &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GLAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can simply add a linear trendline for your first expression &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GLAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;) where you wont even need the linest()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or create any other calculated reference line as a second expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the date to be shown too, just add another expression &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;)&lt;/SPAN&gt; and tick "text as popup".&lt;/P&gt;&lt;P&gt;Downside of this dirty little trick: I have no idea how to erase the delta for display. In my version no rounding or number formatting helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helped&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2016 11:54:38 GMT</pubDate>
    <dc:creator>michael_klix</dc:creator>
    <dc:date>2016-06-23T11:54:38Z</dc:date>
    <item>
      <title>Conditional colours for Scatter Chart dots above and Below the Line</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-colours-for-Scatter-Chart-dots-above-and-Below-the/m-p/1158258#M377655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wanting to colour the chart below as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above the Linear Line - Blue&lt;/P&gt;&lt;P&gt;Below the Linear Line - Red&lt;/P&gt;&lt;P&gt;Current Month - Green&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any suggestions on the formula to use in the Colour Definitions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128576_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 02:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-colours-for-Scatter-Chart-dots-above-and-Below-the/m-p/1158258#M377655</guid>
      <dc:creator>reanfadyl</dc:creator>
      <dc:date>2016-06-21T02:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional colours for Scatter Chart dots above and Below the Line</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-colours-for-Scatter-Chart-dots-above-and-Below-the/m-p/1158259#M377656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Expresion Llinear Line"&amp;gt;''Value" and Month='month(today())',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rgb(10,245,10),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Expresion Llinear Line"&amp;gt;''Value",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;rgb(80,160,240),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rgb(255,0,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&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;Miguel del Valle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 08:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-colours-for-Scatter-Chart-dots-above-and-Below-the/m-p/1158259#M377656</guid>
      <dc:creator>migueldelval</dc:creator>
      <dc:date>2016-06-21T08:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional colours for Scatter Chart dots above and Below the Line</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-colours-for-Scatter-Chart-dots-above-and-Below-the/m-p/1158260#M377657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rean,&lt;/P&gt;&lt;P&gt; try out this, it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. calculate formula for the reference line&lt;BR /&gt;2. use background colour of 1st dimension to define colour and insert formula (if everything fails define fixed axis).&lt;BR /&gt;3. for the reference line, I used just an overlay line on the bottom &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128626_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Formula for the colour in my case is&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;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;green&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;BR /&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;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GLAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PatientDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*10,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;blue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;red&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()&lt;BR /&gt; )&lt;BR /&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If anybody tells me how to add an attachment here, I can post the qvw, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep Qliking&lt;/P&gt;&lt;P&gt;Michael &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 11:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-colours-for-Scatter-Chart-dots-above-and-Below-the/m-p/1158260#M377657</guid>
      <dc:creator>michael_klix</dc:creator>
      <dc:date>2016-06-21T11:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional colours for Scatter Chart dots above and Below the Line</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-colours-for-Scatter-Chart-dots-above-and-Below-the/m-p/1158261#M377658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks both, it was actually the method for calculating the reference line I was mainly after, which I think is uses the "Linest" function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 22:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-colours-for-Scatter-Chart-dots-above-and-Below-the/m-p/1158261#M377658</guid>
      <dc:creator>reanfadyl</dc:creator>
      <dc:date>2016-06-22T22:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional colours for Scatter Chart dots above and Below the Line</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-colours-for-Scatter-Chart-dots-above-and-Below-the/m-p/1158262#M377659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rean,&lt;/P&gt;&lt;P&gt;as you seem to need a linear trendline and not just a diagonal line there is the problem that you have to display a line function inside a scatter chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be honest, I have no clue how this should work, even with the reference line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the way out is a second line chart with the same axis, invisible apart from the line itself in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. calculate formula for the reference line via linest...()&lt;BR /&gt; 2. use background color of 1st dimension to define color and insert formula&lt;BR /&gt; 3. Fix axis to max +10%&lt;BR /&gt; 4. for the reference line, create separate line chart with same fixed axis&lt;BR /&gt; 5. put underneath and synchronize using "show grid".&lt;BR /&gt; 6. when all fits, make all colors of the line chart transparent except for the trend line&lt;BR /&gt; &lt;BR /&gt; -&amp;gt; note that the colors and trendline will react on selections, too&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; And this is the revised formula for the colours:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&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;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;green&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;BR /&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;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GLAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PatientDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;vM&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)+&lt;/SPAN&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;vB&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;blue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;red&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()&lt;BR /&gt; )&lt;BR /&gt; ) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;while vM is linest_m() and vB is linest_b()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;and that's how it looks:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG __jive_id="128975" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128975_pastedImage_5.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and with a selction it changes e.g. to&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="128987" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/128987_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Alternatively&lt;/STRONG&gt;&lt;/SPAN&gt; to avoid all this mess with the synchronized charts, you could as well use a line chart with just symbols instead. The problem with potentially not unique y-values can be solved by adding a really small random value to the x-values while loading.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&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;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PatientDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; + (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Rand&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()/100000) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PatientDays &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GLAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can simply add a linear trendline for your first expression &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GLAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;) where you wont even need the linest()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or create any other calculated reference line as a second expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the date to be shown too, just add another expression &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;)&lt;/SPAN&gt; and tick "text as popup".&lt;/P&gt;&lt;P&gt;Downside of this dirty little trick: I have no idea how to erase the delta for display. In my version no rounding or number formatting helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helped&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 11:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-colours-for-Scatter-Chart-dots-above-and-Below-the/m-p/1158262#M377659</guid>
      <dc:creator>michael_klix</dc:creator>
      <dc:date>2016-06-23T11:54:38Z</dc:date>
    </item>
  </channel>
</rss>

