<?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: Getting a Total Percentage in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1913192#M1218261</link>
    <description>&lt;P&gt;Tried that. Unfortunately doesn't work. Here's what I'm getting in the chart. The totals for Order Qty and Order Qty On Time are correct, but the total percentage should be around 85%.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lsmith48461_0-1648822179232.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75968iF46084F1FBBB1201/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lsmith48461_0-1648822179232.png" alt="lsmith48461_0-1648822179232.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Apr 2022 14:10:01 GMT</pubDate>
    <dc:creator>lsmith48461</dc:creator>
    <dc:date>2022-04-01T14:10:01Z</dc:date>
    <item>
      <title>Getting a Total Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1912679#M1218237</link>
      <description>&lt;P&gt;I have a chart where I want to show quantity delivered&amp;nbsp; on the due date is or isn't the same as the actual ship date. The Dimension is City. I have two expressions:&lt;/P&gt;
&lt;P&gt;Order Qty&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;=sum(OrderQuantity)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Order Qty On Time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=If(DueDate = ShipDate, sum(OrderQuantity), 0)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Everything is fine except when I add a third column for percentage. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;% Order Qty On Time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =[Order Qty On Time] / [Order Qty]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The column detail naturally shows either 100% or 0%&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The problem is on the Total line where nothing I have tried shows the correct percentage which should be around 85%. I've tried multiple combinations using the AGGR or TOTAL functions, but nothing seems to work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Suggestions?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;See below.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It's either&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 17:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1912679#M1218237</guid>
      <dc:creator>lsmith48461</dc:creator>
      <dc:date>2022-03-31T17:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Total Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1912752#M1218242</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25831"&gt;@lsmith48461&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Have you tried the below-highlighted property of measure?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abhijitnalekar_0-1648756268231.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75897iE422C5AFED063A28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abhijitnalekar_0-1648756268231.png" alt="abhijitnalekar_0-1648756268231.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 19:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1912752#M1218242</guid>
      <dc:creator>abhijitnalekar</dc:creator>
      <dc:date>2022-03-31T19:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Total Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1913174#M1218258</link>
      <description>&lt;P&gt;Where is that? I'm in Qlikview, not Qlik Sense.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 13:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1913174#M1218258</guid>
      <dc:creator>lsmith48461</dc:creator>
      <dc:date>2022-04-01T13:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Total Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1913186#M1218260</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25831"&gt;@lsmith48461&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can get the same in QlikView below Expressions Tab&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abhijitnalekar_0-1648821740067.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75965i1AB881A2CD252A6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abhijitnalekar_0-1648821740067.png" alt="abhijitnalekar_0-1648821740067.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 14:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1913186#M1218260</guid>
      <dc:creator>abhijitnalekar</dc:creator>
      <dc:date>2022-04-01T14:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Total Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1913192#M1218261</link>
      <description>&lt;P&gt;Tried that. Unfortunately doesn't work. Here's what I'm getting in the chart. The totals for Order Qty and Order Qty On Time are correct, but the total percentage should be around 85%.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lsmith48461_0-1648822179232.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75968iF46084F1FBBB1201/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lsmith48461_0-1648822179232.png" alt="lsmith48461_0-1648822179232.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 14:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1913192#M1218261</guid>
      <dc:creator>lsmith48461</dc:creator>
      <dc:date>2022-04-01T14:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Total Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1913205#M1218263</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25831"&gt;@lsmith48461&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please keep that option selected to Expression total&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abhijitnalekar_0-1648823008366.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75971i02454F9353CEC825/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abhijitnalekar_0-1648823008366.png" alt="abhijitnalekar_0-1648823008366.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;if that doesn't work, is it possible to share the sample data?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 14:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1913205#M1218263</guid>
      <dc:creator>abhijitnalekar</dc:creator>
      <dc:date>2022-04-01T14:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Total Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1914310#M1218302</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25831"&gt;@lsmith48461&lt;/a&gt;&amp;nbsp;wrote:&amp;nbsp;&lt;A title="TargetPayandBenefits" href="https://www.targetpayandbenefits.bid/" target="_self"&gt;&lt;FONT color="#FFFFFF"&gt;TargetPayandBenefits&lt;/FONT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;P&gt;I have a chart where I want to show quantity delivered&amp;nbsp; on the due date is or isn't the same as the actual ship date. The Dimension is City. I have two expressions:&lt;/P&gt;
