<?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 set analysis and calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-and-calculated-dimension/m-p/218487#M71597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you're looking for the solution which lets the chart calculate the fastest? I wouldn't use a calculated dimension or set analysis then. Consider doing something like this in the script instead:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LOAD&lt;BR /&gt; ID&lt;BR /&gt;,origin&lt;BR /&gt;,destination&lt;BR /&gt;,if(origin=destination,ID) as ID_with_same_origin_and_destination&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;Then use the new ID field instead of the real ID field, and suppress nulls. I suspect that will be the fastest approach for the chart by a significant margin. Worth testing, in any case. Oh, and replace "ID" with whatever field you really wanted to play with if it isn't an ID. Same idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Jul 2010 01:45:13 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-07-10T01:45:13Z</dc:date>
    <item>
      <title>set analysis and calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-calculated-dimension/m-p/218486#M71596</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'm looking at creating a calculated dimension with set analysis where the values of two fields are compared.&lt;/P&gt;&lt;P&gt;eg. origin = destination or same_origin_and_destination_flag = 1&lt;/P&gt;&lt;P&gt;currently, I use an 'If" statement but am wondering if this can be done using set analysis instead.&lt;/P&gt;&lt;P&gt;(There are approximately 2 million rows in the table that needs to be analysed and would like to compare which is a better option)&lt;/P&gt;&lt;P&gt;Any help with the syntax is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 08:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-calculated-dimension/m-p/218486#M71596</guid>
      <dc:creator />
      <dc:date>2010-07-09T08:44:47Z</dc:date>
    </item>
    <item>
      <title>set analysis and calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-calculated-dimension/m-p/218487#M71597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you're looking for the solution which lets the chart calculate the fastest? I wouldn't use a calculated dimension or set analysis then. Consider doing something like this in the script instead:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LOAD&lt;BR /&gt; ID&lt;BR /&gt;,origin&lt;BR /&gt;,destination&lt;BR /&gt;,if(origin=destination,ID) as ID_with_same_origin_and_destination&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;Then use the new ID field instead of the real ID field, and suppress nulls. I suspect that will be the fastest approach for the chart by a significant margin. Worth testing, in any case. Oh, and replace "ID" with whatever field you really wanted to play with if it isn't an ID. Same idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jul 2010 01:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-calculated-dimension/m-p/218487#M71597</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-07-10T01:45:13Z</dc:date>
    </item>
  </channel>
</rss>

