<?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: Expression in Pivot Table with values depending on Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-in-Pivot-Table-with-values-depending-on-Dimension/m-p/679203#M246331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Create a calculated dimension: =IF([Product Sub Group Desc]='Beer','Cat1','Others')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2014 15:46:09 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-06-30T15:46:09Z</dc:date>
    <item>
      <title>Expression in Pivot Table with values depending on Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Pivot-Table-with-values-depending-on-Dimension/m-p/679202#M246330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a Pivot Table, I would like to have one expression with value depending on the value for a dimension. I tried this syntax as an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF({&amp;lt;[Product Sub Group Desc]={'Beer'}&amp;gt;},'Cat1','Others')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If dimension Product Sub Group Desc equals 'Beer', I would like Expression to be 'Cat1', else Expression should be 'Others'. Is it an option and how to do it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 12:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Pivot-Table-with-values-depending-on-Dimension/m-p/679202#M246330</guid>
      <dc:creator />
      <dc:date>2014-06-30T12:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Pivot Table with values depending on Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Pivot-Table-with-values-depending-on-Dimension/m-p/679203#M246331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Create a calculated dimension: =IF([Product Sub Group Desc]='Beer','Cat1','Others')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 15:46:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Pivot-Table-with-values-depending-on-Dimension/m-p/679203#M246331</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-30T15:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Pivot Table with values depending on Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Pivot-Table-with-values-depending-on-Dimension/m-p/679204#M246332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another similar challenge...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking for year of first revenues for one entry in pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="61506" alt="year_first_rev.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61506_year_first_rev.PNG.png" style="width: 620px; height: 299px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I add a dimension based on this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF([Expenses $(=(vCurrentYear)-2)]=0, IF([Expenses $(=(vCurrentYear)-1)]=0, IF([Expenses $(=(vCurrentYear))]=0, 'None',$(=(vCurrentYear)) ),$(=(vCurrentYear)-1) ), $(=(vCurrentYear)-2)), $(=(vCurrentYear)-2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to obtain 2009 if revenues of 2009 are non zero, 2010 if revenues of 2009 are 0 and revenues of 2010 are non zeros and 2011 if revenues of 2009 and 2010 are zeros but revenues of 2011 are non zeros (else, 'None').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The string I propose is not doing it. What could solve the problem ? Is there another way to achieve it (with variables for instance).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try simply this =IF([Expenses $(=(vCurrentYear)-2)] = '0', 'None', 'E') it gives E for all fields, so that I guess the comparison to '0' is not working. Null() is not correct either. How can I solve ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 10:01:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Pivot-Table-with-values-depending-on-Dimension/m-p/679204#M246332</guid>
      <dc:creator />
      <dc:date>2014-07-01T10:01:17Z</dc:date>
    </item>
  </channel>
</rss>

