<?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 Pivot table expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-expression/m-p/293563#M108924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;Hi &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;I have a requirement where in the pivot table I need to show the Actuals and Planned regional wise month on month…&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;For actual : &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;=(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;[Travel Mode]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;'Flight'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;}(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;[Net Fare]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;))+ &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;[Travel Mode]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;'Flight'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;REC_AMOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;))/&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1000000. Here I have different modes of travel.so inorder to differentiate I have given the travel mode as Flight in the set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;I have been provided with the actual values regional wise in the below format for the flight alone. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;For Planned : I have used the following expression : &lt;/SPAN&gt;=aggr(only(Trip_Targets),Month,Month_Trip,[Contract Region] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #00b400; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #00b400; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 9pt; font-family: 'Courier New';"&gt;I should get the values of the corresponding months in the above first table in the pivot table. But I don’t know where its going wrong.Please look into&amp;nbsp; this and let me know if u have any solution for this….&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #00b400; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2011 07:53:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-16T07:53:53Z</dc:date>
    <item>
      <title>Pivot table expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-expression/m-p/293563#M108924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;Hi &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;I have a requirement where in the pivot table I need to show the Actuals and Planned regional wise month on month…&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;For actual : &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;=(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;[Travel Mode]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;'Flight'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;}(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;[Net Fare]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;))+ &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;[Travel Mode]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;'Flight'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;REC_AMOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;))/&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1000000. Here I have different modes of travel.so inorder to differentiate I have given the travel mode as Flight in the set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;I have been provided with the actual values regional wise in the below format for the flight alone. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;For Planned : I have used the following expression : &lt;/SPAN&gt;=aggr(only(Trip_Targets),Month,Month_Trip,[Contract Region] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #00b400; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #00b400; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 9pt; font-family: 'Courier New';"&gt;I should get the values of the corresponding months in the above first table in the pivot table. But I don’t know where its going wrong.Please look into&amp;nbsp; this and let me know if u have any solution for this….&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #00b400; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 07:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-expression/m-p/293563#M108924</guid>
      <dc:creator />
      <dc:date>2011-06-16T07:53:53Z</dc:date>
    </item>
  </channel>
</rss>

