<?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: Filter data based on selected fields in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-data-based-on-selected-fields-in-Set-Analysis-Using/m-p/279613#M587606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I had got the syntax right, however it does not filter the data based on current selection. Please can someone look this for me...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;COUNT({$&amp;lt;TimeStampValue={$(=($(vNextHour)))}, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q_No = {'Q1'}, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resp_ID = p({$&amp;lt;TimeStampValue={$(=($(vCurrentTime)))}&amp;gt;} Resp_ID)&amp;gt;} &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;Resp_ID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;This expression with Indirect Set Analysis returns zero &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/SPAN&gt;. &lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Which is incorrect...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Thanks - DV&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 May 2011 13:30:01 GMT</pubDate>
    <dc:creator>IAMDV</dc:creator>
    <dc:date>2011-05-06T13:30:01Z</dc:date>
    <item>
      <title>*** Filter data based on selected fields in Set Analysis / Using Indirect Analysis ***</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-data-based-on-selected-fields-in-Set-Analysis-Using/m-p/279610#M587603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Dear All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I am working on a survey project. I had data for different activities like...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Travel&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Away from Home - Shopping&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Away from Home - Entertainment&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Away from Home - Eating&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I have this data for each hour of the day and each day of the week. Now I wanted to look the behaviour of my audience. I mean I am using a simple set analysis expression to display a bar chart...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;COUNT({$&amp;lt;TimeStampValue = {$(=($(vMaxCurrentTime)))} , Q_No ={'Q1'} &amp;gt;} Resp_ID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Now I wanted to look at the behaviour of the &lt;STRONG style="text-decoration: underline;"&gt;same audience&lt;/STRONG&gt; for next &amp;amp; previous hour. So I had created a variable which calculates the previous &amp;amp; next hour based on the time selected by the user. And if the user selects a specific time, day &amp;amp; activity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;For example : Selecting the audience who travel at 7AM on Sunday. And if there are 1000 responses for the same. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG&gt;*** Now I wanted to see the behaviour of these 1000 respondents in previous hour &amp;amp; next hour? ***&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I hope it all makes sense. Your help/suggestions are much appreciated &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Many thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 11:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-data-based-on-selected-fields-in-Set-Analysis-Using/m-p/279610#M587603</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-05-06T11:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data based on selected fields in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-data-based-on-selected-fields-in-Set-Analysis-Using/m-p/279611#M587604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Also, I had tried to use indirect analysis. But I can't get it working &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I can explain more if you need to know more details...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 11:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-data-based-on-selected-fields-in-Set-Analysis-Using/m-p/279611#M587604</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-05-06T11:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data based on selected fields in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-data-based-on-selected-fields-in-Set-Analysis-Using/m-p/279612#M587605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;Adding to my previous post :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I had tried using the Indirect Analysis and can't seem to get the syntax right. Please can someone look into this one...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG&gt;COUNT(({&amp;lt;TimeStampValue={$(=($(vPreviousHour)))}, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resp_ID = p({&amp;lt;TimeStampValue={$(=($(vCurrentTime)))} Resp_ID&amp;gt;}) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG&gt;Resp_ID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Thanks - DV&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 12:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-data-based-on-selected-fields-in-Set-Analysis-Using/m-p/279612#M587605</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-05-06T12:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data based on selected fields in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-data-based-on-selected-fields-in-Set-Analysis-Using/m-p/279613#M587606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I had got the syntax right, however it does not filter the data based on current selection. Please can someone look this for me...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;COUNT({$&amp;lt;TimeStampValue={$(=($(vNextHour)))}, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q_No = {'Q1'}, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resp_ID = p({$&amp;lt;TimeStampValue={$(=($(vCurrentTime)))}&amp;gt;} Resp_ID)&amp;gt;} &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;Resp_ID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;This expression with Indirect Set Analysis returns zero &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/SPAN&gt;. &lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Which is incorrect...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Thanks - DV&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 13:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-data-based-on-selected-fields-in-Set-Analysis-Using/m-p/279613#M587606</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-05-06T13:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data based on selected fields in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-data-based-on-selected-fields-in-Set-Analysis-Using/m-p/279614#M587607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Finally, I got it working with trail &amp;amp; error method.... My logic was right but my syntax was incorrect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Here is what I need &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;COUNT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ({$&amp;lt;TimeStampValue={$(=($(vPreviousHour)))}, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q_No = {'Q1'}, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label_Text = {1} Label_Text,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resp_ID = p({$&amp;lt;TimeStampValue={$(=($(vMaxCurrentTime)))}&amp;gt;} Resp_ID)&amp;gt;} &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;Resp_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Many thanks to those who read this post!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG&gt;Cheers - DV&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 14:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-data-based-on-selected-fields-in-Set-Analysis-Using/m-p/279614#M587607</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-05-06T14:18:02Z</dc:date>
    </item>
  </channel>
</rss>