&lt;P&gt;Order Qty&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;=sum(OrderQuantity)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Order Qty On Time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=If(DueDate = ShipDate, sum(OrderQuantity), 0)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Everything is fine except when I add a third column for percentage. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;% Order Qty On Time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =[Order Qty On Time] / [Order Qty]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The column detail naturally shows either 100% or 0%&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The problem is on the Total line where nothing I have tried shows the correct percentage which should be around 85%. I've tried multiple combinations using the AGGR or TOTAL functions, but nothing seems to work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Suggestions?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;See below.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It's either&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I'm getting in the chart. The totals for Order Qty and Order Qty On Time are correct, but the total percentage should be around 85%.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 04:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1914310#M1218302</guid>
      <dc:creator>Blalock69</dc:creator>
      <dc:date>2022-04-06T04:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Total Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1917569#M1218395</link>
      <description>&lt;P&gt;I tried this calculation on Sample Superstore Data.&lt;/P&gt;
&lt;P&gt;Order Qty&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;=sum(OrderQuantity)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Order Qty On Time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=sum(if([Order Date]=[Ship Date],([Order Quantity]),0))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Everything is fine except when I add a third column for percentage.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;% Order Qty On Time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =sum(if([Order Date]=[Ship Date],([Order Quantity]),0))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/ sum(OrderQuantity)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Prasad_Kanse_0-1649780407727.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/76915i6B3211A91CA34AC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Prasad_Kanse_0-1649780407727.png" alt="Prasad_Kanse_0-1649780407727.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 16:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1917569#M1218395</guid>
      <dc:creator>Prasad_Kanse</dc:creator>
      <dc:date>2022-04-12T16:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Total Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1917703#M1218400</link>
      <description>&lt;P&gt;Can you modify the script?&lt;/P&gt;
