<?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: pivot measure divide current sum for sales sum in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/pivot-measure-divide-current-sum-for-sales-sum/m-p/34746#M2313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you might need to add your first dimension within the total qualifier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(IsNull(Sum(CBL_ValorT)) or Sum(CBL_ValorT) = 0, 0, Num(fabs(Sum(CBL_ValorT))/Sum({&amp;lt;Group1={"0.*"}&amp;gt;}&lt;SPAN style="color: #ff0000;"&gt;TOTAL &amp;lt;1stDimensionHere&amp;gt;&lt;/SPAN&gt; CBL_ValorT),&amp;nbsp; '#.##0,0%'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace the 1stDimensionHere with the field name which contain RG because this will ensure that you divide by the 0. value of that particular 1st dimension....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Mar 2018 11:55:27 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-03-18T11:55:27Z</dc:date>
    <item>
      <title>pivot measure divide current sum for sales sum</title>
      <link>https://community.qlik.com/t5/App-Development/pivot-measure-divide-current-sum-for-sales-sum/m-p/34744#M2311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, i'm trying to calculate the sum values over the sum of sales. So far i managed to divide it properly but only on totals, som how it doesn't assume the collumn filter. It must be missing something in my formula.&lt;/P&gt;&lt;P&gt;if(isnull(Sum(CBL_ValorT)) or Sum(CBL_ValorT)=0, 0, num(fabs(Sum(CBL_ValorT))/Sum({&amp;lt;Group1={"0.*"}&amp;gt;}CBL_ValorT),&amp;nbsp; '#.##0,0%'))&lt;/P&gt;&lt;P&gt;it's returning this,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="shopdetail.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/196518_shopdetail.jpg" style="height: 104px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;but it should return this.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="shopgoal.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/196517_shopgoal.jpg" style="font-size: 13.3333px; height: 108px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i know this is because is dividing over the total and not over the column, but i can't get to it.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="totals.jpg" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/196519_totals.jpg" style="height: 85px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;thks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 17:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/pivot-measure-divide-current-sum-for-sales-sum/m-p/34744#M2311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-15T17:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: pivot measure divide current sum for sales sum</title>
      <link>https://community.qlik.com/t5/App-Development/pivot-measure-divide-current-sum-for-sales-sum/m-p/34745#M2312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if adding &lt;STRONG&gt;Total &lt;/STRONG&gt;calculates the number you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;if(isnull(Sum(CBL_ValorT)) or Sum(CBL_ValorT)=0, 0, num(fabs(Sum(CBL_ValorT))/Sum({&amp;lt;Group1={"0.*"}&amp;gt;}&lt;STRONG&gt;Total&lt;/STRONG&gt; CBL_ValorT),&amp;nbsp; '#.##0,0%'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2018 15:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/pivot-measure-divide-current-sum-for-sales-sum/m-p/34745#M2312</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2018-03-17T15:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: pivot measure divide current sum for sales sum</title>
      <link>https://community.qlik.com/t5/App-Development/pivot-measure-divide-current-sum-for-sales-sum/m-p/34746#M2313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you might need to add your first dimension within the total qualifier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(IsNull(Sum(CBL_ValorT)) or Sum(CBL_ValorT) = 0, 0, Num(fabs(Sum(CBL_ValorT))/Sum({&amp;lt;Group1={"0.*"}&amp;gt;}&lt;SPAN style="color: #ff0000;"&gt;TOTAL &amp;lt;1stDimensionHere&amp;gt;&lt;/SPAN&gt; CBL_ValorT),&amp;nbsp; '#.##0,0%'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace the 1stDimensionHere with the field name which contain RG because this will ensure that you divide by the 0. value of that particular 1st dimension....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Mar 2018 11:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/pivot-measure-divide-current-sum-for-sales-sum/m-p/34746#M2313</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-18T11:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: pivot measure divide current sum for sales sum</title>
      <link>https://community.qlik.com/t5/App-Development/pivot-measure-divide-current-sum-for-sales-sum/m-p/34747#M2314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, that really solve it. Now it presents the weight over the each shop sales.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 15:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/pivot-measure-divide-current-sum-for-sales-sum/m-p/34747#M2314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-19T15:00:48Z</dc:date>
    </item>
  </channel>
</rss>

