<?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: Set Analysis, restriction to ALL, TOTAL, $, {1} in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restriction-to-ALL-TOTAL-1/m-p/473665#M482517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you mean this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2013 13:08:10 GMT</pubDate>
    <dc:creator>michael_maeuser</dc:creator>
    <dc:date>2013-08-29T13:08:10Z</dc:date>
    <item>
      <title>Set Analysis, restriction to ALL, TOTAL, $, {1}</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restriction-to-ALL-TOTAL-1/m-p/473663#M482515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Fellows, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm strugling with following task. Maybe I didn't get correct the difference between ALL, TOTAL, $, {1} in set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to redistribute values from one material (99) on many another (M1 and M2).&amp;nbsp; &lt;/P&gt;&lt;P&gt;It seems my solution works almost correct, however without applying any filter on specific material. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H6&gt;Here is my formula and many another tries. &lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;*&amp;lt;vBonusSplit&amp;gt; helps easily maintain parameters on which subtotal should be created the sum. You can delete for example "Variant" and see the result will change.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/H6&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="26" style="width: 515px; height: 28px;" width="513"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="80"&gt;=sum(total&amp;lt;$(vBonusSplit)&amp;gt;Rebate)*sum(Sales)/sum(total&amp;lt;$(vBonusSplit)&amp;gt;Sales)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to modify this formula with all, {1} and $ but without any success. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I apply a filter on specific material, redistributed values (in Rebate on Position column) disappear. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to resolve this issue to keep always the values right in the according row?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your hints, which could be helpful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 14:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restriction-to-ALL-TOTAL-1/m-p/473663#M482515</guid>
      <dc:creator />
      <dc:date>2013-08-07T14:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, restriction to ALL, TOTAL, $, {1}</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restriction-to-ALL-TOTAL-1/m-p/473664#M482516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;"&lt;STRONG&gt;All&lt;/STRONG&gt;" disregards selections, and, if used, in chart, dimensions &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; (&lt;STRONG&gt;ALL&lt;/STRONG&gt; field)&lt;/SPAN&gt; is the same as&amp;nbsp; (&lt;STRONG&gt;{1} total&lt;/STRONG&gt; field)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;"&lt;STRONG&gt;Total&lt;/STRONG&gt;" does not disregard selections, but it disregards dimensions.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please see the below link, for the difference between &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ALL, TOTAL&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" data-containerid="2051" data-containertype="14" data-objectid="336161" data-objecttype="2" href="https://community.qlik.com/message/336161#336161" style="color: #3778c7; font-style: inherit; font-family: inherit;"&gt;http://community.qlik.com/message/336161#336161&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In your case, try changing your 'Rebate on POSITION' expression to either of the following, &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;this will make it work irrespective of the selections:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;=sum({1} TOTAL &amp;lt;$(vBonusSplit)&amp;gt;Rebate)&lt;/P&gt;&lt;P&gt;*sum(Sales)&lt;/P&gt;&lt;P&gt;/sum({1} TOTAL &amp;lt;$(vBonusSplit)&amp;gt;Sales)&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(ALL &amp;lt;$(vBonusSplit)&amp;gt;Rebate)&lt;/P&gt;&lt;P&gt;*sum(Sales)&lt;/P&gt;&lt;P&gt;/sum(ALL &amp;lt;$(vBonusSplit)&amp;gt;Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;KD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 13:00:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restriction-to-ALL-TOTAL-1/m-p/473664#M482516</guid>
      <dc:creator>kedar_dandekar</dc:creator>
      <dc:date>2013-08-29T13:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, restriction to ALL, TOTAL, $, {1}</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restriction-to-ALL-TOTAL-1/m-p/473665#M482517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you mean this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 13:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restriction-to-ALL-TOTAL-1/m-p/473665#M482517</guid>
      <dc:creator>michael_maeuser</dc:creator>
      <dc:date>2013-08-29T13:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, restriction to ALL, TOTAL, $, {1}</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restriction-to-ALL-TOTAL-1/m-p/473666#M482518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ah now i got it. thats your expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(total&amp;lt;$(vBonusSplit)&amp;gt; {&amp;lt;Material=&amp;gt;} Rebate) // /XRate&lt;/P&gt;&lt;P&gt;*sum( {&amp;lt;Material=&amp;gt;} Sales) // /XRate&lt;/P&gt;&lt;P&gt;/sum(total&amp;lt;$(vBonusSplit)&amp;gt; {&amp;lt;Material=&amp;gt;} Sales) // /XRate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 13:17:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restriction-to-ALL-TOTAL-1/m-p/473666#M482518</guid>
      <dc:creator>michael_maeuser</dc:creator>
      <dc:date>2013-08-29T13:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, restriction to ALL, TOTAL, $, {1}</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-restriction-to-ALL-TOTAL-1/m-p/473667#M482519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, KedarDan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;indeed this is what I was looking for. Both of the formulas are working, I decided to use the first formula:&lt;/P&gt;&lt;P&gt;=sum({1} TOTAL &amp;lt;$(vBonusSplit)&amp;gt;Rebate)&lt;/P&gt;&lt;P&gt;*sum(Sales)&lt;/P&gt;&lt;P&gt;/sum({1} TOTAL &amp;lt;$(vBonusSplit)&amp;gt;Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have been a great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 13:26:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-restriction-to-ALL-TOTAL-1/m-p/473667#M482519</guid>
      <dc:creator />
      <dc:date>2013-08-29T13:26:31Z</dc:date>
    </item>
  </channel>
</rss>

