<?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 Require help in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Require-help-in-set-analysis/m-p/229586#M81479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arvind&lt;/P&gt;&lt;P&gt;some questions&lt;BR /&gt;- will you ever also filter on city? If so you can not use {1&amp;lt; as this will ignore any selections&lt;BR /&gt;- why do you use a set expression for the current results? This will be your natural result by the users selections?&lt;BR /&gt;- can users select a single date only or also a range of dates over several month's?&lt;BR /&gt;- which values do not match, can you provide an limited example?&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 May 2010 15:06:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-01T15:06:46Z</dc:date>
    <item>
      <title>Require help in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Require-help-in-set-analysis/m-p/229585#M81478</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;I require help in set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have selection filters available as Year Month City in my application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed pivot report which has contents :&lt;/P&gt;&lt;P&gt;Fields Year Month City&lt;/P&gt;&lt;P&gt;Calculated Columns: Quantity,Amount&lt;/P&gt;&lt;P&gt;What i want when i select any Year ,Month combination then my pivot should display value for current Year/Month selection as well as Previous Month also .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the following set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Selection: (sum({1&amp;lt;ci.insertion_date={"&amp;gt;=$(=monthstart(vMaxDate)) &amp;lt;=$(=vMaxDate)"}&amp;gt;} ci.received_quantity)&lt;/P&gt;&lt;P&gt;where vMaxDate is a variable which stores my date field (ci.insertion_date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PreviousMonth: sum({1&amp;lt;ci.insertion_date={"&amp;gt;=$(=monthstart(vMaxDate,-1)) &amp;lt;=$(=AddMonths(vMaxDate,-1))"}&amp;gt;} ci.received_quantity))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above two expressions are calculating values but they are not matching with my pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any error in formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guys please help me .I require it urgently&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arvind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 May 2010 12:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Require-help-in-set-analysis/m-p/229585#M81478</guid>
      <dc:creator>rajtechnocraft</dc:creator>
      <dc:date>2010-05-01T12:35:34Z</dc:date>
    </item>
    <item>
      <title>Require help in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Require-help-in-set-analysis/m-p/229586#M81479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arvind&lt;/P&gt;&lt;P&gt;some questions&lt;BR /&gt;- will you ever also filter on city? If so you can not use {1&amp;lt; as this will ignore any selections&lt;BR /&gt;- why do you use a set expression for the current results? This will be your natural result by the users selections?&lt;BR /&gt;- can users select a single date only or also a range of dates over several month's?&lt;BR /&gt;- which values do not match, can you provide an limited example?&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 May 2010 15:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Require-help-in-set-analysis/m-p/229586#M81479</guid>
      <dc:creator />
      <dc:date>2010-05-01T15:06:46Z</dc:date>
    </item>
    <item>
      <title>Require help in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Require-help-in-set-analysis/m-p/229587#M81480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with all questions that Juerg asked... in addition - I think your pivot table is showing number for the whole prior month, while your set analysis formula only filters data from the beginning of prior month to the current date a month ago (part of the month).&lt;/P&gt;&lt;P&gt;I also don't think that you should be using Set 1 - that will cause disregarding all other selections.&lt;/P&gt;&lt;P&gt;Lastly, when you are using variables to hold dates, you should be sensitive to formatting. I typically store the "number" behind the date in a variable, and then convert the value before using it. Your variable might be holding a formatted string, and then some of the date calculations might go wrong...&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV id="refHTML"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 00:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Require-help-in-set-analysis/m-p/229587#M81480</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-05-03T00:51:05Z</dc:date>
    </item>
  </channel>
</rss>

