<?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 Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Help/m-p/188806#M51918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Paul.&lt;/P&gt;&lt;P&gt;can you give an qvw example or small source data for creating your chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jun 2010 12:07:56 GMT</pubDate>
    <dc:creator>sparur</dc:creator>
    <dc:date>2010-06-15T12:07:56Z</dc:date>
    <item>
      <title>Pivot Table Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Help/m-p/188805#M51917</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;The attached spreadsheet shows what i am trying to achieve / what I am getting...&lt;/P&gt;&lt;P&gt;Any pointers greatly appreciated...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 10:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Help/m-p/188805#M51917</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2010-06-15T10:53:29Z</dc:date>
    </item>
    <item>
      <title>Pivot Table Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Help/m-p/188806#M51918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Paul.&lt;/P&gt;&lt;P&gt;can you give an qvw example or small source data for creating your chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 12:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Help/m-p/188806#M51918</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-06-15T12:07:56Z</dc:date>
    </item>
    <item>
      <title>Pivot Table Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Help/m-p/188807#M51919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks to me like you just need to add a dimension for Actual vs. Target and move it to the top of your pivot table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 22:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Help/m-p/188807#M51919</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-15T22:08:18Z</dc:date>
    </item>
    <item>
      <title>Pivot Table Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Help/m-p/188808#M51920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have had some partial success with this late yesterday by doing the following...&lt;/P&gt;&lt;P&gt;Went down the road of creating a stand alone table - ended up with a new field called Budget Label which allowed me to show Actual and Budget as a Dimension (possibly what John was meaning?)...&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;*****Code Starts*****&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;// Budgets Table Header&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;// Step 1 - create a header table containing non value fields that I need in pivot&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Budgets_CountryRegion:&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;LOAD&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;%CPBudgetKey,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;bcp_Closed,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;bcp_CountryRegion,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;bcp_FinancialYear,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;bcp_FinancialPeriod,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;bcp_HistoricalMonthNumber,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;bcp_ProductFamily&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;FROM Budgets_CountryRegion_ProductFamily.qvd (qvd)&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;WHERE (bcp_FinancialYear = '$(varFinancialYear_Current)')&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;AND (bcp_FinancialPeriod &amp;lt; '$(varFinancialPeriod_Current)');&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;// Sales Summary Table&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;// Step 2 - Summarise Actual Detail&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;TempSummary:&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;LOAD&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;TempCPBudgetKey AS BudgetKey,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;'Actual' AS BudgetLabel,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;sum(sin_Sales) AS Sales,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;sum(sin_GrossProfit) AS GrossProfit,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;sum(sin_Quantity) AS Units&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;RESIDENT SalesInvoice&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;WHERE (sin_FinancialYear = '$(varFinancialYear_Current)')&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;AND (sin_FinancialPeriod &amp;lt; '$(varFinancialPeriod_Current)')&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;GROUP BY TempCPBudgetKey;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Drop Field TempCPBudgetKey;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;// Budgets Summary Table&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;// Step 2 - Summarise Budget Detail&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;TempSummary:&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;LOAD&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;%CPBudgetKey AS BudgetKey,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;'Budget' AS BudgetLabel,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;sum(bcp_Sales) * 1000 AS Sales,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;sum(bcp_GrossProfit) * 1000 AS GrossProfit,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;sum(bcp_Units) AS Units&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;FROM Budgets_CountryRegion_ProductFamily.qvd (qvd)&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;WHERE (bcp_FinancialYear = '$(varFinancialYear_Current)')&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;AND (bcp_FinancialPeriod &amp;lt; '$(varFinancialPeriod_Current)')&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;GROUP BY %CPBudgetKey;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;// Join to Header Table&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;// Step 3 - Append Summary Detail to Header&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;LEFT JOIN(Budgets_CountryRegion)&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;LOAD&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;BudgetKey AS %CPBudgetKey,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;BudgetLabel AS bcp_Label,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Sales AS bcp_Sales,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;GrossProfit AS bcp_GrossProfit,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Units AS bcp_Units&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;RESIDENT TempSummary;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Drop Table TempSummary;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;*****Code Ends*****&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;I am positive that there must be an easier way of doing this but this has got me part of the way there.&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;As I have said I am 99% of the way there - the attached spreadsheet shows how far.&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;I would like to have a totals column @ the right hand side.&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;I add this just now I only get a total total - I would like to see this split by Actual and Budget.&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Apologies for not being able to post an example QVW...am in the middle of a few projects just now so time is at premium...&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Will do my best to try and get an example posted if it helps.&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 11:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Help/m-p/188808#M51920</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2010-06-16T11:15:02Z</dc:date>
    </item>
    <item>
      <title>Pivot Table Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Help/m-p/188809#M51921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have managed to create an example QVW report which shows the issue that I now have...&lt;/P&gt;&lt;P&gt;On the right hand totals column I am getting the totals for Actual and Budget combined.&lt;/P&gt;&lt;P&gt;Would like to see these as two seperate columns.&lt;/P&gt;&lt;P&gt;Any helpd greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 11:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Help/m-p/188809#M51921</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2010-06-22T11:35:33Z</dc:date>
    </item>
    <item>
      <title>Pivot Table Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Help/m-p/188810#M51922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your example, click on Actual, and drag that dimension above the Group. You'll get the totals I think you want, just not the table layout I think you want. But I don't think pivot tables work the way I think you want them to work.&lt;/P&gt;&lt;P&gt;You can cheat, though I'm not sure I recommend it:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;CONCATENATE LOAD * INLINE [&lt;BR /&gt;bcp_ProductFamily, bcp_Label&lt;BR /&gt;Total, Actual&lt;BR /&gt;Total, Budget&lt;BR /&gt;];&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(bcp_ProductFamily='Total',sum(total &amp;lt;bcp_CountryRegion,bcp_Label&amp;gt; bcp_Sales),sum(bcp_Sales))&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Suppress zero values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 19:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Help/m-p/188810#M51922</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-22T19:27:57Z</dc:date>
    </item>
  </channel>
</rss>

