<?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 % In Pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-In-Pivot-table/m-p/1216326#M389535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial,helvetica,sans-serif;"&gt;Good afternoon, i am struggling getting the % calculated using the AGGR(NODISTINCT Function in my pivot table.&lt;/SPAN&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;IMG class="jive-image image-1" src="https://community.qlik.com/" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial,helvetica,sans-serif;"&gt;Our distribution can be by Sea or Air (more options in the future) and our target is to have the distribution 99% by sea, so ofcourse we want to see the % of each distribution for a certain period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial,helvetica,sans-serif;"&gt;as seen in this table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/148818_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial,helvetica,sans-serif;"&gt;However the calculation to get our Yards invoiced is:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Reference Number Qualifier]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'CC'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Reference Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'.',',')*1),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Item Structure]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'FAB'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Yards Invoiced]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial,helvetica,sans-serif;"&gt; Somehow i am unable to calculate the % as seen in the table above using the AGGR(NoDistinct function, could anyone please help me with the logic of this calculation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2017 13:15:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-01-09T13:15:02Z</dc:date>
    <item>
      <title>Calculating % In Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-In-Pivot-table/m-p/1216326#M389535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial,helvetica,sans-serif;"&gt;Good afternoon, i am struggling getting the % calculated using the AGGR(NODISTINCT Function in my pivot table.&lt;/SPAN&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;IMG class="jive-image image-1" src="https://community.qlik.com/" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial,helvetica,sans-serif;"&gt;Our distribution can be by Sea or Air (more options in the future) and our target is to have the distribution 99% by sea, so ofcourse we want to see the % of each distribution for a certain period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial,helvetica,sans-serif;"&gt;as seen in this table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/148818_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial,helvetica,sans-serif;"&gt;However the calculation to get our Yards invoiced is:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Reference Number Qualifier]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'CC'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Reference Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'.',',')*1),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Item Structure]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'FAB'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Yards Invoiced]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial,helvetica,sans-serif;"&gt; Somehow i am unable to calculate the % as seen in the table above using the AGGR(NoDistinct function, could anyone please help me with the logic of this calculation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 13:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-In-Pivot-table/m-p/1216326#M389535</guid>
      <dc:creator />
      <dc:date>2017-01-09T13:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating % In Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-In-Pivot-table/m-p/1216327#M389536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;Sum(Aggr(&lt;/SPAN&gt;if(sum({&amp;lt;[Reference Number Qualifier] ={'CC'}&amp;gt;} replace([Reference Number],'.',',')*1),sum({&amp;lt;[Item Structure]={'FAB'} &amp;gt;} [Yards Invoiced]),0)&lt;SPAN style="color: #ff0000;"&gt;, [Reporting Group], Distribution, [Mode of Transport]))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;Sum(TOTAL &amp;lt;[Reporting Group], Distribution&amp;gt;Aggr(&lt;/SPAN&gt;if(sum({&amp;lt;[Reference Number Qualifier] ={'CC'}&amp;gt;} replace([Reference Number],'.',',')*1),sum({&amp;lt;[Item Structure]={'FAB'} &amp;gt;} [Yards Invoiced]),0)&lt;SPAN style="color: #ff0000;"&gt;, [Reporting Group], Distribution, [Mode of Transport]))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 13:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-In-Pivot-table/m-p/1216327#M389536</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-09T13:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating % In Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-In-Pivot-table/m-p/1216328#M389537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much, it worked right away and i also found out what i did wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 13:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-In-Pivot-table/m-p/1216328#M389537</guid>
      <dc:creator />
      <dc:date>2017-01-09T13:29:23Z</dc:date>
    </item>
  </channel>
</rss>

