<?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: Averaging a number makes it negative? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Averaging-a-number-makes-it-negative/m-p/452491#M484411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's a corrupted table. If I export the data to excel and oad that in a new document the averages are correct. If I export the data to a qvd and load that in a new document then the averages are incorrect. I suggest you create a new document and reload the original data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jun 2013 18:53:37 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-06-07T18:53:37Z</dc:date>
    <item>
      <title>Averaging a number makes it negative?</title>
      <link>https://community.qlik.com/t5/QlikView/Averaging-a-number-makes-it-negative/m-p/452490#M484410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What am I missing?&amp;nbsp; Shouldn't the average of a number be the number?&amp;nbsp; Why is it negative?&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 15:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averaging-a-number-makes-it-negative/m-p/452490#M484410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-07T15:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Averaging a number makes it negative?</title>
      <link>https://community.qlik.com/t5/QlikView/Averaging-a-number-makes-it-negative/m-p/452491#M484411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's a corrupted table. If I export the data to excel and oad that in a new document the averages are correct. If I export the data to a qvd and load that in a new document then the averages are incorrect. I suggest you create a new document and reload the original data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 18:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averaging-a-number-makes-it-negative/m-p/452491#M484411</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-07T18:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Averaging a number makes it negative?</title>
      <link>https://community.qlik.com/t5/QlikView/Averaging-a-number-makes-it-negative/m-p/452492#M484412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Gysbert.&amp;nbsp; I'm getting the data out of a QVD.&amp;nbsp; Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 18:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averaging-a-number-makes-it-negative/m-p/452492#M484412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-07T18:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Averaging a number makes it negative?</title>
      <link>https://community.qlik.com/t5/QlikView/Averaging-a-number-makes-it-negative/m-p/452493#M484413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First try loading the qvd in a new qlikview document. If that doesn't work recreate the qvd from the original data because it's probably the qvd that's corrupt. If that's not possible try storing it as csv after loading it with the STORE command and see if the resulting csv file is correct. If it is then try using that the load the data. If the solves the problem you can next try storing that table again in a qvd and see if loading that qvd also works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 19:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averaging-a-number-makes-it-negative/m-p/452493#M484413</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-07T19:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Averaging a number makes it negative?</title>
      <link>https://community.qlik.com/t5/QlikView/Averaging-a-number-makes-it-negative/m-p/452494#M484414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gysbert.&amp;nbsp; That's definitely helpful.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only remaining issue is how does it get corrupted in the first place. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have traced it to the conversion process.&amp;nbsp; I have a QVX that retrieves the data as a string so I have to surround it with the Num# function.&amp;nbsp; Here's a sample value&lt;/P&gt;&lt;P&gt;=avg(Num#('3053740032'))&lt;/P&gt;&lt;P&gt;that comes -1.2412273e+009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Things get fixed once you use Num instead on Num#.&amp;nbsp; Don't understand that.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 20:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averaging-a-number-makes-it-negative/m-p/452494#M484414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-07T20:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Averaging a number makes it negative?</title>
      <link>https://community.qlik.com/t5/QlikView/Averaging-a-number-makes-it-negative/m-p/452495#M484415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably don't need to use the number interpretation function here, QV should read this in as a number automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do need the num#() function, try using a format specifier:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=avg(Num#('3053740032','#'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should fix your issue, I believe it's related to &lt;A _jive_internal="true" href="https://community.qlik.com/thread/55542"&gt;this &lt;/A&gt;discussion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 22:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averaging-a-number-makes-it-negative/m-p/452495#M484415</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-06-07T22:51:39Z</dc:date>
    </item>
  </channel>
</rss>

