<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/196057#M56291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Nov 2010 13:08:48 GMT</pubDate>
    <dc:creator>m4u</dc:creator>
    <dc:date>2010-11-21T13:08:48Z</dc:date>
    <item>
      <title>Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/196055#M56289</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;i create a pivot table like in the attached image,&lt;/P&gt;&lt;P&gt;the item category and "month" are used as dimensions, and i have few expressions for the total of each year.&lt;/P&gt;&lt;P&gt;i need to add another column on the end, to show the "ytd" value of each year.&lt;/P&gt;&lt;P&gt;how can i do that without adding dummy rows to my table with the value 'ytd' in month name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2887_sourceID:2887" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Nov 2010 12:10:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/196055#M56289</guid>
      <dc:creator>m4u</dc:creator>
      <dc:date>2010-11-21T12:10:07Z</dc:date>
    </item>
    <item>
      <title>Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/196056#M56290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes you can&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Nov 2010 12:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/196056#M56290</guid>
      <dc:creator />
      <dc:date>2010-11-21T12:56:18Z</dc:date>
    </item>
    <item>
      <title>Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/196057#M56291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Nov 2010 13:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/196057#M56291</guid>
      <dc:creator>m4u</dc:creator>
      <dc:date>2010-11-21T13:08:48Z</dc:date>
    </item>
    <item>
      <title>Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/196058#M56292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add cyclic with month and ytd to the pivot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Nov 2010 22:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/196058#M56292</guid>
      <dc:creator />
      <dc:date>2010-11-21T22:44:54Z</dc:date>
    </item>
    <item>
      <title>Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/196059#M56293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shlomo,&lt;/P&gt;&lt;P&gt;One way to get this is creating a new field in your master calendar called YTD so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;InYearToDate(TempDate, Date($(vMaxDate)), 0) AS YTDFlag&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Where TempDate is the date field you are using to build the calendar and vMaxDate is the maximum date in the data model.&lt;/P&gt;&lt;P&gt;then you can add a new expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt; YTDFlag = {'-1'} &amp;gt;} SalesAmount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Which will return the sum you are looking for. since you are using Month as dimension, and this is a new expression, you will get a new column within each month.&lt;/P&gt;&lt;P&gt;As this will get the chart with a lot of redundant information, I'd create one expression for each month and a new one for the YTD, then remove "Month" from dimension, say for month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt; Year = {2010}, Month = {1} &amp;gt;} SalesAmount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and for YTD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt; YTDFlag = {'-1'} &amp;gt;} SalesAmount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Using the YTDFlag field as created above. I know it's more arduous but I don't see any other solution as to have month and YTD sharing the same dimension.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Nov 2010 22:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/196059#M56293</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-11-21T22:52:20Z</dc:date>
    </item>
    <item>
      <title>Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/196060#M56294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;thanks for answering. shlomo&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 09:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/196060#M56294</guid>
      <dc:creator>m4u</dc:creator>
      <dc:date>2010-11-22T09:03:41Z</dc:date>
    </item>
  </channel>
</rss>

