<?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 Custom month set analysis for pre and post period display in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Custom-month-set-analysis-for-pre-and-post-period-display/m-p/1944951#M77876</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I want to show pre and post 3 months data for a selected month in line chart. eg if selected month=Jan 2019, pre period will be Oct 2018, Nov 2018, Dec 2018 and post period will be Feb 2019, Mar 2019, Apr 2019.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My issue here was, if I select multiple non consecutive months. eg Jan 2019, Feb 2019 and Aug 2019, then I am able to write set analysis on min and max selected months for showing pre and post period. but my current period is showing all months from Jan 2019 till Aug 2019.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to show just the selected months for current period. Any help would be appreciated.&lt;/P&gt;
&lt;P&gt;Currently used set analysis expression:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;sum({$&amp;lt;[DATE]={"&amp;gt;=$(=Date(monthstart(addmonths(min([Training start date]),-3))))&amp;lt;=$(=Date(Monthend(addmonths(max([Training start date]),3))))"}, [Training start Month]=&amp;gt;}[Amount])&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Aditya&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2022 08:14:07 GMT</pubDate>
    <dc:creator>Aditya_Chitale</dc:creator>
    <dc:date>2022-06-17T08:14:07Z</dc:date>
    <item>
      <title>Custom month set analysis for pre and post period display</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-month-set-analysis-for-pre-and-post-period-display/m-p/1944951#M77876</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I want to show pre and post 3 months data for a selected month in line chart. eg if selected month=Jan 2019, pre period will be Oct 2018, Nov 2018, Dec 2018 and post period will be Feb 2019, Mar 2019, Apr 2019.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My issue here was, if I select multiple non consecutive months. eg Jan 2019, Feb 2019 and Aug 2019, then I am able to write set analysis on min and max selected months for showing pre and post period. but my current period is showing all months from Jan 2019 till Aug 2019.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to show just the selected months for current period. Any help would be appreciated.&lt;/P&gt;
&lt;P&gt;Currently used set analysis expression:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;sum({$&amp;lt;[DATE]={"&amp;gt;=$(=Date(monthstart(addmonths(min([Training start date]),-3))))&amp;lt;=$(=Date(Monthend(addmonths(max([Training start date]),3))))"}, [Training start Month]=&amp;gt;}[Amount])&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 08:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-month-set-analysis-for-pre-and-post-period-display/m-p/1944951#M77876</guid>
      <dc:creator>Aditya_Chitale</dc:creator>
      <dc:date>2022-06-17T08:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom month set analysis for pre and post period display</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-month-set-analysis-for-pre-and-post-period-display/m-p/1944958#M77880</link>
      <description>&lt;P&gt;you cannot have one expression do both jobs&lt;/P&gt;
&lt;P&gt;1) one expression for prev 3 and post 3 months&lt;/P&gt;
&lt;P&gt;2)another expression for current selected period&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would need to do an if() block&lt;/P&gt;
&lt;P&gt;=if(getselectedcount(yearmonth)&amp;gt;1&amp;nbsp; &amp;nbsp;// check if more than one yearmonth is selected&lt;/P&gt;
&lt;P&gt;, expression for current period&lt;/P&gt;
&lt;P&gt;,expression for pre 3 and post 3 months )&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 08:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-month-set-analysis-for-pre-and-post-period-display/m-p/1944958#M77880</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-06-17T08:28:37Z</dc:date>
    </item>
  </channel>
</rss>

