<?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 Problem with scatter chart with invalid coordinates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-scatter-chart-with-invalid-coordinates/m-p/232342#M83972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;I'm using QlikView 9 SR 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have problems in my application when I want to display a scatter chart having invalid coordinates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I have values for each month from january 2010 to december 2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;TableData:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Product, MyDate, Value, X, Y&lt;BR /&gt; Water, 01/01/2010, 1, 1, 1&lt;BR /&gt; Water, 01/02/2010, 2, 1, 1&lt;BR /&gt; Water, 01/03/2010, 3, 1, 1&lt;BR /&gt; Water, 01/04/2010, 4, 1, 1&lt;BR /&gt; Water, 01/05/2010, 5, 1, 1&lt;BR /&gt; Water, 01/06/2010, 6, 1, 1&lt;BR /&gt; Water, 01/07/2010, 7, 1, 1&lt;BR /&gt; Water, 01/08/2010, 8, 1, 1&lt;BR /&gt; Water, 01/09/2010, 9, 1, 1&lt;BR /&gt; Water, 01/10/2010, 10, 1, 1&lt;BR /&gt; Water, 01/11/2010, 11, 1, 1&lt;BR /&gt; Water, 01/12/2010, 12, 1, 1&lt;BR /&gt; Water, 01/01/2011, 13, 1, 1&lt;BR /&gt; Water, 01/02/2011, 14, 1, 1&lt;BR /&gt; Water, 01/03/2011, 15, 1, 1&lt;BR /&gt; Water, 01/04/2011, 16, 1, 1&lt;BR /&gt; Water, 01/05/2011, 17, 1, 1&lt;BR /&gt; Water, 01/06/2011, 18, 1, 1&lt;BR /&gt; Water, 01/07/2011, 19, 1, 1&lt;BR /&gt; Water, 01/08/2011, 20, 1, 1&lt;BR /&gt; Water, 01/09/2011, 21, 1, 1&lt;BR /&gt; Water, 01/10/2011, 22, 1, 1&lt;BR /&gt; Water, 01/11/2011, 23, 1, 1&lt;BR /&gt; Water, 01/12/2011, 24, 1, 1&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;DimDate:&lt;BR /&gt;LOAD&lt;BR /&gt; DISTINCT MyDate AS DimDate&lt;BR /&gt;RESIDENT TableData&lt;BR /&gt;ORDER BY MyDate;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can have my evolution using the formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;sum(if(MyDate = DimDate, Value)) / sum(if(MyDate = addmonths(DimDate, -12), Value))&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;When I display the values in a chart, I have a "-" when the ratio cannot be calculated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3675_sourceID:3675" /&gt;&lt;/P&gt;&lt;P&gt;(this is the expected result)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, let's say I want to use this ratio as a coordinate in a scatter chart.&lt;BR /&gt;If my scatter chart is opened and I select dates that cannot return results, my application become buggy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1 : Scatter chart is minimisez. I select 3 dates that will produce a correct ratio.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3676_sourceID:3676" /&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; my chart is OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2 : I select 3 dates that will make a division by zero&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3677_sourceID:3677" /&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; my chart is OK (I have a "-" displayed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3 : I select 3 dates that will produce a correct ratio. I open the scatter chart.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3678_sourceID:3678" /&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; My chart is OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 4 : I select 3 dates that will make a division by zero&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3679_sourceID:3679" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; all my data are wrong.&lt;/P&gt;&lt;P&gt;If my application is on a remote server, this produce a "server connection lost".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is a bug...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Feb 2011 13:06:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-28T13:06:21Z</dc:date>
    <item>
      <title>Problem with scatter chart with invalid coordinates</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-scatter-chart-with-invalid-coordinates/m-p/232342#M83972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;I'm using QlikView 9 SR 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have problems in my application when I want to display a scatter chart having invalid coordinates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I have values for each month from january 2010 to december 2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;TableData:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Product, MyDate, Value, X, Y&lt;BR /&gt; Water, 01/01/2010, 1, 1, 1&lt;BR /&gt; Water, 01/02/2010, 2, 1, 1&lt;BR /&gt; Water, 01/03/2010, 3, 1, 1&lt;BR /&gt; Water, 01/04/2010, 4, 1, 1&lt;BR /&gt; Water, 01/05/2010, 5, 1, 1&lt;BR /&gt; Water, 01/06/2010, 6, 1, 1&lt;BR /&gt; Water, 01/07/2010, 7, 1, 1&lt;BR /&gt; Water, 01/08/2010, 8, 1, 1&lt;BR /&gt; Water, 01/09/2010, 9, 1, 1&lt;BR /&gt; Water, 01/10/2010, 10, 1, 1&lt;BR /&gt; Water, 01/11/2010, 11, 1, 1&lt;BR /&gt; Water, 01/12/2010, 12, 1, 1&lt;BR /&gt; Water, 01/01/2011, 13, 1, 1&lt;BR /&gt; Water, 01/02/2011, 14, 1, 1&lt;BR /&gt; Water, 01/03/2011, 15, 1, 1&lt;BR /&gt; Water, 01/04/2011, 16, 1, 1&lt;BR /&gt; Water, 01/05/2011, 17, 1, 1&lt;BR /&gt; Water, 01/06/2011, 18, 1, 1&lt;BR /&gt; Water, 01/07/2011, 19, 1, 1&lt;BR /&gt; Water, 01/08/2011, 20, 1, 1&lt;BR /&gt; Water, 01/09/2011, 21, 1, 1&lt;BR /&gt; Water, 01/10/2011, 22, 1, 1&lt;BR /&gt; Water, 01/11/2011, 23, 1, 1&lt;BR /&gt; Water, 01/12/2011, 24, 1, 1&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;DimDate:&lt;BR /&gt;LOAD&lt;BR /&gt; DISTINCT MyDate AS DimDate&lt;BR /&gt;RESIDENT TableData&lt;BR /&gt;ORDER BY MyDate;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can have my evolution using the formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;sum(if(MyDate = DimDate, Value)) / sum(if(MyDate = addmonths(DimDate, -12), Value))&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;When I display the values in a chart, I have a "-" when the ratio cannot be calculated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3675_sourceID:3675" /&gt;&lt;/P&gt;&lt;P&gt;(this is the expected result)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, let's say I want to use this ratio as a coordinate in a scatter chart.&lt;BR /&gt;If my scatter chart is opened and I select dates that cannot return results, my application become buggy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1 : Scatter chart is minimisez. I select 3 dates that will produce a correct ratio.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3676_sourceID:3676" /&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; my chart is OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2 : I select 3 dates that will make a division by zero&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3677_sourceID:3677" /&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; my chart is OK (I have a "-" displayed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3 : I select 3 dates that will produce a correct ratio. I open the scatter chart.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3678_sourceID:3678" /&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; My chart is OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 4 : I select 3 dates that will make a division by zero&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3679_sourceID:3679" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; all my data are wrong.&lt;/P&gt;&lt;P&gt;If my application is on a remote server, this produce a "server connection lost".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is a bug...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 13:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-scatter-chart-with-invalid-coordinates/m-p/232342#M83972</guid>
      <dc:creator />
      <dc:date>2011-02-28T13:06:21Z</dc:date>
    </item>
  </channel>
</rss>

