<?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: Problem with my expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-my-expression/m-p/524158#M195823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give a bit more context about what you are trying to do in this expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is a chart expression and you are trying to reference a previous column (Column(1)) then I'm afraid that you can not do this in Set Analysis. You will need to repeat the expression in the Set Analysis, perhaps using dollar expansion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you are trying to match the text Capability (rather than the value of a field called Capability) then this needs to be in single quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note as well that the trim statement will trim the whole output (eg. only the start of the first line of text and the end of the last).&amp;nbsp; If you want to trim all of the values you need to trim the Supports field inside the Concat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may wind up with something like:&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;"&gt;&lt;STRONG&gt;=concat(distinct {1&amp;lt;[Support Type]={'Capability'},Capability_Key={$(=max(Capability_Key))'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;trim(&lt;/SPAN&gt;Supports),chr(13))&lt;/STRONG&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;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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;"&gt;The best thing to do with set analysis statements is to start without any Set Analysis and then add in each field at a time to check what it does to the output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Dec 2013 16:56:59 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2013-12-24T16:56:59Z</dc:date>
    <item>
      <title>Problem with my expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-my-expression/m-p/524157#M195822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=trim(concat(distinct {1&amp;lt;[Support Type]={Capability},Capability_Key={Column(1)}&amp;gt;}Supports,chr(13)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2013 15:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-my-expression/m-p/524157#M195822</guid>
      <dc:creator />
      <dc:date>2013-12-24T15:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with my expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-my-expression/m-p/524158#M195823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give a bit more context about what you are trying to do in this expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is a chart expression and you are trying to reference a previous column (Column(1)) then I'm afraid that you can not do this in Set Analysis. You will need to repeat the expression in the Set Analysis, perhaps using dollar expansion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you are trying to match the text Capability (rather than the value of a field called Capability) then this needs to be in single quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note as well that the trim statement will trim the whole output (eg. only the start of the first line of text and the end of the last).&amp;nbsp; If you want to trim all of the values you need to trim the Supports field inside the Concat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may wind up with something like:&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;"&gt;&lt;STRONG&gt;=concat(distinct {1&amp;lt;[Support Type]={'Capability'},Capability_Key={$(=max(Capability_Key))'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;trim(&lt;/SPAN&gt;Supports),chr(13))&lt;/STRONG&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;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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;"&gt;The best thing to do with set analysis statements is to start without any Set Analysis and then add in each field at a time to check what it does to the output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2013 16:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-my-expression/m-p/524158#M195823</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2013-12-24T16:56:59Z</dc:date>
    </item>
  </channel>
</rss>

