<?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 using TOTAL to get 'mix' column to work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-TOTAL-to-get-mix-column-to-work/m-p/148174#M505265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found answer &amp;amp; for others... TOTAL must be at the end not the start... like the if statement&lt;/P&gt;&lt;P&gt;Sales / SUM( ({$&amp;lt;YEAR={&lt;B&gt;&lt;I&gt;$(ThisYear)&lt;/I&gt;&lt;/B&gt;}&amp;gt;} total SALES) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jul 2009 22:27:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-03T22:27:14Z</dc:date>
    <item>
      <title>Set Analysis using TOTAL to get 'mix' column to work</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-TOTAL-to-get-mix-column-to-work/m-p/148171#M505262</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;Just moved to 8.5 and now using the wonders of set analysis, but cannot get it to do something an old 'if' statement would. I am just trying to get the 'mix' column to work i.e. from previous column what percentage is sales of 'total' sales'&lt;/P&gt;&lt;P&gt;Month Sales Mix&lt;/P&gt;&lt;P&gt;Jan 100 10%&lt;/P&gt;&lt;P&gt;Feb 300 30%&lt;/P&gt;&lt;P&gt;Mar 600 60%&lt;/P&gt;&lt;P&gt;Used to use this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Sales]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/SUM(total(if (YEAR=ThisYear, SALES)))&lt;/P&gt;&lt;P&gt;where Sales was calculated in the column before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now with sets...&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;[Sales)]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/ SUM(total ({$&amp;lt;YEAR={&lt;B&gt;&lt;I&gt;$(ThisYear)&lt;/I&gt;&lt;/B&gt;}&amp;gt;} SALES) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this doesn't work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas gratefully received !&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 18:02:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-TOTAL-to-get-mix-column-to-work/m-p/148171#M505262</guid>
      <dc:creator />
      <dc:date>2009-07-01T18:02:49Z</dc:date>
    </item>
    <item>
      <title>Set Analysis using TOTAL to get 'mix' column to work</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-TOTAL-to-get-mix-column-to-work/m-p/148172#M505263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;Is "ThisYear" a variable?&lt;/P&gt;&lt;P&gt;-&amp;gt; &lt;B&gt;Sum&lt;/B&gt;(TOTAL { &amp;lt; &lt;B&gt;Year&lt;/B&gt; = {&lt;B&gt;&lt;I&gt;$(=ThisYear)&lt;/I&gt;&lt;/B&gt; } &amp;gt; } &lt;B&gt;Sales&lt;/B&gt;)&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Regards,&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Stephen&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 19:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-TOTAL-to-get-mix-column-to-work/m-p/148172#M505263</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2009-07-01T19:20:48Z</dc:date>
    </item>
    <item>
      <title>Set Analysis using TOTAL to get 'mix' column to work</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-TOTAL-to-get-mix-column-to-work/m-p/148173#M505264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Stephen,&lt;/P&gt;&lt;P&gt;Yes it is.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 19:30:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-TOTAL-to-get-mix-column-to-work/m-p/148173#M505264</guid>
      <dc:creator />
      <dc:date>2009-07-01T19:30:59Z</dc:date>
    </item>
    <item>
      <title>Set Analysis using TOTAL to get 'mix' column to work</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-TOTAL-to-get-mix-column-to-work/m-p/148174#M505265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found answer &amp;amp; for others... TOTAL must be at the end not the start... like the if statement&lt;/P&gt;&lt;P&gt;Sales / SUM( ({$&amp;lt;YEAR={&lt;B&gt;&lt;I&gt;$(ThisYear)&lt;/I&gt;&lt;/B&gt;}&amp;gt;} total SALES) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 22:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-TOTAL-to-get-mix-column-to-work/m-p/148174#M505265</guid>
      <dc:creator />
      <dc:date>2009-07-03T22:27:14Z</dc:date>
    </item>
  </channel>
</rss>

