<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/174850#M43511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this is ismple, yet my brain is fried.&lt;/P&gt;&lt;P&gt;I was using&lt;/P&gt;&lt;P&gt;if(Flag = '1',[Data Dump] for a dimesnion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I use set analysis to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Sep 2009 20:54:53 GMT</pubDate>
    <dc:creator>james</dc:creator>
    <dc:date>2009-09-03T20:54:53Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/174850#M43511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this is ismple, yet my brain is fried.&lt;/P&gt;&lt;P&gt;I was using&lt;/P&gt;&lt;P&gt;if(Flag = '1',[Data Dump] for a dimesnion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I use set analysis to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 20:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/174850#M43511</guid>
      <dc:creator>james</dc:creator>
      <dc:date>2009-09-03T20:54:53Z</dc:date>
    </item>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/174851#M43512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do you want to use it in a Calculated Dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 21:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/174851#M43512</guid>
      <dc:creator />
      <dc:date>2009-09-03T21:23:08Z</dc:date>
    </item>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/174852#M43513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY ... Sum({$&amp;lt;Flag ={'1'}&amp;gt;}[Data Dump]) ???&lt;/P&gt;&lt;P&gt;Flavio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 22:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/174852#M43513</guid>
      <dc:creator>eiconsulting</dc:creator>
      <dc:date>2009-09-03T22:11:01Z</dc:date>
    </item>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/174853#M43514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dotn want to use it in an expresion, just as a dimension.. so it only shows Dat Dump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 23:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/174853#M43514</guid>
      <dc:creator>james</dc:creator>
      <dc:date>2009-09-03T23:22:48Z</dc:date>
    </item>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/174854#M43515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;you can't use Set Analysis directly in the calculated dimension. You can, however, replace the need in a calculated dimension, by using Set Analysis in the expression.&lt;/P&gt;&lt;P&gt;Let me expand your example a bit. Suppose you have a calculated dimension and an Expression:&lt;/P&gt;&lt;P&gt;Dimension = if(Flag = '1',[Data Dump])&lt;/P&gt;&lt;P&gt;Expression = sum(Amount)&lt;/P&gt;&lt;P&gt;As an alternative, you can avoid a calculated dimension and move the condition into the expression:&lt;/P&gt;&lt;P&gt;Dimension = [Data Dump]&lt;/P&gt;&lt;P&gt;Expression = sum({&amp;lt; Flag = {1} &amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result will be the same, only the second solution might work faster on a large data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 23:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/174854#M43515</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-09-03T23:25:51Z</dc:date>
    </item>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/174855#M43516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm guessing that set analysis won't work faster and will only add maintenance complexity if you have multiple expressions. The idea is that when faced with a calculated dimension, QlikView would be wise to first figure out the dimension values, and then treat that LIKE a set for retrieving the data. So I would expect it to internally use mostly the same code and be just as fast either way. I could, of course, be completely wrong about QlikView's internals, but only testing on your own data set would tell you which is faster.&lt;/P&gt;&lt;P&gt;As yet another alternative, you could make a new field, "Flagged Data Dump", and set its value to "Data Dump" when the flag is set, and null otherwise. Then your chart maintenance is as simple as can be, with "Flagged Data Dump" as the dimension and sum(Amount) as the expression.&lt;/P&gt;&lt;P&gt;I've used all three approaches, and all three work fine. I haven't developed a standard for my own development, which is bad, since consistency would be nice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 03:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/174855#M43516</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-09-04T03:13:18Z</dc:date>
    </item>
  </channel>
</rss>

