<?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 Set Expression result changes when using a dimension from a linked table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-result-changes-when-using-a-dimension-from-a/m-p/264798#M497939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made a small example of the problem I'm running into:&lt;/P&gt;&lt;P&gt;This is my script:&lt;/P&gt;&lt;P&gt;Basis:&lt;BR /&gt;Load * Inline &lt;/P&gt;&lt;P&gt;[ID, Type, Selectie, Selectie2ID &lt;/P&gt;&lt;P&gt;0,1,A,1&lt;BR /&gt;1,1,A,1 &lt;BR /&gt;2,1,A,1&lt;BR /&gt;3,2,A,1&lt;BR /&gt;4,2,A,1&lt;BR /&gt;5,3,A,1&lt;BR /&gt;5,3,A,1&lt;BR /&gt;5,3,A,1&lt;BR /&gt;5,3,A,1&lt;BR /&gt;6,1,B,2&lt;BR /&gt;7,1,B,2&lt;BR /&gt;8,1,B,2&lt;BR /&gt;9,2,B,2&lt;BR /&gt;10,2,B,2&lt;BR /&gt;11,3,B,2&lt;BR /&gt;12,3,B,2&lt;BR /&gt;13,3,B,2&lt;BR /&gt;14,3,B,2];&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;det:&lt;BR /&gt;load * inline&lt;BR /&gt;[Selectie2ID, Selectie2Name&lt;BR /&gt;1, A&lt;BR /&gt;2, B];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I now create a chart where I use set statement to count the number of ID's based on their type and use "Selectie" as a dimension, it works as expected.&lt;/P&gt;&lt;P&gt;He shows me the amount of ID's that have type 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change this now and use "Selectie2Name" as a dimension, I would expect the same result. But he shows me a different graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example qvw is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should there be an expression that works in both graphs or should I search for a different solution in the second graph?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the solution for the second graph and also, why is there a difference ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tia !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2011 05:13:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-11T05:13:55Z</dc:date>
    <item>
      <title>Set Expression result changes when using a dimension from a linked table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-result-changes-when-using-a-dimension-from-a/m-p/264798#M497939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made a small example of the problem I'm running into:&lt;/P&gt;&lt;P&gt;This is my script:&lt;/P&gt;&lt;P&gt;Basis:&lt;BR /&gt;Load * Inline &lt;/P&gt;&lt;P&gt;[ID, Type, Selectie, Selectie2ID &lt;/P&gt;&lt;P&gt;0,1,A,1&lt;BR /&gt;1,1,A,1 &lt;BR /&gt;2,1,A,1&lt;BR /&gt;3,2,A,1&lt;BR /&gt;4,2,A,1&lt;BR /&gt;5,3,A,1&lt;BR /&gt;5,3,A,1&lt;BR /&gt;5,3,A,1&lt;BR /&gt;5,3,A,1&lt;BR /&gt;6,1,B,2&lt;BR /&gt;7,1,B,2&lt;BR /&gt;8,1,B,2&lt;BR /&gt;9,2,B,2&lt;BR /&gt;10,2,B,2&lt;BR /&gt;11,3,B,2&lt;BR /&gt;12,3,B,2&lt;BR /&gt;13,3,B,2&lt;BR /&gt;14,3,B,2];&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;det:&lt;BR /&gt;load * inline&lt;BR /&gt;[Selectie2ID, Selectie2Name&lt;BR /&gt;1, A&lt;BR /&gt;2, B];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I now create a chart where I use set statement to count the number of ID's based on their type and use "Selectie" as a dimension, it works as expected.&lt;/P&gt;&lt;P&gt;He shows me the amount of ID's that have type 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change this now and use "Selectie2Name" as a dimension, I would expect the same result. But he shows me a different graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example qvw is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should there be an expression that works in both graphs or should I search for a different solution in the second graph?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the solution for the second graph and also, why is there a difference ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tia !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 05:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-result-changes-when-using-a-dimension-from-a/m-p/264798#M497939</guid>
      <dc:creator />
      <dc:date>2011-08-11T05:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression result changes when using a dimension from a linked table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-result-changes-when-using-a-dimension-from-a/m-p/264799#M497940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attach is your answer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i changed the expression in the second chart to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;Type=-{1}&amp;gt;} ID) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 05:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-result-changes-when-using-a-dimension-from-a/m-p/264799#M497940</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-11T05:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression result changes when using a dimension from a linked table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-result-changes-when-using-a-dimension-from-a/m-p/264800#M497941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Thanks for the answer !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the question I have now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the difference between&lt;BR /&gt;count( {$ - &amp;lt;Type = {1}&amp;gt;} ID&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;count( {$ &amp;lt;Type = - {1} &amp;gt;} ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is the first one just improper use of set statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 07:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-result-changes-when-using-a-dimension-from-a/m-p/264800#M497941</guid>
      <dc:creator />
      <dc:date>2011-08-11T07:25:48Z</dc:date>
    </item>
    <item>
      <title>Set Expression result changes when using a dimension from a linked table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-result-changes-when-using-a-dimension-from-a/m-p/264801#M497942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hei &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the first one exclude all the values of Type=1 in the model so as you have type=1 so now this values are excluded from the field value totaly,like they dont exists&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the seconed one is the proper one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 07:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-result-changes-when-using-a-dimension-from-a/m-p/264801#M497942</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-11T07:38:03Z</dc:date>
    </item>
  </channel>
</rss>

