<?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 to include current selection for all fields except one particular field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-include-current-selection-for-all-fields-except/m-p/637024#M1093308</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;Remove '-' from the variable name.&lt;/P&gt;&lt;P&gt;Your set analysis is fine. Using $ as the basis you keep Age, Location and override Snapshot_Date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 May 2014 19:46:05 GMT</pubDate>
    <dc:creator>whiteline</dc:creator>
    <dc:date>2014-05-17T19:46:05Z</dc:date>
    <item>
      <title>Set analysis to include current selection for all fields except one particular field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-include-current-selection-for-all-fields-except/m-p/637023#M1093307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a dashboard which has 3 list boxes where the user can select.&lt;/P&gt;&lt;P style="text-indent: -0.25in;"&gt;&lt;SPAN class="pasted-list-info"&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.&lt;/SPAN&gt;Snapshot_Date – Only one value can be selected at a time.&lt;/P&gt;&lt;P style="text-indent: -0.25in;"&gt;&lt;SPAN class="pasted-list-info"&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. &lt;/SPAN&gt;Age&lt;/P&gt;&lt;P style="text-indent: -0.25in;"&gt;&lt;SPAN class="pasted-list-info"&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. &lt;/SPAN&gt;Location&lt;/P&gt;&lt;P&gt;I need to show the #users as current month vs Previous month based on the snapshot date selection. I have created 2 variables to store the current month and the previous month values&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;v_Max_Snapshot_Date&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;SNAPSHOT_DATE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;,'MM-DD-YYYY') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;v_Max-1_Snapshot_Date &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;addmonths&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;SNAPSHOT_DATE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;),-1),'MM-DD-YYYY') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a straight table where I have written set analysis expression as shown below&lt;/P&gt;&lt;P&gt;Current Month: &lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;SNAPSHOT_DATE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;={'$(v_Max_Snapshot_Date)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;[Users]&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;)- this works fine&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Previous Month:&amp;nbsp; &lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Count(DISTINCT{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;SNAPSHOT_DATE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;'$(v_Max-1_Snapshot_Date)'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;}&amp;gt;}[&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Users&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;])&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt; - shows 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error i am facing is, the previous month value is displayed as 0.&amp;nbsp; If I change it to 1, it shows the overall user count for previous month, but its not changing based on the Age or Location filter when selected.&lt;/P&gt;&lt;P&gt;Any idea how to exclude the snapshot date alone from current selection and include the Age and location in the set analysis to be taken based on the current selection in the previous month users calcuation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2014 19:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-include-current-selection-for-all-fields-except/m-p/637023#M1093307</guid>
      <dc:creator>sarathi_pm</dc:creator>
      <dc:date>2014-05-17T19:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to include current selection for all fields except one particular field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-include-current-selection-for-all-fields-except/m-p/637024#M1093308</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;Remove '-' from the variable name.&lt;/P&gt;&lt;P&gt;Your set analysis is fine. Using $ as the basis you keep Age, Location and override Snapshot_Date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2014 19:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-include-current-selection-for-all-fields-except/m-p/637024#M1093308</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-05-17T19:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set analysis to include current selection for all fields except one particular field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-include-current-selection-for-all-fields-except/m-p/637025#M1093309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Thanks for your response, But i am not able to get it working.&lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;I have attached a sample file for your reference. COuld you please correct me where i am making mistake so that i am able to show the previous month values based on the selection &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2014 20:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-include-current-selection-for-all-fields-except/m-p/637025#M1093309</guid>
      <dc:creator>sarathi_pm</dc:creator>
      <dc:date>2014-05-17T20:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to include current selection for all fields except one particular field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-include-current-selection-for-all-fields-except/m-p/637026#M1093310</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;It works perfect for me.&lt;/P&gt;&lt;P&gt;There is no data for previous month for the selection provided (India, 22) and the expression returns 0.&lt;/P&gt;&lt;P&gt;Choose France and you'll see the difference. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove 1 from set analysis expression for the previous period.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 May 2014 07:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-include-current-selection-for-all-fields-except/m-p/637026#M1093310</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-05-18T07:48:24Z</dc:date>
    </item>
  </channel>
</rss>

