<?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 Expression in dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-in-dimension/m-p/1171044#M462760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a straight table chart with several dimensions and expressions.&lt;/P&gt;&lt;P&gt;I want to use this valid expression in a dimension but that does not seem to be allowed:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(SubStringCount(Concat(DISTINCT field1,'|'),field2)=0,field3) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is there an easy way to get this done in stead of using this in all expressions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2016 09:11:31 GMT</pubDate>
    <dc:creator>hansrokers</dc:creator>
    <dc:date>2016-08-25T09:11:31Z</dc:date>
    <item>
      <title>Expression in dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-dimension/m-p/1171044#M462760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a straight table chart with several dimensions and expressions.&lt;/P&gt;&lt;P&gt;I want to use this valid expression in a dimension but that does not seem to be allowed:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(SubStringCount(Concat(DISTINCT field1,'|'),field2)=0,field3) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is there an easy way to get this done in stead of using this in all expressions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 09:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-dimension/m-p/1171044#M462760</guid>
      <dc:creator>hansrokers</dc:creator>
      <dc:date>2016-08-25T09:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-dimension/m-p/1171045#M462761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably need to use Aggr() to get the correct contexts for the Concat. It is not clear from your explanation how field1, field2 and field3 are associated, so I cannot say exactly how it should look, but it will be something along the lines of:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Aggr(If(SubStringCount(Concat(DISTINCT field1,'|'), field2) = 0, field3), field3)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, it would be like &lt;/P&gt;&lt;P&gt;&lt;EM&gt;Aggr(If(SubStringCount(Concat(DISTINCT field1,'|'), field2) = 0, field3), ....)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;where ... is the list of dimensions in the virtual table constructed by Aggr()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 09:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-dimension/m-p/1171045#M462761</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-08-25T09:22:47Z</dc:date>
    </item>
  </channel>
</rss>

