<?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 Re: Calculated Dimension in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693670#M250878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if I change for an expression, the expression is calculated for each Fiscal Year separately. I slightly changed the expression to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF($(=Sum({&amp;lt;[Fiscal Year]={$(=(vCurrentYear)-2)}&amp;gt;}[Sales Amount])) = 0, 'None', [Fiscal Year])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and obtain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="yearfirstsales.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61571_yearfirstsales.PNG.png" style="width: 620px; height: 168px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i want is a single date for each cell by &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Product Group / Sub Group / Type / Country / Zone Manager / Category&lt;/SPAN&gt; indicating the first year Revenue is not Null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to change for this syntax, but not correct...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF($(=Sum([Sales Amount])) = 0 AND $(=Sum({&amp;lt;[Fiscal Year]=$(=[Fiscal Year]+1))}&amp;gt;}[Sales Amount])) = 0, 'None', [Fiscal Year])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you have an hint how to proceed ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jul 2014 10:05:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-02T10:05:04Z</dc:date>
    <item>
      <title>Calculated Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693667#M250875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Pivot Table with calculated dimension Year of First Revenue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="year_first_rev.PNG.png" class="jive-image" height="182" src="https://community.qlik.com/legacyfs/online/61555_year_first_rev.PNG.png" style="width: 762.4324324324325px; height: 182px;" width="762" /&gt;&lt;/P&gt;&lt;P&gt;The expression for the calculated dimension is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF($(=Sum({&amp;lt;[Fiscal Year]={$(=(vCurrentYear)-2)}&amp;gt;}[Sales Amount])) = 0, 'None', $(=(vCurrentYear)-2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, the calculation of the calculated dimension is exactly the result of this expression, that is to say it is a constant in all cells of the Pivot Table. I would like that the expression is evaluated for each Product Group / Sub Group / Type / Country / Zone Manager / Category. Then, the result should be 'None' for the second cell for instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a possibility to have the calculated dimension calculated by Product Group / Sub Group / Type / Country / Zone Manager / Category ?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 08:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693667#M250875</guid>
      <dc:creator />
      <dc:date>2014-07-02T08:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693668#M250876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simply remove this dimension and add the calculation as an expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 09:31:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693668#M250876</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-07-02T09:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693669#M250877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or perhaps remove the $-expansions, that are outside of the Set Analysis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 09:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693669#M250877</guid>
      <dc:creator>jfkinspari</dc:creator>
      <dc:date>2014-07-02T09:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693670#M250878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if I change for an expression, the expression is calculated for each Fiscal Year separately. I slightly changed the expression to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF($(=Sum({&amp;lt;[Fiscal Year]={$(=(vCurrentYear)-2)}&amp;gt;}[Sales Amount])) = 0, 'None', [Fiscal Year])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and obtain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="yearfirstsales.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61571_yearfirstsales.PNG.png" style="width: 620px; height: 168px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i want is a single date for each cell by &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Product Group / Sub Group / Type / Country / Zone Manager / Category&lt;/SPAN&gt; indicating the first year Revenue is not Null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to change for this syntax, but not correct...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF($(=Sum([Sales Amount])) = 0 AND $(=Sum({&amp;lt;[Fiscal Year]=$(=[Fiscal Year]+1))}&amp;gt;}[Sales Amount])) = 0, 'None', [Fiscal Year])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you have an hint how to proceed ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 10:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693670#M250878</guid>
      <dc:creator />
      <dc:date>2014-07-02T10:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693671#M250879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Receive error calculated dimension cannot be calculated...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 10:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693671#M250879</guid>
      <dc:creator />
      <dc:date>2014-07-02T10:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693672#M250880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I missed the Fiscal Year dimension in your first picture. You could move back to your first scenario (Calculated dimension) but add an Aggr function over the dimensions you want included.&lt;/P&gt;&lt;P&gt;Aggr(YourExpression, [Product Group], [Sub Group],.....)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 10:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693672#M250880</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-07-02T10:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693673#M250881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this expression with the AGGR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;=IF(IsNull(AGGR($(=Sum({&amp;lt;[Fiscal Year]={$(=(vCurrentYear)-2)}&amp;gt;}[Sales Amount])),[Product Group Desc], [Product Sub Group Desc], [Product Type Desc],[Country],[ZoneMgrName])), 'None', [Fiscal Year])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;it is still not agreggating on the fields i am listing&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 11:43:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693673#M250881</guid>
      <dc:creator />
      <dc:date>2014-07-02T11:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693674#M250882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the if should be within the aggregation...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also read this article:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/06/30/conditional-aggregations" title="http://community.qlik.com/blogs/qlikviewdesignblog/2014/06/30/conditional-aggregations"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/06/30/conditional-aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 11:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693674#M250882</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-07-02T11:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693675#M250883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;I changed for this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=AGGR(IF(IsNull($(=Sum({&amp;lt;[Fiscal Year]={$(=(vCurrentYear)-2)}&amp;gt;}[Sales Amount]))), AGGR(IF(IsNull($(=Sum({&amp;lt;[Fiscal Year]={$(=(vCurrentYear)-1)}&amp;gt;}[Sales Amount]))), AGGR(IF(IsNull($(=Sum({&amp;lt;[Fiscal Year]={$(=(vCurrentYear))}&amp;gt;}[Sales Amount]))),'None', $(=(vCurrentYear)))), $(=(vCurrentYear)-1))), $(=(vCurrentYear)-2)),[Product Group Desc], [Product Sub Group Desc], [Product Type Desc],[Country],[ZoneMgrName])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For clarity, the expression looks like this, where instead of nested conditions if have the same logic for testing if 2010 or 2011 is the first year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=AGGR(IF(IsNull($(=Sum({&amp;lt;[Fiscal Year]={$(=(vCurrentYear)-2)}&amp;gt;}[Sales Amount]))),&lt;/P&gt;&lt;P&gt;' nested conditions, &lt;/P&gt;&lt;P&gt;$(=(vCurrentYear)-2)),&lt;/P&gt;&lt;P&gt;[Product Group Desc], [Product Sub Group Desc], [Product Type Desc],[Country],[ZoneMgrName])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="yearfirstsales.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61579_yearfirstsales.PNG.png" style="width: 620px; height: 106px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so that None ( - ) is the result forall fields. What is wrong with the syntax I am using above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 12:21:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693675#M250883</guid>
      <dc:creator />
      <dc:date>2014-07-02T12:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693676#M250884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if I'm getting your logic here, but let me clarify some things:&lt;/P&gt;&lt;P&gt;- $ sign expansions are evaluated once for the whole chart, not for each row or value in the dimensions (If you want to know what it is, it is displayed in the header of the expression when you leave the label blank (as above))&lt;/P&gt;&lt;P&gt;- An Aggr(Expr,Dimensions) always needs it dimensions, either include them for all Aggr( functions you use (Why?) or remove all other Aggr() but the first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you read the article, in general it is better to flag the data in load script. An other idea would be to do a Clever calculation like (Sum(Amount)*Year)/Sum(Amount), which will be the year for where you have amounts, null where you don't&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further then this I don't think I will be able to help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 13:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-in-Pivot-Table/m-p/693676#M250884</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-07-02T13:00:34Z</dc:date>
    </item>
  </channel>
</rss>

