<?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 issues in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143439#M22677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see an attached solution. You need to use a combination of functions ColumnNo() and Above(), to calculate estimated stock balance.&lt;/P&gt;&lt;P&gt;While looking at your application, I noticed a couple of other issues that I'd recommend taking care of:&lt;/P&gt;&lt;P&gt;1. You have a synthetic key that needs to be resolved.&lt;/P&gt;&lt;P&gt;2. You are using sum(IF...) expressions... If your real data is large, you need to avoid those expressions (see my Wiki about it).&lt;/P&gt;&lt;P&gt;Since you are an end user, I'd say - you need to engage your developer to clean up some of those technical issues.&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2009 23:27:21 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2009-05-06T23:27:21Z</dc:date>
    <item>
      <title>Pivot table issues</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143435#M22673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am an end user of Qlikview and am struggling to create a view for management with regards to forecasting. Could you please point me in the right direction of how I am able to solve these issues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: -18pt; margin-left: 36pt; mso-list: l0 level1 lfo1;"&gt;1) Displaying a value of 0 even though there is no data within the filters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: 36pt;"&gt;This is like the example in the Qlikview reference Manual book 1 page 160. I want to be able to produce a pivot table with months on the top and product on the side and to view sales by month. If I select an item and the item has sold in Jan, Feb and April, I want to still show that the item sold 0 in March. Is this possible?&lt;/P&gt;&lt;P style="margin-left: 36pt;"&gt;&lt;/P&gt;&lt;P style="text-indent: -18pt; margin-left: 36pt; mso-list: l0 level1 lfo1;"&gt;2) Displaying stock and how it is affected by SO and PO by month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: 36pt;"&gt;I want to be able to provide a figure in each period of the est amount of stock I have. I have a fact table called stock and as an example, item A has 1000 pcs of stock available currently. I want to be able to use this value to calculate est stock per month.&lt;/P&gt;&lt;P style="margin-left: 36pt;"&gt;&lt;/P&gt;&lt;P style="margin-left: 36pt;"&gt;E.g.&lt;/P&gt;&lt;P style="margin-left: 36pt;"&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="width: 203.25pt; border-collapse: collapse; margin-left: 36pt;" width="271"&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD colspan="2" height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 59.25pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="79"&gt;&lt;P&gt;Sales Order&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="2" height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 96pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="128"&gt;&lt;P&gt;Purchase Order&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 15.3pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="20"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 43.95pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="59"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 50.75pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="68"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 45.25pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="60"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 15.3pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="20"&gt;&lt;P&gt;April&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 43.95pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="59"&gt;&lt;P style="text-align: right"&gt;200&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 50.75pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="68"&gt;&lt;P&gt;May&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 45.25pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="60"&gt;&lt;P style="text-align: right"&gt;100&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 15.3pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="20"&gt;&lt;P&gt;May&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 43.95pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="59"&gt;&lt;P style="text-align: right"&gt;300&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 50.75pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="68"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 45.25pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="60"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 15.3pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="20"&gt;&lt;P&gt;July&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 43.95pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="59"&gt;&lt;P style="text-align: right"&gt;300&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 50.75pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="68"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 45.25pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="60"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-left: 36pt;"&gt;&lt;/P&gt;&lt;P style="margin-left: 36pt;"&gt;I need to display this as output:&lt;/P&gt;&lt;P style="margin-left: 36pt;"&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="width: 302.35pt; border-collapse: collapse; margin-left: 35.45pt;" width="403"&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 45.55pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="61"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 81pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="108"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 31.8pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="42"&gt;&lt;P&gt;April&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 49.2pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="66"&gt;&lt;P&gt;May&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 46.8pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="62"&gt;&lt;P&gt;June&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="64"&gt;&lt;P&gt;July&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD rowspan="4" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 45.55pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="61"&gt;&lt;P&gt;Item A&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 81pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="108"&gt;&lt;P&gt;Opening Stock&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 31.8pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="42"&gt;&lt;P style="text-align: right"&gt;1000&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 49.2pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="66"&gt;&lt;P style="text-align: right"&gt;800&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 46.8pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="62"&gt;&lt;P style="text-align: right"&gt;600&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="64"&gt;&lt;P style="text-align: right"&gt;600&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 81pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="108"&gt;&lt;P&gt;Sales Order&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 31.8pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="42"&gt;&lt;P style="text-align: right"&gt;200&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 49.2pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="66"&gt;&lt;P style="text-align: right"&gt;300&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 46.8pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="62"&gt;&lt;P style="text-align: right"&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="64"&gt;&lt;P style="text-align: right"&gt;300&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 81pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="108"&gt;&lt;P&gt;Purchase Order&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 31.8pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="42"&gt;&lt;P style="text-align: right"&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 49.2pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="66"&gt;&lt;P style="text-align: right"&gt;100&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 46.8pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="62"&gt;&lt;P style="text-align: right"&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="64"&gt;&lt;P style="text-align: right"&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 81pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="108"&gt;&lt;P&gt;Est. Stock&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 31.8pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="42"&gt;&lt;P style="text-align: right"&gt;800&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 49.2pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="66"&gt;&lt;P style="text-align: right"&gt;600&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 46.8pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="62"&gt;&lt;P style="text-align: right"&gt;600&lt;/P&gt;&lt;/TD&gt;&lt;TD height="17" style="padding-bottom: 0cm; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; height: 12.75pt; padding-top: 0cm;" valign="bottom" width="64"&gt;&lt;P style="text-align: right"&gt;300&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-left: 36pt;"&gt;&lt;/P&gt;&lt;P style="margin-left: 36pt;"&gt;I have looked at the ABOVE function but I do not think that this would provide the solution? I am guessing that a cumulative function would do but I am unsure of the correct syntax to do this.&lt;/P&gt;&lt;P style="margin-left: 36pt;"&gt;&lt;/P&gt;&lt;P style="margin-left: 36pt;"&gt;&lt;/P&gt;&lt;P&gt;As you can see, I am a novice at this and am trying to get my head round this so any help from you is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 15:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143435#M22673</guid>
      <dc:creator />
      <dc:date>2009-05-06T15:20:22Z</dc:date>
    </item>
    <item>
      <title>Pivot table issues</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143436#M22674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michaellee,&lt;/P&gt;&lt;P&gt;I think you can try for this solution. Actually u have to tune your data like the excel file format, i have used.&lt;/P&gt;&lt;P&gt;Try this out and let me know your comments.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saran.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 16:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143436#M22674</guid>
      <dc:creator />
      <dc:date>2009-05-06T16:38:19Z</dc:date>
    </item>
    <item>
      <title>Pivot table issues</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143437#M22675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is the QV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 16:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143437#M22675</guid>
      <dc:creator />
      <dc:date>2009-05-06T16:40:44Z</dc:date>
    </item>
    <item>
      <title>Pivot table issues</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143438#M22676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saran,&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;The data I am to load is from multiple tables. 2 fact tables (Item table, Stock table) and 2 dimension tables (SO and PO tables) and I would like to calculate the est stock on the fly. I have attached the qvw file that I have created and if you have any pointers, please let me know!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 20:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143438#M22676</guid>
      <dc:creator />
      <dc:date>2009-05-06T20:10:36Z</dc:date>
    </item>
    <item>
      <title>Pivot table issues</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143439#M22677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see an attached solution. You need to use a combination of functions ColumnNo() and Above(), to calculate estimated stock balance.&lt;/P&gt;&lt;P&gt;While looking at your application, I noticed a couple of other issues that I'd recommend taking care of:&lt;/P&gt;&lt;P&gt;1. You have a synthetic key that needs to be resolved.&lt;/P&gt;&lt;P&gt;2. You are using sum(IF...) expressions... If your real data is large, you need to avoid those expressions (see my Wiki about it).&lt;/P&gt;&lt;P&gt;Since you are an end user, I'd say - you need to engage your developer to clean up some of those technical issues.&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 23:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143439#M22677</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-05-06T23:27:21Z</dc:date>
    </item>
    <item>
      <title>Pivot table issues</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143440#M22678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;Thanks for the code! I have tested this with some data and I find something strange..&lt;/P&gt;&lt;P&gt;We have outstanding SO where they are before today (I know its bad data as the customer service peeps should have amended it..) and when I use the code that you provided, it produces the values in the qvw. Could you tell me why this would happen?&lt;/P&gt;&lt;P&gt;Many thanks for you help,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 00:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143440#M22678</guid>
      <dc:creator />
      <dc:date>2009-05-07T00:39:52Z</dc:date>
    </item>
    <item>
      <title>Pivot table issues</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143441#M22679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;well, to your question - QlikView doesn't know that SO with past dates is "bad data", so it will generate the same logic. You can prevent it by either filtering the data out in the script (if it's truly garbage), or applying a condition in the chart - using Calculated Dimensions or Set Analysis on the expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just noticed a little glitch in my suggested formula - it works well within a single year, but not across several years.&lt;/P&gt;&lt;P&gt;Instead of function ColumnNo(), use ColumnNo(TOTAL), otherwise, every new year will bring the Inventory back to the current value.&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 00:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143441#M22679</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-05-07T00:49:02Z</dc:date>
    </item>
    <item>
      <title>Pivot table issues</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143442#M22680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg,&lt;/P&gt;&lt;P&gt;Thanks for the pointer and i checked in the reference manual and I would also need a TOTAL in the before() function. My code now looks like this&lt;/P&gt;&lt;P&gt;if(ColumnNo(total)=1, Sum([Stock Quantity]), before(total [Est Stock]))&lt;/P&gt;&lt;P&gt;This works great when I select one item at a time but when I clear all filters, the opening stock did not populate...&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 17:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-issues/m-p/143442#M22680</guid>
      <dc:creator />
      <dc:date>2009-05-08T17:35:18Z</dc:date>
    </item>
  </channel>
</rss>

