<?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: How to get  Dimension value in Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-Dimension-value-in-Expression/m-p/263673#M99160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI sachin. You can return the dimension in the expression by referring to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You've almost answered your own question there sachin. If there is a small number of offices, you could try a nested if statment&lt;/P&gt;&lt;P&gt;eg: if([office field] = 'Cape Town' , null(), if([Office field] = 'Lome', sum(sales) + 450.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also do a pick / match combination to return a function based on the office, eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=pick(match('Cape Town','Lome','Kuala Lumpur'),null(),sum(sales)+500,sum(sales)+450)&lt;/P&gt;&lt;P&gt;this link explains it really well:&lt;A href="http://qlikviewnotes.blogspot.com/2008/10/match-function.html"&gt; http://qlikviewnotes.blogspot.com/2008/10/match-function.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably the best solution, and one that allows flexibility, consistency and the option to easily add more offices, would be to create a separate look up table with a new field that has an expression linked to each office.... you could then evaluate the expression using a dollar sign expansion on that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Office&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Exp_Office&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Cape Town&lt;/TD&gt;&lt;TD&gt;=null()&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Lome&lt;/TD&gt;&lt;TD&gt;=sum(Sales)+500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Dec 2011 15:38:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-18T15:38:39Z</dc:date>
    <item>
      <title>How to get  Dimension value in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-Dimension-value-in-Expression/m-p/263672#M99159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to get Dimension value in expression of pivot table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;consider a table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now here i want sum of sales depending on dimension &lt;/P&gt;&lt;P&gt;office eg if office = cape town then sum of sales is null &lt;/P&gt;&lt;P&gt;if office = Lome&amp;nbsp; then sum of sales is sales+500&lt;/P&gt;&lt;P&gt;if office = kuala lumpur then sum of is sales+450&lt;/P&gt;&lt;P&gt;means it entirely depends on dimension what value of sales should be displayed &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 10:40:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-Dimension-value-in-Expression/m-p/263672#M99159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-29T10:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get  Dimension value in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-Dimension-value-in-Expression/m-p/263673#M99160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI sachin. You can return the dimension in the expression by referring to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You've almost answered your own question there sachin. If there is a small number of offices, you could try a nested if statment&lt;/P&gt;&lt;P&gt;eg: if([office field] = 'Cape Town' , null(), if([Office field] = 'Lome', sum(sales) + 450.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also do a pick / match combination to return a function based on the office, eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=pick(match('Cape Town','Lome','Kuala Lumpur'),null(),sum(sales)+500,sum(sales)+450)&lt;/P&gt;&lt;P&gt;this link explains it really well:&lt;A href="http://qlikviewnotes.blogspot.com/2008/10/match-function.html"&gt; http://qlikviewnotes.blogspot.com/2008/10/match-function.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably the best solution, and one that allows flexibility, consistency and the option to easily add more offices, would be to create a separate look up table with a new field that has an expression linked to each office.... you could then evaluate the expression using a dollar sign expansion on that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Office&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Exp_Office&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Cape Town&lt;/TD&gt;&lt;TD&gt;=null()&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Lome&lt;/TD&gt;&lt;TD&gt;=sum(Sales)+500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Dec 2011 15:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-Dimension-value-in-Expression/m-p/263673#M99160</guid>
      <dc:creator />
      <dc:date>2011-12-18T15:38:39Z</dc:date>
    </item>
    <item>
      <title>How to get  Dimension value in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-Dimension-value-in-Expression/m-p/263674#M99161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;You can create inline/Excel table with Office and Additional values as Column and use the Expression Sum(Amount)+ Sum(Additional Values) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inline Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Office, Additonal Values&lt;/P&gt;&lt;P&gt;Cape Town, Null()&lt;/P&gt;&lt;P&gt;Lome,500&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;Hope this will help .&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 07:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-Dimension-value-in-Expression/m-p/263674#M99161</guid>
      <dc:creator>vijay_iitkgp</dc:creator>
      <dc:date>2011-12-19T07:19:48Z</dc:date>
    </item>
  </channel>
</rss>

