<?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 TABLE in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/PIVOT-TABLE/m-p/1274557#M871194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to provide a sample where we can help you? It would be also be helpful to know the expected output based on your provided sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2016 11:46:08 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-11-18T11:46:08Z</dc:date>
    <item>
      <title>PIVOT TABLE</title>
      <link>https://community.qlik.com/t5/QlikView/PIVOT-TABLE/m-p/1274556#M871193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have a problem using a pivot table.&lt;/P&gt;&lt;P&gt;I have these columns:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;WEEK&lt;/LI&gt;&lt;LI&gt;CITY&lt;/LI&gt;&lt;LI&gt;COUNTRY&lt;/LI&gt;&lt;LI&gt;SALES&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, what I'd like to do is to calculate the percentage of the sales in every city, per week.&lt;/P&gt;&lt;P&gt;I need to find a way to calculate the ratio between SUM(SALES) and the subtotal (per week and city).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me?&lt;/P&gt;&lt;P&gt;Many thanks in advance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&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/PIVOT-TABLE/m-p/1274556#M871193</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: PIVOT TABLE</title>
      <link>https://community.qlik.com/t5/QlikView/PIVOT-TABLE/m-p/1274557#M871194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to provide a sample where we can help you? It would be also be helpful to know the expected output based on your provided sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 11:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PIVOT-TABLE/m-p/1274557#M871194</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-18T11:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: PIVOT TABLE</title>
      <link>https://community.qlik.com/t5/QlikView/PIVOT-TABLE/m-p/1274558#M871195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have all of the above columns in your pivot and your sales exp is like sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try something like this for the ratio:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Sales) / aggr(sum(total Sales),Country,City,Week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Sales) / sum(aggr(sum(total Sales),Country,City,Week))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 11:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PIVOT-TABLE/m-p/1274558#M871195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-18T11:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: PIVOT TABLE</title>
      <link>https://community.qlik.com/t5/QlikView/PIVOT-TABLE/m-p/1274559#M871196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would rather use TOTAL without Aggr() here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Sales)/Sum(TOTAL &lt;SPAN style="color: #ff0000;"&gt;&amp;lt;Country, City, Week&amp;gt;&lt;/SPAN&gt; Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 11:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PIVOT-TABLE/m-p/1274559#M871196</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-18T11:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: PIVOT TABLE</title>
      <link>https://community.qlik.com/t5/QlikView/PIVOT-TABLE/m-p/1274560#M871197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny and Qlikdeez for your quick answers &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Indeed, Sunny, you have solved my problem (just one thing, after TOTAL I put only WEEK)... maybe I wrote the message in an unclear way..but you are both really really kind, and you helped me a lot!&lt;/P&gt;&lt;P&gt;Thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 12:06:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PIVOT-TABLE/m-p/1274560#M871197</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2016-11-18T12:06:53Z</dc:date>
    </item>
  </channel>
</rss>

