<?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: Restrict Date Dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Restrict-Date-Dimension/m-p/1167126#M21277</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;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is working fine for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check your date formats&amp;nbsp; i.e&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whether they are in number or text&amp;nbsp;&amp;nbsp; , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check whether the Data actually exists for previous 60 days or 2 months &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date_Floor1={'&amp;gt;=$(=Date(ADDMONTHS(max(Date_Floor1),-2),'DD/MM/YYYY'))&amp;lt;=$(=Date(max(Date_Floor1),'DD/MM/YYYY'))'}&amp;gt;} UnBlendedCost)&lt;/P&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;&lt;P&gt;or&lt;/P&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;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;=Sum({&amp;lt;Date_Floor1={'&amp;gt;=$(=&lt;SPAN style="color: #0000ff;"&gt;Date#(&lt;/SPAN&gt;ADDMONTHS(max(Date_Floor1),-2),'DD/MM/YYYY'))&amp;lt;=$(=&lt;SPAN style="color: #0000ff;"&gt;Date#&lt;/SPAN&gt;(max(Date_Floor1),'DD/MM/YYYY'))'}&amp;gt;} UnBlendedCost)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jul 2016 12:15:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-15T12:15:18Z</dc:date>
    <item>
      <title>Restrict Date Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-Date-Dimension/m-p/1167122#M21273</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 a Cost measure and Date field , I need to create a Line chart where data will come only for last two month. So the point here is ,I need to restrict date dimension to last 2 months with respect to Maximum date presented in data not by Today()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 11:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-Date-Dimension/m-p/1167122#M21273</guid>
      <dc:creator />
      <dc:date>2016-07-15T11:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Date Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-Date-Dimension/m-p/1167123#M21274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you searched already for solutions to this problem? You're hardly the first with this sort of question: &lt;A href="/t5/forums/searchpage/tab/message?q=show last month"&gt;https://community.qlik.com/search.jspa?q=show+last+month&lt;/A&gt;‌. Read this blog post: &lt;A href="https://community.qlik.com/qlik-blogpost/3157"&gt;Relative Calendar Fields&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 11:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-Date-Dimension/m-p/1167123#M21274</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-15T11:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Date Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-Date-Dimension/m-p/1167124#M21275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d; background: white;"&gt;Hi try this in ' AddCalculated dimension'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; background: white; font-size: 10.0pt; font-family: 'Helvetica',sans-serif;"&gt;=Sum(&lt;STRONG&gt;{&amp;lt;DateField = {"&amp;gt;=$(=Date(&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;max(&lt;STRONG style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333330154419px;"&gt;DateField&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;-60,'&lt;SPAN style="color: #ff9900;"&gt;MM/DD/YYYY'&lt;/SPAN&gt;))&amp;lt;=$(=Date(max(&lt;STRONG style="color: #3d3d3d; font-family: Helvetica, sans-serif; font-size: 13.3333330154419px;"&gt;DateField&lt;/STRONG&gt;),'&lt;SPAN style="color: #ff6600;"&gt;MM/DD/YYYY'&lt;/SPAN&gt;)))"}}&lt;/STRONG&gt; Cost)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*User appropriate date format :&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 11:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-Date-Dimension/m-p/1167124#M21275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-15T11:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Date Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-Date-Dimension/m-p/1167125#M21276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My date field is created by below statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(floor(UsageStartDate),'DD/MM/YYYY') as Date_Floor1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a calculated measure as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Date_Floor1 = {"&amp;gt;=$(=Date(max(Date_Floor1)-60,'DD/MM/YYYY'))&amp;lt;=$(=Date(max(Date_Floor1),'DD/MM/YYYY')))"}} UnBlendedCost)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the&amp;nbsp; drag a line chart , select Date a dimension and above measure as Measure but it is giving me nothing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 11:40:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-Date-Dimension/m-p/1167125#M21276</guid>
      <dc:creator />
      <dc:date>2016-07-15T11:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Date Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-Date-Dimension/m-p/1167126#M21277</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;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is working fine for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check your date formats&amp;nbsp; i.e&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whether they are in number or text&amp;nbsp;&amp;nbsp; , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check whether the Data actually exists for previous 60 days or 2 months &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date_Floor1={'&amp;gt;=$(=Date(ADDMONTHS(max(Date_Floor1),-2),'DD/MM/YYYY'))&amp;lt;=$(=Date(max(Date_Floor1),'DD/MM/YYYY'))'}&amp;gt;} UnBlendedCost)&lt;/P&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;&lt;P&gt;or&lt;/P&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;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;=Sum({&amp;lt;Date_Floor1={'&amp;gt;=$(=&lt;SPAN style="color: #0000ff;"&gt;Date#(&lt;/SPAN&gt;ADDMONTHS(max(Date_Floor1),-2),'DD/MM/YYYY'))&amp;lt;=$(=&lt;SPAN style="color: #0000ff;"&gt;Date#&lt;/SPAN&gt;(max(Date_Floor1),'DD/MM/YYYY'))'}&amp;gt;} UnBlendedCost)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 12:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-Date-Dimension/m-p/1167126#M21277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-15T12:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Date Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-Date-Dimension/m-p/1167127#M21278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mr. Allu,&lt;/P&gt;&lt;P&gt;Hope you are doing good!&lt;/P&gt;&lt;P&gt;See Initially I was trying to work as&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;set vDate =&amp;nbsp; max(Date_Floor1 -61); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;which was giving me correct date as two months back from maximum date in KPI view but when I put "&lt;STRONG&gt;= ="&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(&lt;SPAN style="font-size: 13.3333px;"&gt;set vDate = = max(Date_Floor1 -61);&lt;/SPAN&gt;) and use this variable in the measure it was giving me 0. thats why I created this Ticket.&lt;/P&gt;&lt;P&gt;Few days back when I was using addmonths function to calculate Month Over Month it was giving me 0 when I select two months value in filter. So sometime Addmonth works and sometime Max(date)- days&amp;nbsp; works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please add your notes on this concern. what exactly I am missing or using wrong &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 05:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-Date-Dimension/m-p/1167127#M21278</guid>
      <dc:creator />
      <dc:date>2016-07-19T05:53:10Z</dc:date>
    </item>
  </channel>
</rss>

