<?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: Rolling 12 Months Flag not working. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rolling-12-Months-Flag-not-working/m-p/1383609#M31609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot. I missed it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Dec 2017 21:57:10 GMT</pubDate>
    <dc:creator>nithin_miryala</dc:creator>
    <dc:date>2017-12-11T21:57:10Z</dc:date>
    <item>
      <title>Rolling 12 Months Flag not working.</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-12-Months-Flag-not-working/m-p/1383604#M31604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a flag in the Data modal for Rolling 12 months with respect to Current Quarter start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to test the expression i have wrote it in a list box and the logic feels correct to me and i connot figure what is wrong here,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;if(date(MonthYear)&amp;gt;=Addmonths(QuarterStart( Max(MonthYear)),-12) and date(MonthYear)&amp;lt;QuarterStart( Max(MonthYear)) ,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to expression all the Dates between 10/1/2016 and 10/1/2017 should be 1 and rest of them should be 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186486_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also attached the Test application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly let me know you thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nithin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 20:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-12-Months-Flag-not-working/m-p/1383604#M31604</guid>
      <dc:creator>nithin_miryala</dc:creator>
      <dc:date>2017-12-11T20:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Months Flag not working.</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-12-Months-Flag-not-working/m-p/1383605#M31605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(date(MonthYear)&amp;gt;=Addmonths(QuarterStart( Max(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; MonthYear)),-12) and date(MonthYear)&amp;lt;QuarterStart( Max(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; MonthYear)) ,1,0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since list box has MonthYear as dimension, the Max(MonthYear) = MonthYear.... to get Max MonthYear across all MonthYear, you need to use TOTAL Qualifier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 20:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-12-Months-Flag-not-working/m-p/1383605#M31605</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-11T20:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Months Flag not working.</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-12-Months-Flag-not-working/m-p/1383606#M31606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good one .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 20:53:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-12-Months-Flag-not-working/m-p/1383606#M31606</guid>
      <dc:creator>nithin_miryala</dc:creator>
      <dc:date>2017-12-11T20:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Months Flag not working.</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-12-Months-Flag-not-working/m-p/1383607#M31607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried to write the expression in backend in the following manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;CalendarMax=10/1/2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; if(DOSDateDT&amp;gt;=Addmonths(QuarterStart( $(CalendarMax)),-12) and DOSDateDT&amp;lt;QuarterStart( $(CalendarMax)) ,1,0) as Rolling12Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but still the column returns 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 21:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-12-Months-Flag-not-working/m-p/1383607#M31607</guid>
      <dc:creator>nithin_miryala</dc:creator>
      <dc:date>2017-12-11T21:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Months Flag not working.</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-12-Months-Flag-not-working/m-p/1383608#M31608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with adding single quotes around your variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(DOSDateDT&amp;gt;=Addmonths(QuarterStart(&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;'&lt;/SPAN&gt;$(CalendarMax)&lt;STRONG style=": ; color: #ff0000; font-size: 14pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'&lt;/STRONG&gt;),-12) and DOSDateDT&amp;lt;QuarterStart(&lt;STRONG style=": ; color: #ff0000; font-size: 14pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'&lt;/STRONG&gt;$(CalendarMax)&lt;STRONG style=": ; color: #ff0000; font-size: 14pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'&lt;/STRONG&gt;) ,1,0) as Rolling12Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 21:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-12-Months-Flag-not-working/m-p/1383608#M31608</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-11T21:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Months Flag not working.</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-12-Months-Flag-not-working/m-p/1383609#M31609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot. I missed it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 21:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-12-Months-Flag-not-working/m-p/1383609#M31609</guid>
      <dc:creator>nithin_miryala</dc:creator>
      <dc:date>2017-12-11T21:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Months Flag not working.</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-12-Months-Flag-not-working/m-p/1383610#M31610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem at all &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 21:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-12-Months-Flag-not-working/m-p/1383610#M31610</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-11T21:58:26Z</dc:date>
    </item>
  </channel>
</rss>

