<?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 Query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/148295#M26619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing to be careful of when using $ and a date field is that you usually have a calendar connected to the date field, and you should usually list ALL of the connected calendar fields in the expression.&lt;/P&gt;&lt;P&gt;To explain, let's say you have fields Date, Month and Year. The user might select from any or all of these fields. They might, for instance, select 26/06/2009 for Date, Jun-09 for Month and 2009 for Year. If you then just do this:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Date={'31/03/2008'}&amp;gt;} distinct EmpId)&lt;/P&gt;&lt;P&gt;It won't work, because although you've modified the Date field, Qlikview is still (because of the $) using the selected values for Month and Year. So you have to list them all. In this case, telling it to ignore the selections in Month and year.&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Date={'31/03/2008'},Month=,Year=&amp;gt;} distinct EmpId)&lt;/P&gt;&lt;P&gt;Also, $ is the default, so it doesn't have to be specified explicitly:&lt;/P&gt;&lt;P&gt;count({&amp;lt;Date={'31/03/2008'},Month=,Year=&amp;gt;} distinct EmpId)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jul 2009 01:12:53 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2009-07-03T01:12:53Z</dc:date>
    <item>
      <title>Set Analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/148289#M26613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I have list of Employees for two quarters - As on Mar2008 and As on Jun2009&lt;/P&gt;&lt;P&gt;I am comparing Jun2009 with Mar2008.&lt;BR /&gt;In a bar chart, i made two expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Count&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;({&lt;/STRONG&gt;1&amp;lt;[As On Date]={'31/03/2008'}&amp;gt;} Distinct EmpId) - to get count for Mar2008&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;2. &lt;STRONG&gt;Count&lt;/STRONG&gt;({$} Distinct EmpId) - to get count for Jun2009 (I have made Jun2009 as Already Selected)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Till now it is OK. But problem occurs when i am making selections in other criteria like Region, etc. In that case, i am getting Region wise values for Jun2009 but not for Mar2008.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there any way in Set Analysis so that i can get filtered values for Mar2008 also.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Arun Mittal&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 16:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/148289#M26613</guid>
      <dc:creator />
      <dc:date>2009-07-02T16:42:09Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/148290#M26614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post an example?&lt;/P&gt;&lt;P&gt;Roberta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 17:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/148290#M26614</guid>
      <dc:creator />
      <dc:date>2009-07-02T17:16:07Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/148291#M26615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see in the attached file..if i do select in Region, As On 31/03/2008 is not changing as it is based on the set analysis formula as i told earlier. I want that these values should also get changed when i do selection in Region (i.e. As On 31/03/2008 for the selected region)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 17:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/148291#M26615</guid>
      <dc:creator />
      <dc:date>2009-07-02T17:37:46Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/148292#M26616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with $ (current selection) instead of 1 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;({$&amp;lt;[As On Date]={'31/03/2008'}&amp;gt;} Distinct EmpId &lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Roberta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 18:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/148292#M26616</guid>
      <dc:creator />
      <dc:date>2009-07-02T18:50:08Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/148293#M26617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Roberta. Its working now.&lt;/P&gt;&lt;P&gt;Bit more help.. Can u pls elaborate it to me.&lt;/P&gt;&lt;P&gt;As i thought {1&amp;lt;[As On Date]={'31/03/2008'}&amp;gt;} like take full set ie 1 and in that take the records where date is 31/03/2008. I took full set because 26/06/2009 is already selected. Can u pls explain me while $ denotes current selection (here 26/06/2009) how this is working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 19:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/148293#M26617</guid>
      <dc:creator />
      <dc:date>2009-07-02T19:18:36Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/148294#M26618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excuse me: I only speek a little english..&lt;/P&gt;&lt;P&gt;I try to explain you : the expression &amp;lt;[As On Date]={'31/03/2008'}&amp;gt; is a "set modifier" : when it is written immediately after the set identifier (1= all, $= current selction) it is interpreted as a modification of corresponding set.&lt;/P&gt;&lt;P&gt;So ,independently from [As On Date] field's selected value, if you use set identifier = $ the expression will be calculated on all data corresponding to [As On Date]='31/03/2008' and all other selection's restriction, otherwise, if you use set identifier = 1 , the expression will be calculated on all data corresponding to [As On Date]='31/03/2008' disregarding selection.&lt;/P&gt;&lt;P&gt;i hope i've been able to give you a valid answer.&lt;/P&gt;&lt;P&gt;Roberta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 20:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/148294#M26618</guid>
      <dc:creator />
      <dc:date>2009-07-02T20:56:20Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/148295#M26619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing to be careful of when using $ and a date field is that you usually have a calendar connected to the date field, and you should usually list ALL of the connected calendar fields in the expression.&lt;/P&gt;&lt;P&gt;To explain, let's say you have fields Date, Month and Year. The user might select from any or all of these fields. They might, for instance, select 26/06/2009 for Date, Jun-09 for Month and 2009 for Year. If you then just do this:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Date={'31/03/2008'}&amp;gt;} distinct EmpId)&lt;/P&gt;&lt;P&gt;It won't work, because although you've modified the Date field, Qlikview is still (because of the $) using the selected values for Month and Year. So you have to list them all. In this case, telling it to ignore the selections in Month and year.&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Date={'31/03/2008'},Month=,Year=&amp;gt;} distinct EmpId)&lt;/P&gt;&lt;P&gt;Also, $ is the default, so it doesn't have to be specified explicitly:&lt;/P&gt;&lt;P&gt;count({&amp;lt;Date={'31/03/2008'},Month=,Year=&amp;gt;} distinct EmpId)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 01:12:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/148295#M26619</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-07-03T01:12:53Z</dc:date>
    </item>
  </channel>
</rss>

