<?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: Set Analysis - Dimension problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Dimension-problem/m-p/393186#M146646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Count({$&amp;lt;Table1.Type = &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/SPAN&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Type is a dimension in your chart then you can't use it in the set analysis expression. If Type is a field and there is only one value selected you need to change it to &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Table1.Type&lt;/SPAN&gt; = {'$(=only(Type))'} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Table1.Type2 = {&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;$(=Maxstring([Type2]))}&lt;/STRONG&gt;&lt;/SPAN&gt; &amp;gt;} Distinct Table1.Key_Employee ) ) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same here. If Type2 is a dimension in your chart you can't use it in the set analysis expression. If it is a field then enclose it in single quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Table1.Type2 = {'&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: #333333;"&gt;$(=Maxstring([Type2]))'}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; color: #333333;"&gt;It's also not clear to me if Table1.Type is the same field as Type or a field from another table. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2013 13:47:14 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-02-28T13:47:14Z</dc:date>
    <item>
      <title>Set Analysis - Dimension problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Dimension-problem/m-p/393185#M146645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem with SetAnalysis where he is only considering the last Type2 of table, not respecting the selection of Type2 showing the sum of the last&lt;/P&gt;&lt;P&gt;Type2 in all dimensions ... Does anyone know what the problem ? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: Count({$&amp;lt;Table1.Type = Type, Table1.Type2 = {$(=Maxstring([Type2]))} &amp;gt;} Distinct Table1.Key_Employee ) ) ) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 13:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Dimension-problem/m-p/393185#M146645</guid>
      <dc:creator />
      <dc:date>2013-02-28T13:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Dimension problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Dimension-problem/m-p/393186#M146646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Count({$&amp;lt;Table1.Type = &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/SPAN&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Type is a dimension in your chart then you can't use it in the set analysis expression. If Type is a field and there is only one value selected you need to change it to &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Table1.Type&lt;/SPAN&gt; = {'$(=only(Type))'} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Table1.Type2 = {&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;$(=Maxstring([Type2]))}&lt;/STRONG&gt;&lt;/SPAN&gt; &amp;gt;} Distinct Table1.Key_Employee ) ) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same here. If Type2 is a dimension in your chart you can't use it in the set analysis expression. If it is a field then enclose it in single quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Table1.Type2 = {'&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: #333333;"&gt;$(=Maxstring([Type2]))'}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; color: #333333;"&gt;It's also not clear to me if Table1.Type is the same field as Type or a field from another table. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 13:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Dimension-problem/m-p/393186#M146646</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-28T13:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Dimension problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Dimension-problem/m-p/393187#M146647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the Reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type is a field of another table... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 14:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Dimension-problem/m-p/393187#M146647</guid>
      <dc:creator />
      <dc:date>2013-02-28T14:24:07Z</dc:date>
    </item>
  </channel>
</rss>

