<?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 28 first times with expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rollback-28-first-times-with-expression/m-p/1081875#M933315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to do a rollback for the first 28 times/days in which &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Promo ={0} ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I use the following expression to calculate an average rolling back 28 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;((Sum({&amp;lt;Promo ={0},DateTest={"&amp;gt;=$(=Date(Today() - 30)) &amp;lt;$(=Date(Today()-2))"}&amp;gt;} [Prix de vente TTC]))/28 )&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;My problem if t&lt;SPAN style="font-size: 13.3333px;"&gt;he first 28 days &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Promo &amp;lt;&amp;gt; {0} for example , the resultas will be false ? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Rollback 28 first times with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rollback-28-first-times-with-expression/m-p/1081875#M933315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to do a rollback for the first 28 times/days in which &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Promo ={0} ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I use the following expression to calculate an average rolling back 28 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;((Sum({&amp;lt;Promo ={0},DateTest={"&amp;gt;=$(=Date(Today() - 30)) &amp;lt;$(=Date(Today()-2))"}&amp;gt;} [Prix de vente TTC]))/28 )&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;My problem if t&lt;SPAN style="font-size: 13.3333px;"&gt;he first 28 days &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Promo &amp;lt;&amp;gt; {0} for example , the resultas will be false ? &lt;/SPAN&gt;&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/Rollback-28-first-times-with-expression/m-p/1081875#M933315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback 28 first expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rollback-28-first-times-with-expression/m-p/1081876#M933316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Promo = 0, &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;((Sum({&amp;lt;Promo ={0},DateTest={"&amp;gt;=$(=Date(Today() - 30)) &amp;lt;$(=Date(Today()-2))"}&amp;gt;} [Prix de vente TTC]))/28))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 11:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rollback-28-first-times-with-expression/m-p/1081876#M933316</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-03T11:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback 28 first expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rollback-28-first-times-with-expression/m-p/1081877#M933317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; Date(Today() - 30) is the problem , the value 30 should be dynamically changed . In case in rolling back 60 days I will get 28 days in which &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Promo= {0} so my expression will be &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;((Sum({&amp;lt;Promo ={0},DateTest={"&amp;gt;=$(=Date(Today() - 60)) &amp;lt;$(=Date(Today()-2))"}&amp;gt;} [Prix de vente TTC]))/48 )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 11:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rollback-28-first-times-with-expression/m-p/1081877#M933317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-03T11:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback 28 first expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rollback-28-first-times-with-expression/m-p/1081878#M933318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share some sample data to see what you are trying to do? It is rather difficult to understand what you are trying to do, just by looking at your expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 11:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rollback-28-first-times-with-expression/m-p/1081878#M933318</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-03T11:31:58Z</dc:date>
    </item>
  </channel>
</rss>

