<?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 32bit QV11 vs 64bit in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-32bit-QV11-vs-64bit/m-p/371536#M703278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I was recently playing with a method to count the number of rows using sum-type functions and came up with this scheme (this is from my notes tab in my script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************************************Rick Huebner 20120607*************************&lt;BR /&gt;I am using numbers here so that I can work with numeric data instead of text.&lt;BR /&gt;This is for performance only since string processing is significantly slower than&lt;BR /&gt;numeric processing. The reason for using 1,000,000,000 as the Pricing transaction&lt;BR /&gt;type is that I can then sum instead of count the Transaction Type Column to &lt;BR /&gt;determine the number of each type. I assigned 1 billion to Pricing because there &lt;BR /&gt;will never be more Pricing lines than CostPoint lines thus preventing really huge&lt;BR /&gt;numbers. Also, I started with 1 billion to prevent the number of lines of cost data&lt;BR /&gt;from exceeding the starting Pricing point. For example: If I have 2512 lines in the &lt;BR /&gt;Pricing file and 2,555,444 lines in the CostPoint data a Sum([Transaction Type])&lt;BR /&gt;will return 2,512,002,555,444.&amp;nbsp; ***NOTE*** This will only be a problem if the number&lt;BR /&gt;of CostPoint rows exceeds 1,000,000,000 in which case just go to 1,000,000,000,000&lt;BR /&gt;and change the formulas accordingly.&lt;BR /&gt;&lt;BR /&gt;Broken down this is:&lt;BR /&gt; 2,512 * 1,000,000,000 =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2,512,000,000,000&lt;BR /&gt; 2,555,444 * 1 = &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,555,444&lt;BR /&gt; -----------------------------------------&lt;BR /&gt; 2,512,002,555,444&lt;BR /&gt;&lt;BR /&gt;To reverse this sum into it's constituents:&lt;BR /&gt; div(2512002555444, 1000000000) = 2,512&lt;BR /&gt; mod(2512002555444, 1000000000) = 2,555,444&lt;BR /&gt;&lt;BR /&gt;CostPoint Transaction is [Transaction Type] = 1&lt;BR /&gt;Pricing Transaction is [Transaction Type] = 1000000000&lt;BR /&gt;**************************************Rick Huebner 20120607*************************&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've since changed my methodology to simple flags, but noticed that when I use this formula in a text box on my 64bit system running 64bit QV11, I get the expected count of records while on my 32bit laptop I get no data, just ().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Cost - (' &amp;amp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;mod&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Transaction Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1000000000), '#,##0', '.' , ',' ) &amp;amp; ')' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;64bit system returns&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cost - (1,050,242)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;32bit system returns&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cost - ()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Transaction Type]&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;64bit system returns&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3262001050242&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;32bit system returns&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3262001050242&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I don't have a second 32bit system easily accessible to test on. I thought I might be overrunning a field length, but the sum should produce the largest number although maybe the precision on the mod function is a problem on 32bit systems?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thoughts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Rick&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2012 19:28:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-27T19:28:34Z</dc:date>
    <item>
      <title>Problem with 32bit QV11 vs 64bit</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-32bit-QV11-vs-64bit/m-p/371536#M703278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I was recently playing with a method to count the number of rows using sum-type functions and came up with this scheme (this is from my notes tab in my script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************************************Rick Huebner 20120607*************************&lt;BR /&gt;I am using numbers here so that I can work with numeric data instead of text.&lt;BR /&gt;This is for performance only since string processing is significantly slower than&lt;BR /&gt;numeric processing. The reason for using 1,000,000,000 as the Pricing transaction&lt;BR /&gt;type is that I can then sum instead of count the Transaction Type Column to &lt;BR /&gt;determine the number of each type. I assigned 1 billion to Pricing because there &lt;BR /&gt;will never be more Pricing lines than CostPoint lines thus preventing really huge&lt;BR /&gt;numbers. Also, I started with 1 billion to prevent the number of lines of cost data&lt;BR /&gt;from exceeding the starting Pricing point. For example: If I have 2512 lines in the &lt;BR /&gt;Pricing file and 2,555,444 lines in the CostPoint data a Sum([Transaction Type])&lt;BR /&gt;will return 2,512,002,555,444.&amp;nbsp; ***NOTE*** This will only be a problem if the number&lt;BR /&gt;of CostPoint rows exceeds 1,000,000,000 in which case just go to 1,000,000,000,000&lt;BR /&gt;and change the formulas accordingly.&lt;BR /&gt;&lt;BR /&gt;Broken down this is:&lt;BR /&gt; 2,512 * 1,000,000,000 =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2,512,000,000,000&lt;BR /&gt; 2,555,444 * 1 = &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,555,444&lt;BR /&gt; -----------------------------------------&lt;BR /&gt; 2,512,002,555,444&lt;BR /&gt;&lt;BR /&gt;To reverse this sum into it's constituents:&lt;BR /&gt; div(2512002555444, 1000000000) = 2,512&lt;BR /&gt; mod(2512002555444, 1000000000) = 2,555,444&lt;BR /&gt;&lt;BR /&gt;CostPoint Transaction is [Transaction Type] = 1&lt;BR /&gt;Pricing Transaction is [Transaction Type] = 1000000000&lt;BR /&gt;**************************************Rick Huebner 20120607*************************&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've since changed my methodology to simple flags, but noticed that when I use this formula in a text box on my 64bit system running 64bit QV11, I get the expected count of records while on my 32bit laptop I get no data, just ().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Cost - (' &amp;amp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;mod&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Transaction Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1000000000), '#,##0', '.' , ',' ) &amp;amp; ')' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;64bit system returns&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cost - (1,050,242)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;32bit system returns&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cost - ()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Transaction Type]&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;64bit system returns&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3262001050242&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;32bit system returns&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3262001050242&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I don't have a second 32bit system easily accessible to test on. I thought I might be overrunning a field length, but the sum should produce the largest number although maybe the precision on the mod function is a problem on 32bit systems?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thoughts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Rick&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 19:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-32bit-QV11-vs-64bit/m-p/371536#M703278</guid>
      <dc:creator />
      <dc:date>2012-06-27T19:28:34Z</dc:date>
    </item>
  </channel>
</rss>