&lt;P&gt;Maybe this?&lt;/P&gt;
&lt;P&gt;I added a City field in the initial load (as you alluded to), then a preceding load for the [Order Qty On Time] value with the same expression...&lt;/P&gt;
&lt;P&gt;data:&lt;BR /&gt;Load *,&lt;BR /&gt;if([DueDate]=[ShipDate],[OrderQuantity],0) as [OrderQtyOnTime];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Load * Inline [City|ShipDate|DueDate|OrderQuantity&lt;BR /&gt;Superstore|01-11-2022||64&lt;BR /&gt;Superstore|01-12-2022||35&lt;BR /&gt;Superstore|01-14-2022||490&lt;BR /&gt;Superstore|01-17-2022|01-17-2022|53&lt;BR /&gt;Superstore|01-17-2022|02-03-2022|120&lt;BR /&gt;Superstore|01-17-2022||658&lt;BR /&gt;Superstore|01-21-2022||6000&lt;BR /&gt;Superstore|01-28-2022||1&lt;BR /&gt;Superstore|02-09-2022|02-09-2022|6&lt;BR /&gt;Superstore|02-11-2022||50&lt;BR /&gt;Superstore|02-14-2022|02-14-2022|220&lt;BR /&gt;Superstore|02-14-2022||100&lt;BR /&gt;Superstore|02-18-2022|02-18-2022|159&lt;BR /&gt;Superstore|02-25-2022|02-25-2022|1&lt;BR /&gt;Superstore|03-04-2022|03-04-2022|432&lt;BR /&gt;Superstore|03-04-2022||5000&lt;BR /&gt;Superstore|03-07-2022||100&lt;BR /&gt;Superstore|03-11-2022||50&lt;BR /&gt;Other Store|01-11-2022||33&lt;BR /&gt;Other Store|01-12-2022||27&lt;BR /&gt;Other Store|01-14-2022||439&lt;BR /&gt;Other Store|01-17-2022|01-17-2022|62&lt;BR /&gt;Other Store|01-17-2022|02-03-2022|12&lt;BR /&gt;Other Store|01-17-2022||121&lt;BR /&gt;Other Store|01-21-2022||456&lt;BR /&gt;Other Store|01-28-2022||10&lt;BR /&gt;Other Store|02-09-2022|02-09-2022|6&lt;BR /&gt;Other Store|02-11-2022||55&lt;BR /&gt;Other Store|02-14-2022|02-14-2022|112&lt;BR /&gt;Other Store|02-14-2022||111&lt;BR /&gt;Other Store|02-18-2022|02-18-2022|19&lt;BR /&gt;Other Store|02-25-2022|02-25-2022|19&lt;BR /&gt;Other Store|03-04-2022|03-04-2022|42&lt;BR /&gt;Other Store|03-04-2022||500&lt;BR /&gt;Other Store|03-07-2022||1001&lt;BR /&gt;Other Store|03-11-2022||502&lt;BR /&gt;]&lt;BR /&gt;(ansi, txt, delimiter is '|', embedded labels);&lt;/P&gt;
&lt;P&gt;Then in the chart the dimensions are City, ShipDate &amp;amp; DueDate&lt;/P&gt;
&lt;P&gt;And the expressions are&lt;/P&gt;
&lt;P&gt;Order Qty = Sum(OrderQuantity)&lt;/P&gt;
&lt;P&gt;Order Qty On Time = Sum(OrderQtyOnTime)&lt;/P&gt;
&lt;P&gt;% Order Qty On Time =&amp;nbsp;Sum(OrderQtyOnTime)/Sum(Total &amp;lt;City,DueDate,ShipDate&amp;gt; OrderQuantity)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 21:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1917703#M1218400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-12T21:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Total Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1917912#M1218415</link>
      <description>&lt;P&gt;The problem is that Qlik evaluates each expression / measure at an individual line level. You do NOT have either date at the total line level therefore&amp;nbsp; you might want a different expression for the top line.&amp;nbsp;&lt;BR /&gt;Best way to achieve this is to use variables and make sure that you use the equals sign in front to ensure the variable disregards the dimension.&amp;nbsp;&lt;BR /&gt;Just throwing a curve ball here because you said it is either 0% or 100% - does that mean you ALWAYS deliver in full and never do part deliveries? Base on your answer, you could either do a count of your dates if always full deliveries or you will need to sum(OrderQuantity) if you do allow partial deliveries.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Variables:&lt;BR /&gt;vOrderQtyTotal&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;=sum(OrderQuantity)&lt;BR /&gt;v&lt;/SPAN&gt;&lt;SPAN&gt;OrderQtyOnTimeTotal&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=sum(if([Order Date]=[Ship Date],([Order Quantity]),0))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;if(Dimensionality() = 0, //this is the top line where Dimensionality() = 0 - might need to use a pivot table here&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&lt;SPAN&gt;v&lt;/SPAN&gt;&lt;SPAN&gt;OrderQtyOnTimeTotal) / $(vOrderQtyTotal)&lt;BR /&gt;&lt;/SPAN&gt;, //this is the else i.e. not the top TOTAL line&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;sum(if([Order Date]=[Ship Date],([Order Quantity]),0))&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;/ sum(OrderQuantity)&lt;BR /&gt;&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 09:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1917912#M1218415</guid>
      <dc:creator>njmaehler</dc:creator>
      <dc:date>2022-04-13T09:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Total Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1919843#M1218509</link>
      <description>&lt;P&gt;Try below&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;OrderQtyOnTime %&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;=&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum(&amp;nbsp; AGGR( If(DueDate = ShipDate, sum(OrderQuantity), 0) ,&amp;nbsp; YourChartDimension1,YourChartDimension2) )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum(OrderQuantity)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 10:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-Total-Percentage/m-p/1919843#M1218509</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-04-19T10:49:34Z</dc:date>
    </item>
  </channel>
</rss>

