<?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: Wrong data displayed in QlikView when loading from database in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-data-displayed-in-QlikView-when-loading-from-database/m-p/471083#M175992</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;Please ask to QlikTech.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2013 16:51:05 GMT</pubDate>
    <dc:creator>gaurav2017</dc:creator>
    <dc:date>2013-05-17T16:51:05Z</dc:date>
    <item>
      <title>Wrong data displayed in QlikView when loading from database</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-data-displayed-in-QlikView-when-loading-from-database/m-p/471079#M175988</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;We're facing a strange error while reading the data from databse.&lt;/P&gt;&lt;P&gt;We're trying to load the following fields is_current,is_original flags which are of bit data type(in database) to Qlikview. In Database the flags are either 0 or 1.&lt;/P&gt;&lt;P&gt;But when I load these values in to QlikView, 1 appears to be -1. Indeed very strange.&lt;/P&gt;&lt;P&gt;Can any one has experienced this kind of error. I'm about worried that my client will lose interest on QlikView if I notify him about this error.&lt;/P&gt;&lt;P&gt;Kindly advise me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Surendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 12:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-data-displayed-in-QlikView-when-loading-from-database/m-p/471079#M175988</guid>
      <dc:creator />
      <dc:date>2013-05-17T12:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong data displayed in QlikView when loading from database</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-data-displayed-in-QlikView-when-loading-from-database/m-p/471080#M175989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 1 value in your database means True and 0 means False. In Qlikview True is shown as value -1 and False as 0. It's really as simple as that. If you don't like it that way you could simply multiply the values with -1 when loading so every -1 becomes 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 14:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-data-displayed-in-QlikView-when-loading-from-database/m-p/471080#M175989</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-17T14:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong data displayed in QlikView when loading from database</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-data-displayed-in-QlikView-when-loading-from-database/m-p/471081#M175990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably the database driver delivers your flag data as BYTE with all bits set to 1, which will be read as -1 by QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want a 1 instead of -1, just multiply by -1 when reading in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1 * is_current&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is_current,&lt;/P&gt;&lt;P&gt;...;&lt;/P&gt;&lt;P&gt;SELECT ... FROM ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use the flag as boolean,&amp;nbsp; -1 is interpreted as TRUE, so there is nothing to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 14:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-data-displayed-in-QlikView-when-loading-from-database/m-p/471081#M175990</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-05-17T14:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong data displayed in QlikView when loading from database</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-data-displayed-in-QlikView-when-loading-from-database/m-p/471082#M175991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;If I want to get the desired value I can fabs function instead. But my question is why QlikView is showing 1 as -1.&lt;/P&gt;&lt;P&gt;I've changed the data type of corresponding field in database to int.&lt;/P&gt;&lt;P&gt;Yet I'm getting the same output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 14:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-data-displayed-in-QlikView-when-loading-from-database/m-p/471082#M175991</guid>
      <dc:creator />
      <dc:date>2013-05-17T14:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong data displayed in QlikView when loading from database</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-data-displayed-in-QlikView-when-loading-from-database/m-p/471083#M175992</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;Please ask to QlikTech.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 16:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-data-displayed-in-QlikView-when-loading-from-database/m-p/471083#M175992</guid>
      <dc:creator>gaurav2017</dc:creator>
      <dc:date>2013-05-17T16:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong data displayed in QlikView when loading from database</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-data-displayed-in-QlikView-when-loading-from-database/m-p/471084#M175993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is due to differences in the way the boolean type is handled by ODBC and OLEDB driver.&lt;/P&gt;&lt;P&gt;ODBC treats the boolean as a bit type, which has possible values of 0 and 1 where OLEDB treat as different .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesn't matter&amp;nbsp; since -1 treated as true...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or els you can Fabs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 06:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-data-displayed-in-QlikView-when-loading-from-database/m-p/471084#M175993</guid>
      <dc:creator />
      <dc:date>2016-03-03T06:02:25Z</dc:date>
    </item>
  </channel>
</rss>

