<?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 do set analysis using a data field's value? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-do-set-analysis-using-a-data-field-s-value/m-p/371007#M492593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would have sworn I had, but it just worked.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Unfortunately, that ends up making things worse though because the cell-height doesn't seem to have an option for 'auto-expand to fit'.&amp;nbsp; Oh well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2012 19:41:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-27T19:41:29Z</dc:date>
    <item>
      <title>How to do set analysis using a data field's value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-set-analysis-using-a-data-field-s-value/m-p/371003#M492581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I've got a Set Analysis issue I'm trying to work out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to build a list of all departments an employee has worked for that *aren't* his/her 'home' department.&amp;nbsp; I've nearly gotten the set analysis expression worked out, but I've run into a brick wall.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one does what I want to, except that it forces the excluded department code value to be 1126.&lt;/P&gt;&lt;P&gt;Concat({$&amp;lt;ActualDepartmentCode-={"1126"}&amp;gt;} DISTINCT $(DepartmentNumberAndName), ', ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, not every employee record has a HomeDepartmentCode value of 1126.&amp;nbsp; For example, Employee 10393 has a home department of 1113.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I use in place of the ... below to get it to evaluate the currently associated HomeDepartmentCode value so it will be correct for *all* employees?&lt;/P&gt;&lt;P&gt;Concat({$&amp;lt;ActualDepartmentCode-={...}&amp;gt;} DISTINCT $(DepartmentNumberAndName), ', ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 17:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-set-analysis-using-a-data-field-s-value/m-p/371003#M492581</guid>
      <dc:creator />
      <dc:date>2012-06-27T17:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to do set analysis using a data field's value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-set-analysis-using-a-data-field-s-value/m-p/371004#M492586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concat({$&amp;lt;ActualDepartmentCode-={"=$(Only(HomeDepartmentCode))}&amp;gt;} DISTINCT $(DepartmentNumberAndName), ', ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is the right syntax, HOWEVER....it sounds like you are hoping to have a list of different employees, each of which may have a different HomeDepartmentCode. Set analysis only evaluates the set ONCE per object, so in this case it wouldn't work. If Employee is the dimension them you might instead try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concat(DISTINCT If(DeptCode&amp;lt;&amp;gt;HomeCode,DepartmentNumberAndName),',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 18:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-set-analysis-using-a-data-field-s-value/m-p/371004#M492586</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-06-27T18:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to do set analysis using a data field's value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-set-analysis-using-a-data-field-s-value/m-p/371005#M492589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, that gave me what I wanted.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A quick followup question, though:&lt;/P&gt;&lt;P&gt;I'm getting that list as my expression in a Pivot Table.&amp;nbsp; I want to make it easier to read the results.&amp;nbsp; Is there any way to make each of the results show up on its own line?&amp;nbsp; I've tried passing CR, LF, and CRLF characters as the delimiter, but it doesn't seem to work.&amp;nbsp; Failing that, is there any way, once I have the Concat'd list, to split it back up so that they each get their own cell in the pivot chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 18:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-set-analysis-using-a-data-field-s-value/m-p/371005#M492589</guid>
      <dc:creator />
      <dc:date>2012-06-27T18:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to do set analysis using a data field's value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-set-analysis-using-a-data-field-s-value/m-p/371006#M492591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried Chr(10) as the delimiter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 19:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-set-analysis-using-a-data-field-s-value/m-p/371006#M492591</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-06-27T19:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to do set analysis using a data field's value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-set-analysis-using-a-data-field-s-value/m-p/371007#M492593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would have sworn I had, but it just worked.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Unfortunately, that ends up making things worse though because the cell-height doesn't seem to have an option for 'auto-expand to fit'.&amp;nbsp; Oh well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 19:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-set-analysis-using-a-data-field-s-value/m-p/371007#M492593</guid>
      <dc:creator />
      <dc:date>2012-06-27T19:41:29Z</dc:date>
    </item>
  </channel>
</rss>

