<?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: Value changing after importing from data from SQL Server to Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126376#M602699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that Port has really "normal" numerical values? Or could it be that it is a boolean value or is treated from the driver as a boolean data-type. In Qlik means 0 always FALSE and each other numerical value is treated as TRUE whereby if TRUE is the result of a condition or an expression like true() it will have the value of -1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further I suggest to check how the data are really stored in Qlik because there are scenarios in which the displaying is different from the real value. This meant adding another load after your SQL with something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *, text(fieldvalue('Port', recno())) as Port2 resident YourSQLTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Sep 2018 11:56:20 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-09-14T11:56:20Z</dc:date>
    <item>
      <title>Value changing after importing from data from SQL Server to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126371#M602694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to pull data from SQL Server to Qlikview using OLEDB connection. However when the data comes to Qlikview the data is changing. Please suggest if I am doing anything wrong or if there is anyway to avoid it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values in SQL Server for the column in Question is NULL, 1, 0. When I load it to Qlikview, it changes to -1 and 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the screenshots below for reference.&lt;IMG alt="DIM_SUBSCRIPTION_DISTINCT_PORT.jpg" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/213532_DIM_SUBSCRIPTION_DISTINCT_PORT.jpg" style="height: 598px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QLIKVIEW_OLEDB_SQLSERVER_DISTINCT_PORT.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/213533_QLIKVIEW_OLEDB_SQLSERVER_DISTINCT_PORT.JPG" style="height: 180px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajiv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 19:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126371#M602694</guid>
      <dc:creator>rajivmeher</dc:creator>
      <dc:date>2018-09-13T19:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Value changing after importing from data from SQL Server to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126372#M602695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this and run&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD PORT, RecNo() AS RecNum;&lt;/P&gt;&lt;P&gt;SQL SELECT DISTINCT PORT&lt;/P&gt;&lt;P&gt;FROM dbo.DIM_SUBSCRIPTIONS;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then add table box and add PORT and RecNum and tell us what you see. ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 19:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126372#M602695</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-09-13T19:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Value changing after importing from data from SQL Server to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126373#M602696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/98547"&gt;vishsaggi&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the screenshot below for the query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Query_WIth_Recno.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213534_Query_WIth_Recno.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajiv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 19:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126373#M602696</guid>
      <dc:creator>rajivmeher</dc:creator>
      <dc:date>2018-09-13T19:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Value changing after importing from data from SQL Server to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126374#M602697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so you are getting the Null record. Try like below in the LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD IF(Len(Trim(PORT)) = 0, 'NULL', PORT) AS PORT, RecNo() AS RecNum;&lt;/P&gt;&lt;P&gt;SQL .....&lt;/P&gt;&lt;P&gt;FROM ....;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 19:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126374#M602697</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-09-13T19:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Value changing after importing from data from SQL Server to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126375#M602698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/98547"&gt;vishsaggi&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the feedback. However I guess the code you have suggested will handle the Blank value and show it as Null. However the 1 value will still show as -1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to understand why the value is changing to other value when loaded to Qlikview. Is it a driver issue or any other reason. I am able to handle the values in SQL level by using case statement for NULL, 0 and 1 to other values (see my Qlikview screenshot, where the SQL is commented out). But I want to handle it without doing any script change (else suppose some other columns are doing the same in a query, than it will be difficult to identify the same).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajiv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 19:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126375#M602698</guid>
      <dc:creator>rajivmeher</dc:creator>
      <dc:date>2018-09-13T19:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Value changing after importing from data from SQL Server to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126376#M602699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that Port has really "normal" numerical values? Or could it be that it is a boolean value or is treated from the driver as a boolean data-type. In Qlik means 0 always FALSE and each other numerical value is treated as TRUE whereby if TRUE is the result of a condition or an expression like true() it will have the value of -1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further I suggest to check how the data are really stored in Qlik because there are scenarios in which the displaying is different from the real value. This meant adding another load after your SQL with something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *, text(fieldvalue('Port', recno())) as Port2 resident YourSQLTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 11:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126376#M602699</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-09-14T11:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Value changing after importing from data from SQL Server to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126377#M602700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That makes sense. The data in SQL Server column is stored as bit and accepts null. May be because of that 1 is being accepted as True() and converts to -1 and keeps 0 as False or 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway I can handle this value in Qlikview so that it accepts the values as text or integer instead of boolean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Result for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;load *, text(fieldvalue('Port', recno())) as Port2 resident YourSQLTable; comes back as 0 and -1 for port column and Blank/ dash for the port2 column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Please suggest further.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Rajiv.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 12:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126377#M602700</guid>
      <dc:creator>rajivmeher</dc:creator>
      <dc:date>2018-09-14T12:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Value changing after importing from data from SQL Server to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126378#M602701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try to adjust it within a preceeding load with something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Port *-1 as Port &lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;fabs(Port) as Port&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;text(Port) as Port&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another try would be to change the ordering of the field-values with an order by statement within the SQL because the data-interpretation in Qlik is determined through the first field-value and then applied to all values. Having this said you could also enforce this interpretation with a dummy like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dummy: load floor(1) as Port autogenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop tables dummy;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 12:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126378#M602701</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-09-14T12:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Value changing after importing from data from SQL Server to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126379#M602702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fabs(PORT) worked fine. TEXT(PORT) didn't. As this column is in a big table, it wont be possible to do dummy concatenate. However I will try and see if I can implement order by during load, but I doubt it as other field values may not allow the order by that I am expecting because of the varying value in other columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However thanks a lot, fabs will solve my problem for now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajiv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 12:54:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126379#M602702</guid>
      <dc:creator>rajivmeher</dc:creator>
      <dc:date>2018-09-14T12:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Value changing after importing from data from SQL Server to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126380#M602703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's great. But you should also try my dummy-suggestion because this isn't a concatenating of the tables else only of the distinct fieldvalues which are stored in systemtables - it should not impact the performance in any way. More background to the internal datahandling of Qlik could you find here: &lt;A href="https://community.qlik.com/docs/DOC-17226"&gt;Symbol Tables and Bit-Stuffed Pointers - a deeper look behind the scenes&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 13:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126380#M602703</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-09-14T13:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Value changing after importing from data from SQL Server to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126381#M602704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajiv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 13:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/126381#M602704</guid>
      <dc:creator>rajivmeher</dc:creator>
      <dc:date>2018-09-14T13:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Value changing after importing from data from SQL Server to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/1746794#M602705</link>
      <description>&lt;P&gt;Hi&amp;nbsp;rajivmeher,&lt;/P&gt;&lt;P&gt;I have the same problem like you and found a better solution for this one. You could convert the field from boolean into integer directly at the SQL query.&lt;/P&gt;&lt;P&gt;Something like that:&lt;/P&gt;&lt;P&gt;select distinct&lt;/P&gt;&lt;P&gt;CONVERT(int, PORT) PORT&lt;/P&gt;&lt;P&gt;from DIM_SUBSCRIPTIONS&lt;/P&gt;&lt;P&gt;It works.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 12:11:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-changing-after-importing-from-data-from-SQL-Server-to/m-p/1746794#M602705</guid>
      <dc:creator>vasilev</dc:creator>
      <dc:date>2020-09-24T12:11:26Z</dc:date>
    </item>
  </channel>
</rss>

