<?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 ignoring selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-ignoring-selection/m-p/956933#M328754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;Money&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Courier New';"&gt;[Fiscal Date]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={'&amp;gt;=$(=MonthStart(Max(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;[Fiscal Date]&amp;gt;}&lt;/SPAN&gt;[Fiscal Date]), ))&amp;lt;=$(=MonthEnd(Max(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;[Fiscal Date]&amp;gt;}&lt;/SPAN&gt;[Fiscal Date])))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Sales Revenue in (Euro)]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2015 12:34:51 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2015-09-29T12:34:51Z</dc:date>
    <item>
      <title>Set analysis ignoring selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-ignoring-selection/m-p/956932#M328753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I have issues with my set analysis in QlikView. To make it easier let’s assume that I have two fields called [Fiscal date] and [Sales revenue] with the following data sets:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;[Fiscal Date]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sales revenue]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;1.Jan.2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500€&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;1.Feb.2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200€&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;1.Mrz.2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 600€&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;(...)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (...)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;1.Dec.2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000€&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I want to display the current month (depend on the current selection) or sum of selected months and the previous month (also depend on the current selection). What I did is an If-condition to check if any value is selected in fiscal date. If yes then use sum([Sales revenue]) to get the correct sum for the current selection (e.g. sum over Jan and Feb). Otherwise use this set analysis (which works fine):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Money&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Fiscal Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={'&amp;gt;=$(=MonthStart(Max([Fiscal Date]), ))&amp;lt;=$(=MonthEnd(Max([Fiscal Date])))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Sales Revenue in (Euro)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Now my problem: If for instance Feb and Mrz is selected then should the previous month shows the sum for Jan. I get the correct Month with set analysis but 0€ as the sum of Jan. The reason is that only Feb and Mrz is selected. If I use sum({&amp;lt;[Fiscal date]={‘1.Feb.2014’}&amp;gt;} [Sales revenue]) I get 200€ If I change this manual to sum({&amp;lt;[Fiscal date]={‘1.Jan.2014’}&amp;gt;} [Sales revenue])&amp;nbsp; I get 0€. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Therefore my question: How can I ignore the fiscal date selection and get the correct sum value for the previous month depends on the current selection?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 09:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-ignoring-selection/m-p/956932#M328753</guid>
      <dc:creator>keitel2015</dc:creator>
      <dc:date>2015-09-29T09:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis ignoring selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-ignoring-selection/m-p/956933#M328754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;Money&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Courier New';"&gt;[Fiscal Date]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={'&amp;gt;=$(=MonthStart(Max(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;[Fiscal Date]&amp;gt;}&lt;/SPAN&gt;[Fiscal Date]), ))&amp;lt;=$(=MonthEnd(Max(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;[Fiscal Date]&amp;gt;}&lt;/SPAN&gt;[Fiscal Date])))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Sales Revenue in (Euro)]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 12:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-ignoring-selection/m-p/956933#M328754</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-29T12:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis ignoring selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-ignoring-selection/m-p/956934#M328755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get the sum value for Mrz if I select Feb and Mrz but I need the value for Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 14:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-ignoring-selection/m-p/956934#M328755</guid>
      <dc:creator>keitel2015</dc:creator>
      <dc:date>2015-09-29T14:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis ignoring selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-ignoring-selection/m-p/956935#M328756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to clear selections in the other calendar field the user may select in. &lt;/P&gt;&lt;P&gt;Assuming you've made selections in Month, Year fields, you need to write something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Date = {"..."} &lt;STRONG&gt;, Month=, Year=&lt;/STRONG&gt; &amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 14:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-ignoring-selection/m-p/956935#M328756</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-09-29T14:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis ignoring selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-ignoring-selection/m-p/956936#M328757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 14:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-ignoring-selection/m-p/956936#M328757</guid>
      <dc:creator>keitel2015</dc:creator>
      <dc:date>2015-09-29T14:33:45Z</dc:date>
    </item>
  </channel>
</rss>

