<?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 Calculated dimesion in Pivot in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-dimesion-in-Pivot/m-p/150602#M28587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why worry about the dimension?&lt;/P&gt;&lt;P&gt;If you use set analysis on the expression to only calculate results for 2007 and 2009:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year={2007,2009}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;Since there is no result for Year=2008 it will not show by default in the pivot since Suppress Zero-Values is checked. Of course you don't have to hard code the years either in the expression but can use Year(Today()) and addmonths(Year(Today()),-24) or something else that makes it dynamic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2009 10:24:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-07-30T10:24:05Z</dc:date>
    <item>
      <title>Calculated dimesion in Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimesion-in-Pivot/m-p/150598#M28583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am creating a pivot table using columns 'Year' and expression 'Sum(Sales)'. Year has values (2007,2008,2009). I just need to show 2007 and 2009 sales so pivot will look like:&lt;/P&gt;&lt;P&gt;2007 2008&lt;/P&gt;&lt;P&gt;Sum(Sales) 1300 2000&lt;/P&gt;&lt;P&gt;I cannot apply a where condition in Script as in other pivot i need to show 2009 data also.&lt;/P&gt;&lt;P&gt;So need to create a calculated dimension on files 'Year' to show sales data for 2007 and 2008.&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 19:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimesion-in-Pivot/m-p/150598#M28583</guid>
      <dc:creator />
      <dc:date>2009-07-29T19:50:13Z</dc:date>
    </item>
    <item>
      <title>Calculated dimesion in Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimesion-in-Pivot/m-p/150599#M28584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why not use Set Analysis for all years before current year?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 20:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimesion-in-Pivot/m-p/150599#M28584</guid>
      <dc:creator>avastani</dc:creator>
      <dc:date>2009-07-29T20:15:50Z</dc:date>
    </item>
    <item>
      <title>Calculated dimesion in Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimesion-in-Pivot/m-p/150600#M28585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set Analysis will apply on expressions, not on dimension variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 21:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimesion-in-Pivot/m-p/150600#M28585</guid>
      <dc:creator />
      <dc:date>2009-07-29T21:03:06Z</dc:date>
    </item>
    <item>
      <title>Calculated dimesion in Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimesion-in-Pivot/m-p/150601#M28586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;true that, then how about you create a duplication year in your calendar table and put a null for current year and a the year value otherwise.&lt;/P&gt;&lt;P&gt;then use that as your dimension and suppress where values are null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 21:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimesion-in-Pivot/m-p/150601#M28586</guid>
      <dc:creator>avastani</dc:creator>
      <dc:date>2009-07-29T21:18:28Z</dc:date>
    </item>
    <item>
      <title>Calculated dimesion in Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimesion-in-Pivot/m-p/150602#M28587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why worry about the dimension?&lt;/P&gt;&lt;P&gt;If you use set analysis on the expression to only calculate results for 2007 and 2009:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year={2007,2009}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;Since there is no result for Year=2008 it will not show by default in the pivot since Suppress Zero-Values is checked. Of course you don't have to hard code the years either in the expression but can use Year(Today()) and addmonths(Year(Today()),-24) or something else that makes it dynamic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 10:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimesion-in-Pivot/m-p/150602#M28587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-30T10:24:05Z</dc:date>
    </item>
  </channel>
</rss>

