<?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 TABLES WITH EXPRESSIONS in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/PIVOT-TABLES-WITH-EXPRESSIONS/m-p/226631#M78800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When loading the data you will need to create a summary stock table, something like the following.....&lt;/P&gt;&lt;P&gt;stock:&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;product,&lt;/P&gt;&lt;P&gt;sum(stock_qty) as tot_stock_qty;&lt;/P&gt;&lt;P&gt;FROM table stock_details&lt;/P&gt;&lt;P&gt;group by product;&lt;/P&gt;&lt;P&gt;now in your pivot table properties go to dimensions - select "Add Calculated Dimension", formula is = tot_stock_qty.&lt;/P&gt;&lt;P&gt;This allows you to display the total outside the month on a pivot table.&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, 19 Jul 2010 16:55:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-19T16:55:48Z</dc:date>
    <item>
      <title>PIVOT TABLES WITH EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/PIVOT-TABLES-WITH-EXPRESSIONS/m-p/226630#M78799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pivot table with two expressions :&lt;/P&gt;&lt;P&gt;- sales per month&lt;/P&gt;&lt;P&gt;- stock (not per month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to put the stock expression outside the pivot month dimension ?&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;P&gt;PRODUCTS STOCK MONTH1 MONTH2 MONTH3&lt;/P&gt;&lt;P&gt;product A 100 10 20 15&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 10:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PIVOT-TABLES-WITH-EXPRESSIONS/m-p/226630#M78799</guid>
      <dc:creator />
      <dc:date>2010-07-19T10:32:16Z</dc:date>
    </item>
    <item>
      <title>PIVOT TABLES WITH EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/PIVOT-TABLES-WITH-EXPRESSIONS/m-p/226631#M78800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When loading the data you will need to create a summary stock table, something like the following.....&lt;/P&gt;&lt;P&gt;stock:&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;product,&lt;/P&gt;&lt;P&gt;sum(stock_qty) as tot_stock_qty;&lt;/P&gt;&lt;P&gt;FROM table stock_details&lt;/P&gt;&lt;P&gt;group by product;&lt;/P&gt;&lt;P&gt;now in your pivot table properties go to dimensions - select "Add Calculated Dimension", formula is = tot_stock_qty.&lt;/P&gt;&lt;P&gt;This allows you to display the total outside the month on a pivot table.&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, 19 Jul 2010 16:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PIVOT-TABLES-WITH-EXPRESSIONS/m-p/226631#M78800</guid>
      <dc:creator />
      <dc:date>2010-07-19T16:55:48Z</dc:date>
    </item>
    <item>
      <title>PIVOT TABLES WITH EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/PIVOT-TABLES-WITH-EXPRESSIONS/m-p/226632#M78801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A calculated dimension seems like your best bet, but you may be able to do it without modifying the load.&lt;/P&gt;&lt;P&gt;I was able to set up a calculated dimension and then use Aggr() to evaluate it. Try:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Aggr(Sum(STOCK), PRODUCTS)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Replace Sum(STOCK) with whatever you are using for your stock expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 22:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PIVOT-TABLES-WITH-EXPRESSIONS/m-p/226632#M78801</guid>
      <dc:creator />
      <dc:date>2010-07-19T22:31:03Z</dc:date>
    </item>
    <item>
      <title>PIVOT TABLES WITH EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/PIVOT-TABLES-WITH-EXPRESSIONS/m-p/226633#M78802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is that I have several fields in my dimension namely :&lt;/P&gt;&lt;P&gt;- products fields (Quality / Design/ Color / ...)&lt;/P&gt;&lt;P&gt;- month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expressions are :&lt;/P&gt;&lt;P&gt;- stock&lt;/P&gt;&lt;P&gt;- sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result is that I have a stock line for every month.&lt;/P&gt;&lt;P&gt;I want only on stock figure ?&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>Tue, 20 Jul 2010 08:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PIVOT-TABLES-WITH-EXPRESSIONS/m-p/226633#M78802</guid>
      <dc:creator />
      <dc:date>2010-07-20T08:12:12Z</dc:date>
    </item>
    <item>
      <title>PIVOT TABLES WITH EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/PIVOT-TABLES-WITH-EXPRESSIONS/m-p/226634#M78803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you put the calculated dimension before Month on the list? If you place it after month, then you would get one for each month. If you place it before, you should get one for each record, but not each month.&lt;/P&gt;&lt;P&gt;Is it a pivot with Month across the top?&lt;/P&gt;&lt;P&gt;I've attached a very simplified example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 17:17:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PIVOT-TABLES-WITH-EXPRESSIONS/m-p/226634#M78803</guid>
      <dc:creator />
      <dc:date>2010-07-21T17:17:27Z</dc:date>
    </item>
    <item>
      <title>PIVOT TABLES WITH EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/PIVOT-TABLES-WITH-EXPRESSIONS/m-p/226635#M78804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK but my dimensions for product exist out of 4 fields. How to aggregate ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 08:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PIVOT-TABLES-WITH-EXPRESSIONS/m-p/226635#M78804</guid>
      <dc:creator />
      <dc:date>2010-07-22T08:27:25Z</dc:date>
    </item>
    <item>
      <title>PIVOT TABLES WITH EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/PIVOT-TABLES-WITH-EXPRESSIONS/m-p/226636#M78805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just keep adding parameters to the Aggr function. For example:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Aggr(Sum(STOCK), PRODUCTS, OTHER, SELLER, THISDIM)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;For the Aggr function, the first parameter is the expression and any subsequent parameters are dimensions to aggregate by.&lt;/P&gt;&lt;P&gt;I added the same sample with 2 dimensions before the calculated dimension. It should work the same for four.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 17:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PIVOT-TABLES-WITH-EXPRESSIONS/m-p/226636#M78805</guid>
      <dc:creator />
      <dc:date>2010-07-22T17:10:37Z</dc:date>
    </item>
  </channel>
</rss>

