<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/545435#M480211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rory,&lt;/P&gt;&lt;P&gt;To get things to work on selection of multiple days, you need to change your trigger a bit. I changed it to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=chr(39) &amp;amp; concat(distinct Day, Chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will get the list of days that will work with the set analysis in your textboxes, and if no day is selected, it will count through all days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you needed to change your set analysis a bit to get the ranges, I changed the formula to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Test with Range of Hours'&lt;/P&gt;&lt;P&gt;&amp;amp;chr(10) &amp;amp; 'Process C'&lt;/P&gt;&lt;P&gt;&amp;amp;chr(10) &amp;amp;'Count of Entry:&amp;nbsp; ' &amp;amp; count({&amp;lt;Process_ID={'C'}&amp;nbsp; , Dummy_Start&amp;nbsp; = {$(vDay)} ,&amp;nbsp; Start_Hour={'&amp;gt;=$(=vHour_1)&amp;lt;=$(=vHour_2)'}&amp;nbsp; &amp;gt; } DISTINCT ID)&lt;/P&gt;&lt;P&gt;&amp;amp;chr(10) &amp;amp;'Count of Exit:&amp;nbsp; ' &amp;amp; count({&amp;lt;Process_ID={'C'}&amp;nbsp; , Dummy_End&amp;nbsp; = {$(=vDay)} ,&amp;nbsp; End_Hour ={'&amp;gt;=$(=vHour_1)&amp;lt;=$(=vHour_2)'}&amp;nbsp; &amp;gt; } DISTINCT ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this works for you. Please find attached (See bottom 3 text boxes).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Dec 2013 19:48:46 GMT</pubDate>
    <dc:creator>jerem1234</dc:creator>
    <dc:date>2013-12-12T19:48:46Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/545434#M480210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a quick question regarding set analysis. I basically have 2 multiboxes where the user selects the week and day(s) of interest.&lt;/P&gt;&lt;P&gt;There is also a&amp;nbsp; multi-value slider for the hours of the day if the user chooses to drill down to a much lower level.&lt;/P&gt;&lt;P&gt;I am trying to do a simple count - it works fine when I only select 1 day and 1 hour (in the slider). However when I try to see the count for, eg a few days and from 1pm to 6pm, the expression breaks down. &lt;/P&gt;&lt;P&gt;I would appreciate any thoughts you may have on how to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 10:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/545434#M480210</guid>
      <dc:creator />
      <dc:date>2013-12-09T10:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/545435#M480211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rory,&lt;/P&gt;&lt;P&gt;To get things to work on selection of multiple days, you need to change your trigger a bit. I changed it to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=chr(39) &amp;amp; concat(distinct Day, Chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will get the list of days that will work with the set analysis in your textboxes, and if no day is selected, it will count through all days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you needed to change your set analysis a bit to get the ranges, I changed the formula to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Test with Range of Hours'&lt;/P&gt;&lt;P&gt;&amp;amp;chr(10) &amp;amp; 'Process C'&lt;/P&gt;&lt;P&gt;&amp;amp;chr(10) &amp;amp;'Count of Entry:&amp;nbsp; ' &amp;amp; count({&amp;lt;Process_ID={'C'}&amp;nbsp; , Dummy_Start&amp;nbsp; = {$(vDay)} ,&amp;nbsp; Start_Hour={'&amp;gt;=$(=vHour_1)&amp;lt;=$(=vHour_2)'}&amp;nbsp; &amp;gt; } DISTINCT ID)&lt;/P&gt;&lt;P&gt;&amp;amp;chr(10) &amp;amp;'Count of Exit:&amp;nbsp; ' &amp;amp; count({&amp;lt;Process_ID={'C'}&amp;nbsp; , Dummy_End&amp;nbsp; = {$(=vDay)} ,&amp;nbsp; End_Hour ={'&amp;gt;=$(=vHour_1)&amp;lt;=$(=vHour_2)'}&amp;nbsp; &amp;gt; } DISTINCT ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this works for you. Please find attached (See bottom 3 text boxes).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 19:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/545435#M480211</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2013-12-12T19:48:46Z</dc:date>
    </item>
  </channel>
</rss>

