<?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 analysis: multiple selections in one field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-multiple-selections-in-one-field/m-p/272080#M498201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct, archief_month &amp;lt;=archief_verwacht_month are 2 fields in a table which should be analyzed per row of this table, because they both belong to 1 fact. So I agree with your first reply. (but then, not off course with your second right?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reporting date is a global variable, independent of tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes all dates are in the correct format, a month is the first day of the month like 1-1-2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try also your second one, but in theory is was a wrong one because of the row by row comparison?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Martijn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2011 12:30:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-19T12:30:00Z</dc:date>
    <item>
      <title>Set analysis: multiple selections in one field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-multiple-selections-in-one-field/m-p/272077#M498198</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 would like to count something if the archief_month is smaller than 1 field and equal to the reporting date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to do this with set analysis? (could not find it in the help)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not work I think:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt; archief_month = {"&amp;lt;=archief_verwacht_month", reporting_date} &amp;gt;}&amp;nbsp; something )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 11:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-multiple-selections-in-one-field/m-p/272077#M498198</guid>
      <dc:creator />
      <dc:date>2011-09-19T11:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis: multiple selections in one field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-multiple-selections-in-one-field/m-p/272078#M498199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martijn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would assume that above expression won't work anyway in a set expression because you want to compare on record base if achief_month e.g. equals reporting_date, do you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, I would try &lt;/P&gt;&lt;P&gt;=count(if (achief_month &amp;lt;= achief_verwacht_month and achief_month = reporting_date, something))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have difficulties with performance, you may put a flag in your script created by above expression and then do&lt;/P&gt;&lt;P&gt;=count({&amp;lt;flag = {1} &amp;gt;} something)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 11:55:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-multiple-selections-in-one-field/m-p/272078#M498199</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-19T11:55:41Z</dc:date>
    </item>
    <item>
      <title>Set analysis: multiple selections in one field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-multiple-selections-in-one-field/m-p/272079#M498200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martijn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just changed my mind, try something like&lt;/P&gt;&lt;P&gt;=count({&amp;lt; archief_month = {"=archief_month &amp;lt;=archief_verwacht_month and archief_month=reporting_date"} &amp;gt;}&amp;nbsp; something )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(BTW, I assume it is possible to compare a reporting DATE with a archief_MONTH, right?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 12:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-multiple-selections-in-one-field/m-p/272079#M498200</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-19T12:09:18Z</dc:date>
    </item>
    <item>
      <title>Set analysis: multiple selections in one field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-multiple-selections-in-one-field/m-p/272080#M498201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct, archief_month &amp;lt;=archief_verwacht_month are 2 fields in a table which should be analyzed per row of this table, because they both belong to 1 fact. So I agree with your first reply. (but then, not off course with your second right?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reporting date is a global variable, independent of tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes all dates are in the correct format, a month is the first day of the month like 1-1-2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try also your second one, but in theory is was a wrong one because of the row by row comparison?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Martijn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 12:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-multiple-selections-in-one-field/m-p/272080#M498201</guid>
      <dc:creator />
      <dc:date>2011-09-19T12:30:00Z</dc:date>
    </item>
    <item>
      <title>Set analysis: multiple selections in one field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-multiple-selections-in-one-field/m-p/272081#M498202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martijn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the second one could also work using an advanced search for the element_set (as is), though I am not sure if the performance will be much better than using the if() function. Just give it a try...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 12:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-multiple-selections-in-one-field/m-p/272081#M498202</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-19T12:34:48Z</dc:date>
    </item>
  </channel>
</rss>

