<?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 troubles with set analysis and aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/troubles-with-set-analysis-and-aggr/m-p/414794#M485105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a qlikview document containing data about some customers. There is CustomerID field and a CustomerName field, but CustomerName is not always present in the data.&lt;/P&gt;&lt;P&gt;I want to concatenate all the CustomerID that have an associated CustomerName in a TextObject, without regard for the current selection state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I first tried the following expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=concat(aggr(distinct CustomerName, CustomerID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works but only returns value associated with the selected/possible values of CustomerID. So I added {1} to my expression to evaluate it on the complete data set:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=concat(aggr(distinct {1} CustomerName, CustomerID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=concat({1}aggr(distinct CustomerName, CustomerID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and even:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=concat({1}aggr(distinct {1}CustomerName, CustomerID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But none of the above worked as I want. How can I achieve what I want?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Apr 2013 14:26:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-30T14:26:29Z</dc:date>
    <item>
      <title>troubles with set analysis and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/troubles-with-set-analysis-and-aggr/m-p/414794#M485105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a qlikview document containing data about some customers. There is CustomerID field and a CustomerName field, but CustomerName is not always present in the data.&lt;/P&gt;&lt;P&gt;I want to concatenate all the CustomerID that have an associated CustomerName in a TextObject, without regard for the current selection state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I first tried the following expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=concat(aggr(distinct CustomerName, CustomerID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works but only returns value associated with the selected/possible values of CustomerID. So I added {1} to my expression to evaluate it on the complete data set:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=concat(aggr(distinct {1} CustomerName, CustomerID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=concat({1}aggr(distinct CustomerName, CustomerID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and even:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=concat({1}aggr(distinct {1}CustomerName, CustomerID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But none of the above worked as I want. How can I achieve what I want?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 14:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/troubles-with-set-analysis-and-aggr/m-p/414794#M485105</guid>
      <dc:creator />
      <dc:date>2013-04-30T14:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: troubles with set analysis and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/troubles-with-set-analysis-and-aggr/m-p/414795#M485106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a straight table instead with CustomerID as dimension and &lt;EM&gt;concat({1} distinct CustomerName)&lt;/EM&gt; as expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 14:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/troubles-with-set-analysis-and-aggr/m-p/414795#M485106</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-30T14:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: troubles with set analysis and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/troubles-with-set-analysis-and-aggr/m-p/414796#M485107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately I have to use a single expression and not a chart object with dimensions and expressions. Is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 14:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/troubles-with-set-analysis-and-aggr/m-p/414796#M485107</guid>
      <dc:creator />
      <dc:date>2013-04-30T14:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: troubles with set analysis and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/troubles-with-set-analysis-and-aggr/m-p/414797#M485108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe &lt;EM&gt;concat({1} distinct aggr(concat({1} distinct CustomerName),CustomerID))&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 14:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/troubles-with-set-analysis-and-aggr/m-p/414797#M485108</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-30T14:53:19Z</dc:date>
    </item>
  </channel>
</rss>

