<?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 how to use SET Analysis for selecting data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-use-SET-Analysis-for-selecting-data/m-p/196599#M56594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody&lt;BR /&gt;&lt;BR /&gt;I got a difficult question and after trying it for a few hours... you guys are my last hope.&lt;/P&gt;&lt;P&gt;The Idea is simple, I want to do a selection using the result of an expression. The statement below is placed as expression in a straight table chart where the result field of the expression (Cases.CASE_NR) is also the dimension. The table is now looks like a listbox of the Field "Cases.CASE_NR" and, like in a list box, I'd like to do something like "select possible" which of course doesn't work for a table chart.&lt;BR /&gt;&lt;BR /&gt;(Table has the Fields Cases.CASE_NR, Cases.STATUS_NR, Cases.VALID_FROM, Cases.VALID_TO and is part of a Data warehouse)&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;=only({$&amp;lt;Cases.CASE_NR = E({1&amp;lt;Cases.STATUS_NR-={22},Cases.VALID_FROM={"&amp;lt;=01.02.2007"},Cases.VALID_TO={"&amp;gt;=01.01.2007"}&amp;gt;}),Cases.STATUS_NR={22},Cases.VALID_FROM={"&amp;lt;=01.02.2007"},Cases.VALID_TO={"&amp;gt;=01.01.2007"}&amp;gt;}Cases.CASE_NR)&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;The only thing I came up with so far is to write a macro that runs through the whole chart and selects each and every single CASE_NR with a do - loop.&lt;BR /&gt;&lt;BR /&gt;A few things you need to know:&lt;BR /&gt;The expression has to be done with SET because it's not possible otherwise (I'm using indirect SET) and I also cant flag the records because the date which is now a specific one is going to be replaced by variables (so is the Cases.STATUS_NR).&lt;BR /&gt;The number of records in the table that qualifies for selection will be up to 1.5 millions, so it's an performance issue too. (The whole Table "Cases" has more than 35 million records)&lt;BR /&gt;&lt;BR /&gt;If there is an "QlikView way" to use the result of an expression to select data, then I'm sure that I'll get it here or nowhere!&lt;BR /&gt;&lt;BR /&gt;Kind regards and thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jun 2010 11:34:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-22T11:34:21Z</dc:date>
    <item>
      <title>how to use SET Analysis for selecting data</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-SET-Analysis-for-selecting-data/m-p/196599#M56594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody&lt;BR /&gt;&lt;BR /&gt;I got a difficult question and after trying it for a few hours... you guys are my last hope.&lt;/P&gt;&lt;P&gt;The Idea is simple, I want to do a selection using the result of an expression. The statement below is placed as expression in a straight table chart where the result field of the expression (Cases.CASE_NR) is also the dimension. The table is now looks like a listbox of the Field "Cases.CASE_NR" and, like in a list box, I'd like to do something like "select possible" which of course doesn't work for a table chart.&lt;BR /&gt;&lt;BR /&gt;(Table has the Fields Cases.CASE_NR, Cases.STATUS_NR, Cases.VALID_FROM, Cases.VALID_TO and is part of a Data warehouse)&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;=only({$&amp;lt;Cases.CASE_NR = E({1&amp;lt;Cases.STATUS_NR-={22},Cases.VALID_FROM={"&amp;lt;=01.02.2007"},Cases.VALID_TO={"&amp;gt;=01.01.2007"}&amp;gt;}),Cases.STATUS_NR={22},Cases.VALID_FROM={"&amp;lt;=01.02.2007"},Cases.VALID_TO={"&amp;gt;=01.01.2007"}&amp;gt;}Cases.CASE_NR)&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;The only thing I came up with so far is to write a macro that runs through the whole chart and selects each and every single CASE_NR with a do - loop.&lt;BR /&gt;&lt;BR /&gt;A few things you need to know:&lt;BR /&gt;The expression has to be done with SET because it's not possible otherwise (I'm using indirect SET) and I also cant flag the records because the date which is now a specific one is going to be replaced by variables (so is the Cases.STATUS_NR).&lt;BR /&gt;The number of records in the table that qualifies for selection will be up to 1.5 millions, so it's an performance issue too. (The whole Table "Cases" has more than 35 million records)&lt;BR /&gt;&lt;BR /&gt;If there is an "QlikView way" to use the result of an expression to select data, then I'm sure that I'll get it here or nowhere!&lt;BR /&gt;&lt;BR /&gt;Kind regards and thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 11:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-SET-Analysis-for-selecting-data/m-p/196599#M56594</guid>
      <dc:creator />
      <dc:date>2010-06-22T11:34:21Z</dc:date>
    </item>
    <item>
      <title>how to use SET Analysis for selecting data</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-SET-Analysis-for-selecting-data/m-p/196600#M56595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, if you could select values of CASE_NR that would work for you?&lt;/P&gt;&lt;P&gt;Did you try opening up the Advanced Search window and pasting your expression in there? To open Advanced Search right-click on a listbox or multibox for the CASE_NR field. Advanced Search should be able to select values of the field based on your expression (assuming that there's no syntax errors in the expression).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 18:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-SET-Analysis-for-selecting-data/m-p/196600#M56595</guid>
      <dc:creator />
      <dc:date>2010-06-22T18:23:52Z</dc:date>
    </item>
    <item>
      <title>how to use SET Analysis for selecting data</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-SET-Analysis-for-selecting-data/m-p/196601#M56596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's working! Just copied my monster-SET into Advanced Search and got the same result as shown in the Chart!&lt;/P&gt;&lt;P&gt;I guess, that's it &lt;IMG alt="Yes" src="http://community.qlik.com/emoticons/emotion-21.gif" /&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 07:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-SET-Analysis-for-selecting-data/m-p/196601#M56596</guid>
      <dc:creator />
      <dc:date>2010-06-23T07:42:01Z</dc:date>
    </item>
  </channel>
</rss>

