<?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 How to use a different expression for each element of a dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-a-different-expression-for-each-element-of-a/m-p/192327#M54022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;pick(match(Year,'2008','2009','2010'),&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;[REPORT LEVEL]={'3RD PARTY'}&amp;gt;}TONNES)/ MarketShare08,&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;[REPORT LEVEL]={'3RD PARTY'}&amp;gt;}TONNES)/ MarketShare09,&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;[REPORT LEVEL]={'3RD PARTY'}&amp;gt;}TONNES)/ MarketShare10)&lt;/P&gt;&lt;P&gt;best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jan 2011 18:53:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-28T18:53:39Z</dc:date>
    <item>
      <title>How to use a different expression for each element of a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-a-different-expression-for-each-element-of-a/m-p/192326#M54021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, as stated in the subject, can anyone teach me how to use a different expression for each element of a dimension.&lt;/P&gt;&lt;P&gt;For example, my stacked bar graph has two dimensions first is YEAR, 2nd is CUSTOMERS. I would like to apply a different expression for each element in the dimension - YEAR (i.e., an expression for 2008, 2009 and 2010). Note, the 2nd dimension - CUSTOMERS is being stacked for each year.&lt;/P&gt;&lt;P&gt;I need to learn the above because within my expression I would like to divide by a variable that differs between each year (has a different sum for each year), here is the code for my stacked bar graph expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;[REPORT LEVEL]={'3RD PARTY'}&amp;gt;}TONNES)/ &lt;B&gt;&lt;I&gt;MarketShare08&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-style: italic; font-weight: bold"&gt;(where MarketShare08 is a variable, and I want to use MarketShare09 and MarketShare10 for the different years)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;I&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;&lt;STRONG&gt;THANK YOU SO MUCH!!!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 18:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-a-different-expression-for-each-element-of-a/m-p/192326#M54021</guid>
      <dc:creator />
      <dc:date>2011-01-28T18:38:52Z</dc:date>
    </item>
    <item>
      <title>How to use a different expression for each element of a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-a-different-expression-for-each-element-of-a/m-p/192327#M54022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;pick(match(Year,'2008','2009','2010'),&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;[REPORT LEVEL]={'3RD PARTY'}&amp;gt;}TONNES)/ MarketShare08,&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;[REPORT LEVEL]={'3RD PARTY'}&amp;gt;}TONNES)/ MarketShare09,&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;[REPORT LEVEL]={'3RD PARTY'}&amp;gt;}TONNES)/ MarketShare10)&lt;/P&gt;&lt;P&gt;best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 18:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-a-different-expression-for-each-element-of-a/m-p/192327#M54022</guid>
      <dc:creator />
      <dc:date>2011-01-28T18:53:39Z</dc:date>
    </item>
    <item>
      <title>How to use a different expression for each element of a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-a-different-expression-for-each-element-of-a/m-p/192328#M54023</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 tried your solution, but doesn't work? You wanted me to paste that as the expression of the chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jan 2011 23:22:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-a-different-expression-for-each-element-of-a/m-p/192328#M54023</guid>
      <dc:creator />
      <dc:date>2011-01-29T23:22:24Z</dc:date>
    </item>
    <item>
      <title>How to use a different expression for each element of a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-a-different-expression-for-each-element-of-a/m-p/192329#M54024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;O, nevermind. It does work! (I forgot to change the syntax for the field name 'Year' to 'YEAR'). Thank you so much. Your help is truly appreicated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jan 2011 23:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-a-different-expression-for-each-element-of-a/m-p/192329#M54024</guid>
      <dc:creator />
      <dc:date>2011-01-29T23:27:30Z</dc:date>
    </item>
  </channel>
</rss>

