<?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 Calculating Cumulative Percentage of Total by Column (Pivot Table) in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/Calculating-Cumulative-Percentage-of-Total-by-Column-Pivot-Table/m-p/119588#M26208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlik Sense Experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/272308"&gt;&lt;/A&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt;‌ and I are &lt;/SPAN&gt;trying to figure out how to calculate a cumulative percentage of the Total by Column in a Pivot Table in Qlik Sense. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a pivot table in Qlik Sense that shows the cumulative count of flags by week for the dimension. We would like to calculate the % of each flag that compares the cumulative count of flags by week over the total cumulative count of all flags of that week. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're using a unique key = ID to calculate the cumulative count of flags (Flag) by week with certain criteria filters. Expression as below:&lt;/P&gt;&lt;P&gt;RangeSum(Before(Count({[Criteria]}&amp;gt;}[ID]),0,ColumnNo()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216302_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The below is roughly what we're trying to achieve. The cumulative count of each flag should be divided by the Total by Column as of each week but we're having a hard time trying to come up with an expression that does that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Flag&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;201827&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;%&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;201828&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;%&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;TOTALS&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12,595&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100%&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23,926&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ZZ-DO NOT USE&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;175&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1.39%&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;324&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1.35%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ZZ-NEW CUSTOMER AEC NOT VALIDATED&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;89&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.71%&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;172&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.72%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ZZ-VALIDATED AEC&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;12,331&lt;/TD&gt;&lt;TD&gt;97.9%&lt;/TD&gt;&lt;TD&gt;23,430&lt;/TD&gt;&lt;TD&gt;97.93%&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;Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2018 09:16:48 GMT</pubDate>
    <dc:creator>elintham</dc:creator>
    <dc:date>2018-10-19T09:16:48Z</dc:date>
    <item>
      <title>Calculating Cumulative Percentage of Total by Column (Pivot Table)</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Calculating-Cumulative-Percentage-of-Total-by-Column-Pivot-Table/m-p/119588#M26208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlik Sense Experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/272308"&gt;&lt;/A&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt;‌ and I are &lt;/SPAN&gt;trying to figure out how to calculate a cumulative percentage of the Total by Column in a Pivot Table in Qlik Sense. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a pivot table in Qlik Sense that shows the cumulative count of flags by week for the dimension. We would like to calculate the % of each flag that compares the cumulative count of flags by week over the total cumulative count of all flags of that week. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're using a unique key = ID to calculate the cumulative count of flags (Flag) by week with certain criteria filters. Expression as below:&lt;/P&gt;&lt;P&gt;RangeSum(Before(Count({[Criteria]}&amp;gt;}[ID]),0,ColumnNo()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216302_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The below is roughly what we're trying to achieve. The cumulative count of each flag should be divided by the Total by Column as of each week but we're having a hard time trying to come up with an expression that does that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Flag&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;201827&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;%&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;201828&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;%&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;TOTALS&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12,595&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100%&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23,926&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ZZ-DO NOT USE&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;175&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1.39%&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;324&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1.35%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ZZ-NEW CUSTOMER AEC NOT VALIDATED&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;89&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.71%&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;172&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.72%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ZZ-VALIDATED AEC&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;12,331&lt;/TD&gt;&lt;TD&gt;97.9%&lt;/TD&gt;&lt;TD&gt;23,430&lt;/TD&gt;&lt;TD&gt;97.93%&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;Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 09:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Calculating-Cumulative-Percentage-of-Total-by-Column-Pivot-Table/m-p/119588#M26208</guid>
      <dc:creator>elintham</dc:creator>
      <dc:date>2018-10-19T09:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Percentage of Total by Column (Pivot Table)</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Calculating-Cumulative-Percentage-of-Total-by-Column-Pivot-Table/m-p/119589#M26209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Before(Count({&amp;lt;[Criteria]&amp;gt;}[ID]), 0, ColumnNo()))/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL &amp;lt;WeekYearField&amp;gt; Aggr(RangeSum(Above(Count({&amp;lt;[Criteria]&amp;gt;} [ID]), 0, RowNo())), Flag, (WeekYearField, (NUMERIC))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 12:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Calculating-Cumulative-Percentage-of-Total-by-Column-Pivot-Table/m-p/119589#M26209</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-22T12:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Percentage of Total by Column (Pivot Table)</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Calculating-Cumulative-Percentage-of-Total-by-Column-Pivot-Table/m-p/119590#M26210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, Sunny! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 09:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Calculating-Cumulative-Percentage-of-Total-by-Column-Pivot-Table/m-p/119590#M26210</guid>
      <dc:creator>elintham</dc:creator>
      <dc:date>2018-10-23T09:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Percentage of Total by Column (Pivot Table)</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Calculating-Cumulative-Percentage-of-Total-by-Column-Pivot-Table/m-p/119591#M26211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, but I have a few more questions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if I have another dimension "Flag Corrected" and I only want to show those Flag Corrected = Y in the Pivot Table? Is it possible to do so in the pivot table? I've tried to do Qlik Expression under row: =if(Flag Corrected = {"Y"}, Flag Corrected) but it doesn't seem to work. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qlik Question.PNG" class="jive-image image-1" height="245" src="/legacyfs/online/216604_Qlik Question.PNG" style="font-size: 13.3333px; width: 639px; height: 245.013px;" width="639" /&gt;&lt;/P&gt;&lt;P&gt;I also would like to calculate the cumulative percentage of Flag Corrected = Y over the total cumulative count of ZZ-VALIDATED AEC flag. For example in Week 201827, the % for Flag Correct = Y should be 55/12,331 = 0.446% instead of 55/12,595=0.436%. Do you think it is possible to do so in a pivot table? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to create another pivot table to only show the Flag Corrected but am unable to get the cumulative percentage of Flag &lt;SPAN style="font-size: 13.3333px;"&gt;Corrected = Y over the total cumulative count of ZZ-VALIDATED AEC flag. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm using this expression: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Before(Count({&amp;lt;[Criteria]&amp;gt;}ID),0,ColumnNo()))/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL &amp;lt;WEEK&amp;gt; Aggr(RangeSum(Before(Count({&amp;lt;[Criteria with Flag = ZZ-VALIDATED AEC]&amp;gt;}ID), &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;0, ColumnNo())), Flag,(WEEK, (NumericCount))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qlik Question2.PNG" class="jive-image image-2" src="/legacyfs/online/216644_Qlik Question2.PNG" style="height: 150px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 09:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Calculating-Cumulative-Percentage-of-Total-by-Column-Pivot-Table/m-p/119591#M26211</guid>
      <dc:creator>elintham</dc:creator>
      <dc:date>2018-10-24T09:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Percentage of Total by Column (Pivot Table)</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Calculating-Cumulative-Percentage-of-Total-by-Column-Pivot-Table/m-p/119592#M26212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this for showing just Flag Corrected = 'Y'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;RangeSum(Before(Count({&amp;lt;[Criteria]&lt;SPAN style="color: #ff0000;"&gt;, [Flag Corrected] = {'Y'}&lt;/SPAN&gt;&amp;gt;}[ID]), 0, ColumnNo()))/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(TOTAL &amp;lt;WeekYearField&amp;gt; Aggr(RangeSum(Above(Count({&amp;lt;[Criteria]&lt;STRONG style="color: #ff0000; font-style: inherit; font-family: inherit;"&gt;, [Flag Corrected] = {'Y'}&lt;/STRONG&gt;&amp;gt;} [ID]), 0, RowNo())), Flag, (WeekYearField, (NUMERIC))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 11:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Calculating-Cumulative-Percentage-of-Total-by-Column-Pivot-Table/m-p/119592#M26212</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-24T11:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Percentage of Total by Column (Pivot Table)</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Calculating-Cumulative-Percentage-of-Total-by-Column-Pivot-Table/m-p/119593#M26213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;I also would like to calculate the cumulative percentage of Flag Corrected = Y over the total cumulative count of ZZ-VALIDATED AEC flag. For example in Week 201827, the % for Flag Correct = Y should be 55/12,331 = 0.446% instead of 55/12,595=0.436%. Do you think it is possible to do so in a pivot table?&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;RangeSum(Before(Count({&amp;lt;[Criteria]&amp;gt;}[ID]), 0, ColumnNo()))/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(TOTAL &amp;lt;WeekYearField&lt;SPAN style="color: #ff0000;"&gt;, &lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit;"&gt;Flag&lt;/STRONG&gt;&amp;gt; Aggr(RangeSum(Above(Count({&amp;lt;[Criteria]&amp;gt;} [ID]), 0, RowNo())), Flag&lt;SPAN style="color: #ff0000;"&gt;, [Flag Corrected]&lt;/SPAN&gt;,(WeekYearField, (NUMERIC))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 11:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Calculating-Cumulative-Percentage-of-Total-by-Column-Pivot-Table/m-p/119593#M26213</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-24T11:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Percentage of Total by Column (Pivot Table)</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Calculating-Cumulative-Percentage-of-Total-by-Column-Pivot-Table/m-p/119594#M26214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a third question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 11:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Calculating-Cumulative-Percentage-of-Total-by-Column-Pivot-Table/m-p/119594#M26214</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-24T11:55:25Z</dc:date>
    </item>
  </channel>
</rss>

