<?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 : Filters on a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-Filters-on-a-table/m-p/367126#M1173003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P(Field) = &lt;STRONG&gt;P&lt;/STRONG&gt;ossible values&lt;/P&gt;&lt;P&gt;E(Field) = &lt;STRONG&gt;E&lt;/STRONG&gt;xcluded values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2012 16:13:05 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2012-07-25T16:13:05Z</dc:date>
    <item>
      <title>Set analysis : Filters on a table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Filters-on-a-table/m-p/367121#M1172998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Context&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I uploaded data in two QV tables :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- 'Calls' with the following fields : C_call_id, C_creation_year, C_creation_month&lt;/P&gt;&lt;P&gt;- 'Period' with the following fileds : P_year, P_month&lt;/P&gt;&lt;P&gt;(I don't want to link the two tables)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I created 3 QV objects :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- a selection list (SL1) based on P_year&lt;/P&gt;&lt;P&gt;- a selection list (SL2) based on P_month&lt;/P&gt;&lt;P&gt;- a simple table (T1) with the following dimensions : C_call_id, C_creation_year, C_creation_month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SL1 and SL2 allows me to select the period(s) that I want to analyze (/get the list of CallId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the table T1 I added the following set analysis as expression&lt;/P&gt;&lt;P&gt;SA1 : &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;C_creation_year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;P_year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}C_call_id) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SA2 : &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;C_creation_month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;P_month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}C_call_id) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The SA1 tells me for each callid of the table T1 if the C_creation_year of the callid fits with the selected P_year : I get '1' if it fits&lt;/P&gt;&lt;P&gt;=&amp;gt; &lt;STRONG style="color: #008000;"&gt;It works fine&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The SA2 tells me for each callid of the table T1 if the C_creation_month of the callid fits with the selected P_month : I get '1' if it fits &lt;/P&gt;&lt;P&gt;=&amp;gt; &lt;STRONG style="color: #008000;"&gt;It works fine&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to combine the both conditions, I created the following set analysis as expression&lt;/P&gt;&lt;P&gt;SA3 :&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;C_creation_year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;P_year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, C_creation_month=P_month&amp;gt; }C_call_id) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SA3 tells me for each callid of the table T1 if the C_creation_year and C_creation_month of the callid fits with the selected P_year and P_month : I get '1' if it fits. Then I replaced SA1 and SA2 by SA3. I finally made condition on SA3 to display the Callid with SA3 = 1.&lt;/P&gt;&lt;P&gt;=&amp;gt; &lt;STRONG style="color: #008000;"&gt;It works fine&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Questions&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1 : I don't understand why I get a little red tic under the second paranthesis of S1 and S2.&lt;BR /&gt;&lt;EM&gt;Is there something wrong in my expressions ?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q2 : When I select P_year = 2011 and 2012, I get SA1=1 for the whole callid with C_creation_year = 2011 or 2012 but when I select no P_year, I get systematically SA1 = 0.&lt;BR /&gt;&lt;EM&gt;I was thinking that giving no selection in a selection lists means 'I want all'. Is it not the case ?&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;What could I do in SA1 to get all Callid when I select no P_year ?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q3 : &lt;/P&gt;&lt;P&gt;&lt;EM&gt;How can I hide my ES4 expression column ?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q4 : General question&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Is there any other ways to filter on table (T1) with a filter based on P_year (SL1) and P_month (SL2) without links between the QV tables 'Calls' and 'Period') ?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pascal &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 11:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Filters-on-a-table/m-p/367121#M1172998</guid>
      <dc:creator />
      <dc:date>2012-07-25T11:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis : Filters on a table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Filters-on-a-table/m-p/367122#M1172999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pascal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1 &amp;amp; Q2.- Try this expresion &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;C_creation_year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {$(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;P_year)}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, C_creation_month={$(P_month)}&amp;gt; }C_call_id) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Q3 .- In the expresion tab of chart properties you can enable or disable expresion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope to help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 12:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Filters-on-a-table/m-p/367122#M1172999</guid>
      <dc:creator />
      <dc:date>2012-07-25T12:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis : Filters on a table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Filters-on-a-table/m-p/367123#M1173000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gregorio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q1 &amp;amp; Q2 :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried with your expression.&lt;/P&gt;&lt;P&gt;I don't have the little red tic anymore under the parenthesis but... it doesn't work.&lt;/P&gt;&lt;P&gt;My table T1 became totally empty with or without selection on P_year/P_month, with or without the condition SA3=1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q3 :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you... it works !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 14:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Filters-on-a-table/m-p/367123#M1173000</guid>
      <dc:creator />
      <dc:date>2012-07-25T14:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis : Filters on a table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Filters-on-a-table/m-p/367124#M1173001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Q2, I think you need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;C_creation_year=P(P_year), C_creation_month=P(P_month)&amp;gt;} C_call_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS - does that also answer Q4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 14:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Filters-on-a-table/m-p/367124#M1173001</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-07-25T14:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis : Filters on a table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Filters-on-a-table/m-p/367125#M1173002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It really works Jonathan !&lt;/P&gt;&lt;P&gt;I didn't know the P function. What is it exactly ? It means that it must be considered as a &lt;STRONG&gt;P&lt;/STRONG&gt;arameter ?&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 14:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Filters-on-a-table/m-p/367125#M1173002</guid>
      <dc:creator />
      <dc:date>2012-07-25T14:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis : Filters on a table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Filters-on-a-table/m-p/367126#M1173003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P(Field) = &lt;STRONG&gt;P&lt;/STRONG&gt;ossible values&lt;/P&gt;&lt;P&gt;E(Field) = &lt;STRONG&gt;E&lt;/STRONG&gt;xcluded values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 16:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Filters-on-a-table/m-p/367126#M1173003</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-07-25T16:13:05Z</dc:date>
    </item>
  </channel>
</rss>

