<?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: Logic in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Logic/m-p/1387665#M799887</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;First you need to create the Month_Year format field date like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(MakeDate(year,month),'YYYYMM') as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;after that you need this expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Date ={"&amp;gt;=$(=Date(addmonths(Max(Date), -13),'YYYYMM')) &amp;lt;=$(=Date(addmonths(Max(Date), -1),'YYYYMM'))"} &amp;gt;} data)&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;STRONG&gt;find attached:&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;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2017 10:47:03 GMT</pubDate>
    <dc:creator>YoussefBelloum</dc:creator>
    <dc:date>2017-12-12T10:47:03Z</dc:date>
    <item>
      <title>Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Logic/m-p/1387660#M799882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expertise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I&amp;nbsp; have a line chart Iam using the below expression to display the number of months. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Month = {"&amp;gt;=$(=Max(Month)-8) &amp;lt;=$(=Num(Month(Today())))"}&amp;gt;} Tickets)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The above&amp;nbsp; expression will display me exactly 9 months&amp;nbsp; and also tested for 9 , 10 , 111 , 12 months accordingly..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But this is not giving me 13 months..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;if i use the below condition &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Month = {"&amp;gt;=$(=Max(Month)-13) &amp;lt;=$(=Num(Month(Today())))"}&amp;gt;} Tickets)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;by using the above expression still i get the line chart diplayed from 1 to 12 ...where as it has to display from 12 to 12 ( dec-2016 to dec2017)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;as shown in the screenshot i have year from 2010 till 2017 and this is the month in number i have ..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Dateyermonth.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186591_Dateyermonth.PNG" style="height: 206px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;in dimension also i am using Month..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;How do i achive this ..need your help &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance &lt;/SPAN&gt;&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/Logic/m-p/1387660#M799882</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Logic/m-p/1387661#M799883</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;for the 13 month rolling you can try to user&lt;STRONG&gt; YearMonth field instead of Month &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;try to create year month at back end script,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Date(Date(Date#(Month,'MMM-YY'),'DD-MM-YYYY'),'MMM-YY') as YearMonth,&lt;/STRONG&gt;&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;&lt;SPAN style="font-size: 13.3333px;"&gt;and u r set expression like below,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;YearMonth ={"&amp;gt;=$(=Date(addmonths(Max(YearMonth), -13), 'MMM-YY')) &amp;lt;=$(=Date(addmonths(Max(YearMonth), -1),&amp;nbsp; 'MMM-YY'))"} &amp;gt;} Tickets)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 10:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic/m-p/1387661#M799883</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-12-12T10:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Logic/m-p/1387662#M799884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would rather use &lt;STRONG&gt;Date &lt;/STRONG&gt;field like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;&lt;STRONG&gt;Date&lt;/STRONG&gt; = {"&amp;gt;=$(=&lt;STRONG&gt;MonthStart(Max(Date),-13))&lt;/STRONG&gt; &amp;lt;=$(=&lt;STRONG&gt;MonthStart&lt;/STRONG&gt;(Today()&lt;STRONG&gt;,-1&lt;/STRONG&gt;))"}&amp;gt;} Tickets)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 10:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic/m-p/1387662#M799884</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-12-12T10:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Logic/m-p/1387663#M799885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Devarasu ..&lt;/P&gt;&lt;P&gt;I have the below format date ..as shown in screenshot &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="monthyear.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186612_monthyear.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;And iam trying to convert it like this but this year field is showing blank ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do i need to make any changes ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 10:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic/m-p/1387663#M799885</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2017-12-12T10:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Logic/m-p/1387664#M799886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Devarasu ,,&lt;/P&gt;&lt;P&gt;Iam trying to restrict the Sold Date by using this login in the script is this correct? &lt;/P&gt;&lt;P&gt;It reloads but doesnt show any out put ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;where Sold_Date &amp;gt; date(1/12/2015,'DD/MM/YYYY' and Sold_Date &amp;lt;= date(1/12/2017,'DD/MM/YYYY'));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 10:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic/m-p/1387664#M799886</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2017-12-12T10:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Logic/m-p/1387665#M799887</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;First you need to create the Month_Year format field date like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(MakeDate(year,month),'YYYYMM') as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;after that you need this expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Date ={"&amp;gt;=$(=Date(addmonths(Max(Date), -13),'YYYYMM')) &amp;lt;=$(=Date(addmonths(Max(Date), -1),'YYYYMM'))"} &amp;gt;} data)&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;STRONG&gt;find attached:&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;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 10:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic/m-p/1387665#M799887</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2017-12-12T10:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Logic/m-p/1387666#M799888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rolling 13 month using set analysis&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Year=, Quarter=, Month=, Week=, Date={'&amp;gt;=$(=MonthStart(Max(Date), -13))&amp;lt;=$(=Date(Max(Date)))'}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Tickets&lt;/SPAN&gt;)&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;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;for the script method you can try restrict data like below,&lt;/P&gt;&lt;P&gt;let hDate = date(today()+(day(today())-1));&lt;/P&gt;&lt;P&gt;let dDate = date(MonthStart(today(),-12));&lt;/P&gt;&lt;P&gt;load * FROM table.qvd (qvd) where date(Date)&amp;gt;=date('$(dDate)') and date(Date)&amp;lt;=date('$(hDate)');&lt;/P&gt;&lt;P&gt;more steps&amp;nbsp; check this thread.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/15676"&gt;Last 3 months' data in load script&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 10:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic/m-p/1387666#M799888</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-12-12T10:49:21Z</dc:date>
    </item>
  </channel>
</rss>

