<?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: indirect set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986534#M336431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(If(field1_ID = field2_ID, customer))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Oct 2015 13:20:47 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-10-15T13:20:47Z</dc:date>
    <item>
      <title>indirect set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986531#M336428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i Need to calculate something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(distinct Customer) where field1_ID = field2_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer and field1_ID are in the same table&lt;/P&gt;&lt;P&gt;field2_ID is located in another table&lt;/P&gt;&lt;P&gt;both tables are indirectly associated (there are like 2-3 tables between both of them)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should be somthing like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier;"&gt;count(&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Courier;"&gt;{&amp;lt;field1_ID = p(field2_ID)&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier;"&gt;customer)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier;"&gt;but it is not working. Any other idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier;"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 13:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986531#M336428</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-10-15T13:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: indirect set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986532#M336429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe - field1_ID &amp;amp; field2_ID is the same column such as Customer_ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 13:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986532#M336429</guid>
      <dc:creator />
      <dc:date>2015-10-15T13:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: indirect set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986533#M336430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasi&lt;/P&gt;&lt;P&gt;i think i did not understand fully your question. But field1_ID and field2_ID are columns with different names but they have the same Content. Field1_ID and customer columns are located in the same table, so i have to Count customers under the condition that field1_ID = field2_ID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 13:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986533#M336430</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-10-15T13:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: indirect set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986534#M336431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(If(field1_ID = field2_ID, customer))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 13:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986534#M336431</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-15T13:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: indirect set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986535#M336432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;this may be too slow for 600 Million records, i am currently loading, but will do that, it takes a time&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 13:22:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986535#M336432</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-10-15T13:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: indirect set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986536#M336433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be create a flag in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(field1_ID = field2_ID, 1, 0) as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Flag = {1}&amp;gt;} customer)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 13:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986536#M336433</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-15T13:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: indirect set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986537#M336434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your expression will also find Customers where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;field1_ID = field2_ID, as long as field1_ID matches any of the possible values of field2_ID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, you want a comparison that is made row by row, and this cannot directly be made with Set Analysis. Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(distinct If(field1_ID = field2_ID,Customer))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( Aggr( If( Max(&lt;SPAN style="font-size: 13.3333px;"&gt;field1_ID) = Max(field2_ID),1,0) ,Customer))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 13:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986537#M336434</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-10-15T13:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: indirect set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986538#M336435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Henric&lt;/P&gt;&lt;P&gt;I will try this once my over 600 m. row tables are loaded&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 13:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986538#M336435</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-10-15T13:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: indirect set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986539#M336436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier; color: #0000ff;"&gt;count(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier; color: #ff0000;"&gt;{&amp;lt;field1_ID = p(field2_ID)&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier; color: #0000ff;"&gt;customer) is on possible solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier; color: #0000ff;"&gt;if that doesnot work,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 13.3333px; font-family: Courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier; color: #0000ff;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier; color: #0000ff;"&gt;count(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier; color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;KeyAutoNumber&amp;nbsp; = {"=(&lt;/SPAN&gt;field1_ID = field2_ID)"}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier; color: #0000ff;"&gt;customer)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Where &lt;SPAN style="color: #ff0000; font-family: Courier; font-size: 13.3333px;"&gt;KeyAutoNumber&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; is an integer key associating both fields.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You can also Use IF() statement but will be slower.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You can do this script by writing:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;tab1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Load ..,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 13.3333px; font-family: Courier;"&gt;field2_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;..,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;from pqr.qvd;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;tab2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Load &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Customer ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;field1_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;From xyz.qvd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;where exists(&lt;SPAN style="color: #ff0000; font-family: Courier; font-size: 13.3333px;"&gt;field2_ID,&lt;SPAN style="color: #ff0000; font-family: Courier; font-size: 13.3333px;"&gt;field1_ID &lt;/SPAN&gt;&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Do Regular count on Front end&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 13:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986539#M336436</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-10-15T13:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: indirect set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986540#M336437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;the first one was correct and fast for more than 600 Million records&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 16:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986540#M336437</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-10-15T16:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: indirect set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986541#M336438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your proposal is correct, though the credit went to Henric,... i realized it late your answer came first&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 16:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/indirect-set-analysis/m-p/986541#M336438</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-10-15T16:51:01Z</dc:date>
    </item>
  </channel>
</rss>

