<?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: Generate last 6 months for an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generate-last-6-months-for-an-expression/m-p/69494#M768239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I do have a single date field where i convert it to a MonthYear field. &lt;/P&gt;&lt;P&gt;Date field is 'Status_Date'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2018 05:52:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-25T05:52:07Z</dc:date>
    <item>
      <title>Generate last 6 months for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-last-6-months-for-an-expression/m-p/69491#M768235</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 have an expression: &lt;STRONG&gt;if(Count(Customers)/SalesTarget&amp;gt;1,1,&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Count(Customers))&lt;/STRONG&gt;. How can i filter last 6 months data using set expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SalesTarget - Refers to the actual target to gain customers&lt;/P&gt;&lt;P&gt;Customers - Refers to the current number of customers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, I need to use set expression to show the last 6 months data. Kindly provide a solution.&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/Generate-last-6-months-for-an-expression/m-p/69491#M768235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Generate last 6 months for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-last-6-months-for-an-expression/m-p/69492#M768236</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;do you have a Year_month field or Month_year field on your model? otherwise what are your Date related fields ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2018 15:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-last-6-months-for-an-expression/m-p/69492#M768236</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-06-22T15:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Generate last 6 months for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-last-6-months-for-an-expression/m-p/69493#M768238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like below assuming you need number of customers in last 6 months for the condition specified using a set expression -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Count(Customers)/SalesTarget&amp;gt;1,1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Count({$&amp;lt;MonthField={"=if(MonthField&amp;gt;=MonthStart(addMonths(today(),-6)) AND &lt;STRONG&gt;MonthField&amp;lt;=today() &lt;/STRONG&gt;,1,0)=1"}&amp;gt;}Customers)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In case you would need your if condition as well to be based on last 6 months, you can copy the same set into if as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Count&lt;STRONG&gt;({$&amp;lt;MonthField={"=if(MonthField&amp;gt;=MonthStart(addMonths(today(),-6)) AND &lt;/STRONG&gt;&lt;STRONG&gt;MonthField&amp;lt;=today() &lt;/STRONG&gt;&lt;STRONG&gt;,1,0)=1"}&amp;gt;}Customers)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SalesTarget&amp;gt;1,1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Count({$&amp;lt;MonthField={"=if(MonthField&amp;gt;=MonthStart(addMonths(today(),-6)) AND &lt;STRONG&gt;MonthField&amp;lt;=today() &lt;/STRONG&gt;,1,0)=1"}&amp;gt;}Customers)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2018 15:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-last-6-months-for-an-expression/m-p/69493#M768238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-22T15:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Generate last 6 months for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-last-6-months-for-an-expression/m-p/69494#M768239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I do have a single date field where i convert it to a MonthYear field. &lt;/P&gt;&lt;P&gt;Date field is 'Status_Date'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 05:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-last-6-months-for-an-expression/m-p/69494#M768239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-25T05:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Generate last 6 months for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-last-6-months-for-an-expression/m-p/69495#M768240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Venkat,&lt;/P&gt;&lt;P&gt;Will try this expression and post the feedback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 05:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-last-6-months-for-an-expression/m-p/69495#M768240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-25T05:52:57Z</dc:date>
    </item>
  </channel>
</rss>

