<?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: help needed: perform bitand between two huge numbers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-needed-perform-bitand-between-two-huge-numbers/m-p/498353#M557801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have 500.000 records and you want to compare each record to every other record you will get around 125 billion results. You might want to rethink that idea.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Use a data mining tool if you want to do clustering analysis. If you want you can try to &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-2975"&gt;integrate R in Qlikview&lt;/A&gt;. You can find a book about data mining with R &lt;A href="http://cran.r-project.org/doc/contrib/Zhao_R_and_data_mining.pdf"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Jun 2013 11:53:55 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-06-22T11:53:55Z</dc:date>
    <item>
      <title>help needed: perform bitand between two huge numbers</title>
      <link>https://community.qlik.com/t5/QlikView/help-needed-perform-bitand-between-two-huge-numbers/m-p/498352#M557800</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;I have two (string) fields containing the binar representation of big numbers and I need to perform a bitwise AND between these fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;F1 = '01001...001'&lt;/P&gt;&lt;P&gt;F2 = '00101...011'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result should be a string obtained by processing AND for each pair of digits in same ordinal position. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result = '00001...001'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The final gial is then to calculate a number by summing up each digit in the Result: = 0+0+0+1+...+0+0+1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please keep in mind that the field values can have more than 10,000 digits.&lt;/P&gt;&lt;P&gt;Also the table containing these two fileds migth have more than 500,000 records (even 1,000,000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The goal is to implement the solution (if any &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; ) either during LOADING script or in CHARTs and the processing time not to be over 2-3 hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm tring to do is to calculate the Similarity between Customers based on purchased Producs by them.&lt;/P&gt;&lt;P&gt;F1 and F2 represents the vectors for each Customer and its prurchased Products (0 = not purchased, 1 = purchased) and I try to compute the Similarities between each customer and the rest of the customers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(there is an sample attached with two field values. the digits are separated by ";", but it is not mandatory to be separated by anything)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks&lt;/P&gt;&lt;P&gt;Laur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jun 2013 07:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-needed-perform-bitand-between-two-huge-numbers/m-p/498352#M557800</guid>
      <dc:creator />
      <dc:date>2013-06-22T07:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: help needed: perform bitand between two huge numbers</title>
      <link>https://community.qlik.com/t5/QlikView/help-needed-perform-bitand-between-two-huge-numbers/m-p/498353#M557801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have 500.000 records and you want to compare each record to every other record you will get around 125 billion results. You might want to rethink that idea.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Use a data mining tool if you want to do clustering analysis. If you want you can try to &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-2975"&gt;integrate R in Qlikview&lt;/A&gt;. You can find a book about data mining with R &lt;A href="http://cran.r-project.org/doc/contrib/Zhao_R_and_data_mining.pdf"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jun 2013 11:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-needed-perform-bitand-between-two-huge-numbers/m-p/498353#M557801</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-22T11:53:55Z</dc:date>
    </item>
  </channel>
</rss>

