<?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 Rollback to 30days in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rollback-to-30days/m-p/1116722#M908074</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;We are using the dates in the report from monthstart to till date&amp;nbsp; and we need to get the date range from exactly last 30days. i.e. 14/05/2016 to 14/06/2016 dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>nareshthavidishetty</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Rollback to 30days</title>
      <link>https://community.qlik.com/t5/QlikView/Rollback-to-30days/m-p/1116722#M908074</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;We are using the dates in the report from monthstart to till date&amp;nbsp; and we need to get the date range from exactly last 30days. i.e. 14/05/2016 to 14/06/2016 dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&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/Rollback-to-30days/m-p/1116722#M908074</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback to 30days</title>
      <link>https://community.qlik.com/t5/QlikView/Rollback-to-30days/m-p/1116723#M908075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum({&amp;lt;Year=, Month=, Quarter=, Week=, Date= {"&amp;gt;=$(=Date(AddMonths(max(Date),-1),'DD-MM-YYYY')) &amp;lt;=$(=Date(max(Date),'DD-MM-YYYY'))"}&amp;gt;}YourFieldExpressin)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 06:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rollback-to-30days/m-p/1116723#M908075</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2016-06-15T06:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback to 30days</title>
      <link>https://community.qlik.com/t5/QlikView/Rollback-to-30days/m-p/1116724#M908076</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;We were using date as dimension..and we need to sort the data at dimension level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 06:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rollback-to-30days/m-p/1116724#M908076</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2016-06-15T06:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback to 30days</title>
      <link>https://community.qlik.com/t5/QlikView/Rollback-to-30days/m-p/1116725#M908077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Below is the logic used in dimension to get MTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(App_Date&amp;gt;=date(MonthStart(today()-1),'M/D/YYYY') and App_Date&amp;lt;date(today(),'M/D/YYYY'),App_Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives data from 6/1/2016 to 6/14/2016..required date range&amp;nbsp; 6/14/2016 rollback to 5/15/2016 means 30 days rollback (logic is to be dynamic)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 06:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rollback-to-30days/m-p/1116725#M908077</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2016-06-15T06:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback to 30days</title>
      <link>https://community.qlik.com/t5/QlikView/Rollback-to-30days/m-p/1116726#M908078</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 like this&lt;/P&gt;&lt;P&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;=if(App_Date&amp;gt;=date(AddMonths(today(),-1),'M/D/YYYY') and App_Date&amp;lt;date(today(),'M/D/YYYY'),App_Date)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 07:20:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rollback-to-30days/m-p/1116726#M908078</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2016-06-15T07:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback to 30days</title>
      <link>https://community.qlik.com/t5/QlikView/Rollback-to-30days/m-p/1116727#M908079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the date dimension is as granular to the day or month, then this will have to be done in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can provide a sample qvw or reduced on I will assist you.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 08:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rollback-to-30days/m-p/1116727#M908079</guid>
      <dc:creator>pho3nix90</dc:creator>
      <dc:date>2016-06-15T08:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback to 30days</title>
      <link>https://community.qlik.com/t5/QlikView/Rollback-to-30days/m-p/1116728#M908080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if this will work without knowing your exact data schema and what other dimensions you are using and expressions, however the code you posted below&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14659786978685106 jive_text_macro" jivemacro_uid="_14659786978685106"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=if(App_Date&amp;gt;=date(MonthStart(today()-1),'M/D/YYYY') and App_Date&amp;lt;date(today(),'M/D/YYYY'),App_Date)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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: 13px;"&gt;should be&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1465978720579996" jivemacro_uid="_1465978720579996"&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 12pt;"&gt;=if(App_Date&amp;gt;=date(today()-30,'M/D/YYYY') and App_Date&amp;lt;date(today(),'M/D/YYYY'),App_Date)&lt;/SPAN&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason being the following, if we assume the date is "14-06-2016" it will minus 1 day which will be "13-06-2016", then you are using a function to return monthstart which will be "01-06-2016", however, you want to do exact 30 date span, so substracting only 30 without month start will give you the results you want, if not you will have to post an example. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 08:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rollback-to-30days/m-p/1116728#M908080</guid>
      <dc:creator>pho3nix90</dc:creator>
      <dc:date>2016-06-15T08:18:48Z</dc:date>
    </item>
  </channel>
</rss>

