<?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 Exclude values to another group in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217498#M70693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roland,&lt;/P&gt;&lt;P&gt;Thx for the nice code, it works like I want it to. Now the next thing is that I have one total field which now sums up everything in the table, but with the excluding of those 3 values I want to get 2 total fields.&lt;/P&gt;&lt;P&gt;Like total1 (sum of the zzp field) and total2 (sum of the gegevens2 field)&lt;/P&gt;&lt;P&gt;Is this also possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Dec 2010 13:47:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-08T13:47:23Z</dc:date>
    <item>
      <title>Exclude values to another group</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217496#M70691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello you all,&lt;/P&gt;&lt;P&gt;Got a situation where I want te exclude some values from a field called &lt;STRONG&gt;Gegevens&lt;/STRONG&gt; into another field, but can't get the syntax right. My code so far:&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;IF(Trim(Gegevens)= 'H900: P/dgdl. dagbest. VG-licht (VG1-VG4)', 'H900: P/dgdl. dagbest. VG-licht (VG1-VG4)',&lt;BR /&gt;IF(Trim(Gegevens)= 'H901: P/dgdl. dagbest. VG-mid. (VG5,VG6)', 'H901: P/dgdl. dagbest. VG-mid. (VG5,VG6)',&lt;BR /&gt;IF(Trim(Gegevens)= 'H902: P/dgdl. dagbest. VG-zwaar (VG7)', 'H902: P/dgdl. dagbest. VG-zwaar (VG7)'))) as Gegevens2,&lt;BR /&gt;Gegevens as ZZP&lt;/P&gt;&lt;P&gt;Now I want to get two different fields: &lt;STRONG&gt;Gegevens2&lt;/STRONG&gt; and &lt;STRONG&gt;ZZP&lt;/STRONG&gt;. My code does this BUT the 3 values mentioned (H900, H901, H901) are now included in &lt;STRONG&gt;both&lt;/STRONG&gt; fields. I want those 3 values into field Gegeven2 and &lt;STRONG&gt;OUT&lt;/STRONG&gt; of field ZZP.&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanchez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 11:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217496#M70691</guid>
      <dc:creator />
      <dc:date>2010-12-08T11:56:44Z</dc:date>
    </item>
    <item>
      <title>Exclude values to another group</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217497#M70692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Richard,&lt;/P&gt;&lt;P&gt;I shortend your string a little bit, but the logic should be visible. You need too statements, one for each field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;IF(Trim(Gegevens)= 'H900' OR Trim(Gegevens)= 'H901' OR Trim(Gegevens)= 'H902', Trim(Gegevens), null()) AS Gegevens2,&lt;BR /&gt;IF(Trim(Gegevens)&amp;lt;&amp;gt; 'H900' AND Trim(Gegevens)&amp;lt;&amp;gt; 'H901' AND Trim(Gegevens)&amp;lt;&amp;gt; 'H902', Trim(Gegevens), null()) AS ZZP,&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: I would declare some variables like SET vH900 = 'H900: P/dgdl. dagbest. VG-licht (VG1-VG4)' for easier coding.&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 13:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217497#M70692</guid>
      <dc:creator />
      <dc:date>2010-12-08T13:19:09Z</dc:date>
    </item>
    <item>
      <title>Exclude values to another group</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217498#M70693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roland,&lt;/P&gt;&lt;P&gt;Thx for the nice code, it works like I want it to. Now the next thing is that I have one total field which now sums up everything in the table, but with the excluding of those 3 values I want to get 2 total fields.&lt;/P&gt;&lt;P&gt;Like total1 (sum of the zzp field) and total2 (sum of the gegevens2 field)&lt;/P&gt;&lt;P&gt;Is this also possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 13:47:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217498#M70693</guid>
      <dc:creator />
      <dc:date>2010-12-08T13:47:23Z</dc:date>
    </item>
    <item>
      <title>Exclude values to another group</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217499#M70694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;glad to help you, don't forget to mark my answer above as solution.&lt;/P&gt;&lt;P&gt;To your next question: this should be possible. I think with an if()-Statement would do the Job similar to (sum (if ZZP &amp;lt;&amp;gt; null(), Value, 0)). But for this I need more details.&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 14:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217499#M70694</guid>
      <dc:creator />
      <dc:date>2010-12-08T14:49:38Z</dc:date>
    </item>
    <item>
      <title>Exclude values to another group</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217500#M70695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My formula for the second question = &lt;B&gt;if&lt;/B&gt; &lt;B&gt;(&lt;/B&gt;ZZP &amp;lt;&amp;gt; null(), sum(Totaal), 0) But I don't get any data without selecting anyting. I do not want to click on anything so the formule must be made in the script instead of in a pivot table.&lt;/P&gt;&lt;P&gt;The table is like:&lt;BR /&gt;&lt;BR /&gt;Gegevens Total&lt;BR /&gt;Z300 50&lt;BR /&gt;Z500 25&lt;BR /&gt;H900 5&lt;BR /&gt;H901 5&lt;BR /&gt;H902 10&lt;BR /&gt;....&lt;BR /&gt;....&lt;BR /&gt;With the formulas given by you, I've splitted the field 'Gegevens' into 2 fields (ZZP &amp;amp; Gegevens2) because H900 H901 &amp;amp; H902 must be filtered out. The Total field stil sums up everything up. So the total sum = 95.&lt;/P&gt;&lt;P&gt;I want a total sum of &lt;STRONG&gt;75&lt;/STRONG&gt; &amp;amp; a second total sum of &lt;STRONG&gt;20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards. Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 15:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217500#M70695</guid>
      <dc:creator />
      <dc:date>2010-12-08T15:11:22Z</dc:date>
    </item>
    <item>
      <title>Exclude values to another group</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217501#M70696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;take care of the order of the if() and the sum(). Your expression does anything else, please compare it with mine. There you can see that the IF() is operating within the sum()-function as a filter. Which means only rows passing the if()-filter will be summed up (are a valid summand of sum()).&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;I would use the formular in the expression of the chart or pivot. Its easy to use.&lt;/P&gt;&lt;P&gt;Got it?&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 15:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217501#M70696</guid>
      <dc:creator />
      <dc:date>2010-12-08T15:27:21Z</dc:date>
    </item>
    <item>
      <title>Exclude values to another group</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217502#M70697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland,&lt;/P&gt;&lt;P&gt;No, I cannot get it working. I use this formular:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum(if (ZZP &amp;lt;&amp;gt; null(), (Totaal), 0))) /(365) * (334)&lt;/P&gt;&lt;P&gt;The outcome is +/- 25 times higher than it should be.... What could be wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Richard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 17:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217502#M70697</guid>
      <dc:creator />
      <dc:date>2010-12-08T17:41:31Z</dc:date>
    </item>
    <item>
      <title>Exclude values to another group</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217503#M70698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;hard to guess. Are you able to post a exam application? I am afraid thats the only way to look behind the curtain.&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 20:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217503#M70698</guid>
      <dc:creator />
      <dc:date>2010-12-08T20:45:04Z</dc:date>
    </item>
    <item>
      <title>Exclude values to another group</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217504#M70699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would be a problem but I think I know what's wrong. Got a $Syn 6 table.&lt;/P&gt;&lt;P&gt;Trying to make an alias but that breaks the links between some relevant fileds and so it does not work. It seems like the only solution is to join some fields in a table but that's something new for me... inner/left/right drop table/fields... ....pffff hard because it's not clear SQL!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 12:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217504#M70699</guid>
      <dc:creator />
      <dc:date>2010-12-09T12:14:26Z</dc:date>
    </item>
    <item>
      <title>Exclude values to another group</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217505#M70700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It isn't so hard as you expect it. The main purpose is to create a reasonable data modell. I prefer a star schema with one factstable in the center and dimensions surrounding the facts.&lt;/P&gt;&lt;P&gt;A Syn-Table must not be wrong in every case. Linking tables together is done in QV with same fieldnames in different QV-tables. For the first time this can be misleading when you think about similar columnnames in different SQL-tables. In SQL it is quit clear while Qlikview does not qualify unless being told so. If you have designed a correct combined key (with five or six fields) i.e. for referencing a master-detail relationship the resulting SynTable will be also correct. The QV-Joins are slightly different as in SQL (in fact it is a kind of merging tables together), but they are more a technical issue. If the design of your data modell is correct, it should work independent of the QV-Joining or even not QV-joining and keeping linked tables.&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 13:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217505#M70700</guid>
      <dc:creator />
      <dc:date>2010-12-09T13:19:54Z</dc:date>
    </item>
    <item>
      <title>Exclude values to another group</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217506#M70701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not that technical so unfortunaltely I can't get it working the proper way.&lt;/P&gt;&lt;P&gt;I've made a work arround by creating an action on opening the tab that pre selects the ZZP values and on another tab pre selects the Gegegevens2 field values. This is a simple way to get it working.&lt;/P&gt;&lt;P&gt;Thx for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 11:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-values-to-another-group/m-p/217506#M70701</guid>
      <dc:creator />
      <dc:date>2010-12-10T11:15:38Z</dc:date>
    </item>
  </channel>
</rss>

