<?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 A - B not working properly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748773#M267190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling for a few days now without success using Set Analysis for a complicated goal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Sales table, with customers, products, year and product family, among other unecessary fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show a concat list of product families that each customer bought in 2014 but not in 2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My progress so far is:&lt;/P&gt;&lt;P&gt;Concat( {&amp;lt;Year = {2014}&amp;gt; - &amp;lt;Year = {2015}&amp;gt;} DISTINCT ProductFamily, ', ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this doesn't seem to work. My guess is that it's not excluding the ProductFamily from first set, but the whole row, which obviously doesn't exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that my result is:&lt;/P&gt;&lt;P&gt;If customer bought x, y, z in 2014 and nothing in 2015, it shows x, y, z (always shows whole 2014 as the result)&lt;/P&gt;&lt;P&gt;If customer bought x, y, z in 2014 and x in 2015, it shows nothing (always empty if customer bought anything in 2014 AND 2015)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to achieve something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;{ ProductFamily = { &amp;lt;Year = {2014}&amp;gt; ProductFamily - &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;lt;Year = {2015}&amp;gt; ProductFamily&lt;/SPAN&gt; } }&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, unsurprisingly (bad syntax heh) it doesn't work.&lt;/P&gt;&lt;P&gt;Any clues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jan 2015 11:41:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-22T11:41:59Z</dc:date>
    <item>
      <title>Set Analysis A - B not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748773#M267190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling for a few days now without success using Set Analysis for a complicated goal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Sales table, with customers, products, year and product family, among other unecessary fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show a concat list of product families that each customer bought in 2014 but not in 2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My progress so far is:&lt;/P&gt;&lt;P&gt;Concat( {&amp;lt;Year = {2014}&amp;gt; - &amp;lt;Year = {2015}&amp;gt;} DISTINCT ProductFamily, ', ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this doesn't seem to work. My guess is that it's not excluding the ProductFamily from first set, but the whole row, which obviously doesn't exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that my result is:&lt;/P&gt;&lt;P&gt;If customer bought x, y, z in 2014 and nothing in 2015, it shows x, y, z (always shows whole 2014 as the result)&lt;/P&gt;&lt;P&gt;If customer bought x, y, z in 2014 and x in 2015, it shows nothing (always empty if customer bought anything in 2014 AND 2015)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to achieve something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;{ ProductFamily = { &amp;lt;Year = {2014}&amp;gt; ProductFamily - &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;lt;Year = {2015}&amp;gt; ProductFamily&lt;/SPAN&gt; } }&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, unsurprisingly (bad syntax heh) it doesn't work.&lt;/P&gt;&lt;P&gt;Any clues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 11:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748773#M267190</guid>
      <dc:creator />
      <dc:date>2015-01-22T11:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis A - B not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748774#M267191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try following code,it will exclude 2015 from your calculation set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concat( {&amp;lt;Year =- {2015}&amp;gt; } DISTINCT ProductFamily, ', ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 11:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748774#M267191</guid>
      <dc:creator />
      <dc:date>2015-01-22T11:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis A - B not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748775#M267192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not exactly what I'm looking for. It will show a product family of 2014 despite it has been purchased in 2015. I need to remove from 2014 every product family ever bought in 2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, thanks for the interaction!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 11:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748775#M267192</guid>
      <dc:creator />
      <dc:date>2015-01-22T11:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis A - B not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748776#M267193</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;why can't you try P() and E() ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 12:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748776#M267193</guid>
      <dc:creator />
      <dc:date>2015-01-22T12:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis A - B not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748777#M267194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at P() and E() functions, set analysis. It might help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 12:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748777#M267194</guid>
      <dc:creator>jerrysvensson</dc:creator>
      <dc:date>2015-01-22T12:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis A - B not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748778#M267195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried P() and it works only if I select a single customer.&lt;/P&gt;&lt;P&gt;I suppose this happens because many other product families (from other customers) are possible, breaking the set I wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't imagine a way to work with E(). Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 12:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748778#M267195</guid>
      <dc:creator />
      <dc:date>2015-01-22T12:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis A - B not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748779#M267196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Concat({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ProductFamily&lt;/SPAN&gt;=P({&amp;lt;Year={2014}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ProductFamily&lt;/SPAN&gt;)*E({&amp;lt;Year={2015}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ProductFamily&lt;/SPAN&gt;)&amp;gt;}DISTINCT &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ProductFamily&lt;/SPAN&gt;,',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you an intersection of products which were Possible for 2014 and at the same time Excluded for 2015. Coupled with Customer as dimension, it should give you what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: damn, it won't work, set analysis always evaluates before any chart dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 12:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748779#M267196</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2015-01-22T12:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis A - B not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748780#M267197</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;That's a tricky one. I would suggest that you create an extra dummy field on your loading script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Customer&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&amp;amp; '|' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ProductFamily&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dummy &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then you write your expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={2014},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dummy&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;E&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={2015}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dummy&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ProductFamily&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, ',') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate is not an elegant solution but seems to work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 13:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748780#M267197</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2015-01-22T13:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis A - B not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748781#M267198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your edit seems right &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;It got me to the same result as before, but with a higher complexity &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;P&gt;It was a smart aproach, tho. Thanks for trying!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 17:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748781#M267198</guid>
      <dc:creator />
      <dc:date>2015-01-22T17:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis A - B not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748782#M267199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This requires something more than tweaking formulas, but it's something I will try. In fact, I got my hopes up &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reporting back soon...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 17:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748782#M267199</guid>
      <dc:creator />
      <dc:date>2015-01-22T17:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis A - B not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748783#M267200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Absolutely right!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ladies and Gentleman, we have a new champion!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 17:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-A-B-not-working-properly/m-p/748783#M267200</guid>
      <dc:creator />
      <dc:date>2015-01-22T17:25:45Z</dc:date>
    </item>
  </channel>
</rss>

