<?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: Filter Months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459600#M794487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me with a single expression, instead of conditionally enabling/disabling the expressions.&lt;/P&gt;&lt;P&gt;&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, 05 Jan 2018 12:57:28 GMT</pubDate>
    <dc:creator>surajap123</dc:creator>
    <dc:date>2018-01-05T12:57:28Z</dc:date>
    <item>
      <title>Filter Months</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459598#M794485</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 want to show last 6 months and last 12 months data to users using buttons(6 months button and 12 months button).&lt;/P&gt;&lt;P&gt;By default we want to show the complete data.&lt;/P&gt;&lt;P&gt;I have pivot table with Month-Year as a horizontal dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459598#M794485</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Months</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459599#M794486</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;&lt;/P&gt;&lt;P&gt;create 2 expressions 1 for 12 months &amp;amp; another for 6 Months then enable them using a variable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For last 12 Months:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date={ "&amp;gt;=$(=Date(addMonths(max(Date),-12),'DD/MM/YYYY')) &amp;lt;= $(=Date(addMonths(max(Date)),'DD/MM/YYYY'))"}&amp;gt;}Margin)/&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date={ "&amp;gt;=$(=Date(addMonths(max(Date),-12),'DD/MM/YYYY')) &amp;lt;= $(=Date(addMonths(max(Date)),'DD/MM/YYYY'))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Last 6 months:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date={ "&amp;gt;=$(=Date(addMonths(max(Date),-6),'DD/MM/YYYY')) &amp;lt;= $(=Date(addMonths(max(Date)),'DD/MM/YYYY'))"}&amp;gt;}Margin)/&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date={ "&amp;gt;=$(=Date(addMonths(max(Date),-6),'DD/MM/YYYY')) &amp;lt;= $(=Date(addMonths(max(Date)),'DD/MM/YYYY'))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;please find the attached application&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 11:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459599#M794486</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2018-01-05T11:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Months</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459600#M794487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me with a single expression, instead of conditionally enabling/disabling the expressions.&lt;/P&gt;&lt;P&gt;&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, 05 Jan 2018 12:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459600#M794487</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2018-01-05T12:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Months</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459601#M794488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Create a variable to replace -12/-6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;sum({&amp;lt;Date={ "&amp;gt;=$(=Date(addMonths(max(Date), $(vLimit)),'DD/MM/YYYY')) &amp;lt;= $(=Date(addMonths(max(Date)),'DD/MM/YYYY'))"}&amp;gt;}Margin)/&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;sum({&amp;lt;Date={ "&amp;gt;=$(=Date(addMonths(max(Date),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;$(vLimit)&lt;/SPAN&gt;),'DD/MM/YYYY')) &amp;lt;= $(=Date(addMonths(max(Date)),'DD/MM/YYYY'))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Set button trigger as&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;for Last 12 months :&amp;nbsp; vlimit=-12&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;For Last 6 Month&amp;nbsp; : Vlimit=-6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 15:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459601#M794488</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2018-01-05T15:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Months</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459602#M794489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I notice that the expression is showing 1 additional month.&lt;/P&gt;&lt;P&gt;eg- If i select 6 months button i see 7 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do u think, if i change -6 to -5, is the correct approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 05:28:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459602#M794489</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2018-01-08T05:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Months</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459603#M794490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Yes , you can change it to -5&amp;nbsp; or&amp;nbsp;&amp;nbsp; change '&amp;gt;=' to '&amp;gt;' &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 06:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459603#M794490</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2018-01-08T06:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Months</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459604#M794491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. Sorry to bother again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realised that my requirement not just to filter locally in the chart, but in the whole dashboard.&lt;/P&gt;&lt;P&gt;So when user click on 12 months button, the selection has to happen on MonthYear field, so that the whole dashboard is reflected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can be achieved by putting the set analysis expression in the button and keeping the chart expression unchanged. ie. sum(Margin)/sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to put the below expression in the button using SelectInField trigger, but it is not working.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&amp;gt;=$(=Date(addMonths(max(Date), $(vLimit)),'DD/MM/YYYY')) &amp;lt;= $(=Date(addMonths(max(Date)),'DD/MM/YYYY'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 06:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459604#M794491</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2018-01-08T06:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Months</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459605#M794492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use addmonths() and write the exp you will get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 07:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459605#M794492</guid>
      <dc:creator>satheshreddy</dc:creator>
      <dc:date>2018-01-08T07:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Months</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459606#M794493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written the below expression in a button(to select last 6 months) with action Select In Field-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthYear&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;='&amp;gt;='$(=Date(addMonths(max(Date), -5),'DD/MM/YYYY')) &amp;lt;= $(=Date(addMonths(max(Date)),'DD/MM/YYYY'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;But his is not working. !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Please see bottom chart in the app&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 07:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459606#M794493</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2018-01-08T07:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Months</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459607#M794494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use the attached application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a trigger . Go to Document Properties-&amp;gt; Triggers-&amp;gt; On Open, which will show the chart with no default condition.&lt;/P&gt;&lt;P&gt;For other i have used the 6 Month and 12 Months Text object.&lt;/P&gt;&lt;P&gt;Please check and confirm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 08:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459607#M794494</guid>
      <dc:creator>kamalqlik</dc:creator>
      <dc:date>2018-01-08T08:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Months</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459608#M794495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi suraj,&lt;/P&gt;&lt;P&gt;use triggers for this case try below expressions in "select in field trigger"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;For 6 Months&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= '&amp;lt;='&amp;amp;max(MYear) &amp;amp;'&amp;gt;='&amp;amp; date(addmonths(max(MYear),-5),'MMYYYY')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;For 12 Months&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= '&amp;lt;='&amp;amp;max(MYear) &amp;amp;'&amp;gt;='&amp;amp; date(addmonths(max(MYear),-11),'MMYYYY')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR simply use this exp &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field : Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;search string : ='&amp;gt;='&amp;amp; Date(addMonths(max(Date),-5),'DD/MM/YYYY') &amp;amp;'&amp;lt;='&amp;amp; Date(max(Date),'DD/MM/YYYY')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached application for your reference purpose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 08:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459608#M794495</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2018-01-08T08:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Months</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459609#M794496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help. you are awesome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 09:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Months/m-p/1459609#M794496</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2018-01-08T09:02:05Z</dc:date>
    </item>
  </channel>
</rss>

