<?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: Compare 2 Months Selected by User in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-2-Months-Selected-by-User/m-p/949008#M467343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, it's maybe helpfull&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/48508"&gt;Comparative Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2015 10:06:22 GMT</pubDate>
    <dc:creator>t_chetirbok</dc:creator>
    <dc:date>2015-11-20T10:06:22Z</dc:date>
    <item>
      <title>Compare 2 Months Selected by User</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-Months-Selected-by-User/m-p/949005#M467340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have a pivot table which compares factory statuses between 2 months - based on the month selected in the calendar and the month previous to the selected month. The table only shows records where the factory status differs between the 2 months, e.g.;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106173_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;The Previous Month expression (i.e. Mar-2015 in this example) is&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(concat( {$&amp;lt;Month=, Year=, MonthYear = {"$(=Date(addmonths(max(MonthYear), -1), 'MMM-YYYY'))"}, [Factory Status] = &amp;gt;}DISTINCT [Factory Status], ', ')&amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;(concat( {$&amp;lt;MonthYear={"$(=max(MonthYear))"}, [Factory Status] = &amp;gt;}DISTINCT [Factory Status], ', ')),&lt;/P&gt;&lt;P&gt;concat( {$&amp;lt;Month=, Year=, MonthYear = {"$(=Date(addmonths(max(MonthYear), -1), 'MMM-YYYY'))"}, [Factory Status] = &amp;gt;}DISTINCT [Factory Status], ', '))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Current Month expression (i.e. Apr-2015 in this example) is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if((concat( {$&amp;lt;MonthYear={"$(=max(MonthYear))"}, [Factory Status] = &amp;gt;}DISTINCT [Factory Status], ', '))&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;(concat( {$&amp;lt;Month=, Year=, MonthYear = {"$(=Date(addmonths(max(MonthYear), -1), 'MMM-YYYY'))"}, [Factory Status] = &amp;gt;}DISTINCT [Factory Status], ', ')),&lt;/P&gt;&lt;P&gt;(concat( {$&amp;lt;MonthYear={"$(=max(MonthYear))"}, [Factory Status] = &amp;gt;}DISTINCT [Factory Status], ', ')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, what I now need to be able to do is to allow the user to select 2 months of their choosing to compare - so the 2 months in the table may not be consecutive months. For example, the user may want to compare factory status changes between Jan-2015 and Sep-2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been wracking my brain and can't think how to do this... thought about creatin a second calendar in the script, or using variables and input boxes, but I just can't get anywhere with it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers would be hugely appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Danielle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 09:24:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-Months-Selected-by-User/m-p/949005#M467340</guid>
      <dc:creator>danielle_v</dc:creator>
      <dc:date>2015-11-20T09:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 Months Selected by User</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-Months-Selected-by-User/m-p/949006#M467341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Use comparative analysis. This way no need to create another calendar.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Miskin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 09:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-Months-Selected-by-User/m-p/949006#M467341</guid>
      <dc:creator>miskinmaz</dc:creator>
      <dc:date>2015-11-20T09:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 Months Selected by User</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-Months-Selected-by-User/m-p/949007#M467342</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;I believe comparative analysis (Using Comparestate for same fields) can help you to compare the two months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 09:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-Months-Selected-by-User/m-p/949007#M467342</guid>
      <dc:creator>arasantorule</dc:creator>
      <dc:date>2015-11-20T09:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 Months Selected by User</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-Months-Selected-by-User/m-p/949008#M467343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, it's maybe helpfull&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/48508"&gt;Comparative Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 10:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-Months-Selected-by-User/m-p/949008#M467343</guid>
      <dc:creator>t_chetirbok</dc:creator>
      <dc:date>2015-11-20T10:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 Months Selected by User</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-Months-Selected-by-User/m-p/949009#M467344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your quick responses!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well on my way to completing this task now using comparative analysis, which I had not discovered before!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 10:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-Months-Selected-by-User/m-p/949009#M467344</guid>
      <dc:creator>danielle_v</dc:creator>
      <dc:date>2015-11-20T10:48:46Z</dc:date>
    </item>
  </channel>
</rss>

