<?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: Restrict calculation in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Restrict-calculation-in-an-expression/m-p/1064173#M919671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(perc)/Sum(TOTAL &amp;lt;Org&amp;gt; perc)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2016 14:19:36 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-03T14:19:36Z</dc:date>
    <item>
      <title>Restrict calculation in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-calculation-in-an-expression/m-p/1064172#M919670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I just wanted to know if there was any way I could restrict my calculation over a specific dimension. At the time, my calculation is the percentage considering all the elements of the dimension, but I would like to restrict them only to the individual percentage of each element.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using 2 dimensions, but the calculation should be restricted only to individual elements of the dimension 'org'.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="exemplo1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/123393_exemplo1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's my calculation:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="exemplo2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/123394_exemplo2.png" style="height: 548px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;And I got this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="exemplo3.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/123398_exemplo3.png" style="height: 258px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;the calculation of the percentage is considering all the elements of the dimension, but I would like to restrict them individually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="exemplo4.png" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/123404_exemplo4.png" style="height: 258px; width: 620px;" /&gt;&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>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-calculation-in-an-expression/m-p/1064172#M919670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict calculation in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-calculation-in-an-expression/m-p/1064173#M919671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(perc)/Sum(TOTAL &amp;lt;Org&amp;gt; perc)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 14:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-calculation-in-an-expression/m-p/1064173#M919671</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-03T14:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict calculation in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-calculation-in-an-expression/m-p/1064174#M919672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very Good, Sunny, but when I click on the legend to perform a filter, it brings me to filter result all 100%. I would click it and bring me the exact percentage, as it appears before filtering. It's possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BEFORE&lt;/P&gt;&lt;P&gt;&lt;IMG alt="exemplo5.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/123439_exemplo5.png" style="height: 194px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AFTER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="exemplo6.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/123446_exemplo6.png" style="height: 193px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 17:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-calculation-in-an-expression/m-p/1064174#M919672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-03T17:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict calculation in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-calculation-in-an-expression/m-p/1064175#M919673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(perc)/Sum(TOTAL &amp;lt;Org&amp;gt; &lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Status&amp;gt;}&lt;/SPAN&gt;perc)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(perc)/Sum(TOTAL &amp;lt;Org&amp;gt; &lt;SPAN style="color: #ff0000;"&gt;{1}&lt;/SPAN&gt; perc)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 18:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-calculation-in-an-expression/m-p/1064175#M919673</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-03T18:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict calculation in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-calculation-in-an-expression/m-p/1064176#M919674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You Always help me! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 18:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-calculation-in-an-expression/m-p/1064176#M919674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-03T18:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict calculation in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-calculation-in-an-expression/m-p/1064177#M919675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just so you know:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 1) &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(perc)/Sum(TOTAL &amp;lt;Org&amp;gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;Status&amp;gt;}&lt;/SPAN&gt;perc)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The denominator will only remain the same based on selection in Status field. Other field selections will still filter the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 2) &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(perc)/Sum(TOTAL &amp;lt;Org&amp;gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{1}&lt;/SPAN&gt; perc)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN style="font-size: 13.3333px;"&gt;denominator will stay the same regardless of any selection you might make.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 18:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-calculation-in-an-expression/m-p/1064177#M919675</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-03T18:30:22Z</dc:date>
    </item>
  </channel>
</rss>

