<?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: Promotion event wise Data - last 'n' Days in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Promotion-event-wise-Data-last-n-Days/m-p/1316039#M28253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sadasiva!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with 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: 13px;"&gt;Week(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;promo_to_Date&lt;/SPAN&gt;) - 7&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;&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;but you will have trouble at the start of the year&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jul 2017 13:26:08 GMT</pubDate>
    <dc:creator>juan_patrick</dc:creator>
    <dc:date>2017-07-03T13:26:08Z</dc:date>
    <item>
      <title>Promotion event wise Data - last 'n' Days</title>
      <link>https://community.qlik.com/t5/App-Development/Promotion-event-wise-Data-last-n-Days/m-p/1316038#M28252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of promotion events, Promo_start_date and Promo_end_date, lets consider i am having promotion events for last 3 years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To show the current year and last year Promo sales, i am using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;year={$(=max(Year))}&amp;gt;}sales)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &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;Sum({&amp;lt;year={$(=max(Year)-1)}&amp;gt;}sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next i need to show last 7 days sale. When i use Max(promo_to_Date)-7, it's not throwing desired output, how can i build the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help me on this. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sadasiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 13:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Promotion-event-wise-Data-last-n-Days/m-p/1316038#M28252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-03T13:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Promotion event wise Data - last 'n' Days</title>
      <link>https://community.qlik.com/t5/App-Development/Promotion-event-wise-Data-last-n-Days/m-p/1316039#M28253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sadasiva!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with 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: 13px;"&gt;Week(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;promo_to_Date&lt;/SPAN&gt;) - 7&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;&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;but you will have trouble at the start of the year&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 13:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Promotion-event-wise-Data-last-n-Days/m-p/1316039#M28253</guid>
      <dc:creator>juan_patrick</dc:creator>
      <dc:date>2017-07-03T13:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Promotion event wise Data - last 'n' Days</title>
      <link>https://community.qlik.com/t5/App-Development/Promotion-event-wise-Data-last-n-Days/m-p/1316040#M28254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need to consider the year aswell, I am looking current and last year numbers by promo event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sadasiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 13:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Promotion-event-wise-Data-last-n-Days/m-p/1316040#M28254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-03T13:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Promotion event wise Data - last 'n' Days</title>
      <link>https://community.qlik.com/t5/App-Development/Promotion-event-wise-Data-last-n-Days/m-p/1316041#M28255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sadasiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can tho this in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTONUMBER( year_field &amp;amp; '-' &amp;amp; month_field &amp;amp; '-' &amp;amp; WEEK(date_field))&amp;nbsp; AS new_field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can rest 7 to the new_field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;¡Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 13:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Promotion-event-wise-Data-last-n-Days/m-p/1316041#M28255</guid>
      <dc:creator>juan_patrick</dc:creator>
      <dc:date>2017-07-03T13:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Promotion event wise Data - last 'n' Days</title>
      <link>https://community.qlik.com/t5/App-Development/Promotion-event-wise-Data-last-n-Days/m-p/1316042#M28256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have linked promotion dates to my Posting date, from there am picking the sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the problem was every promotion start in different date and end with different dates. When i am seeing the current year sales, overall i am able to view. How can i show last 7 days of every promotion days by promotion event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sadasiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 05:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Promotion-event-wise-Data-last-n-Days/m-p/1316042#M28256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-04T05:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Promotion event wise Data - last 'n' Days</title>
      <link>https://community.qlik.com/t5/App-Development/Promotion-event-wise-Data-last-n-Days/m-p/1316043#M28257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sadasiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you have to create a flag (a new field) in the script to know for each one is you must show it or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 12:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Promotion-event-wise-Data-last-n-Days/m-p/1316043#M28257</guid>
      <dc:creator>juan_patrick</dc:creator>
      <dc:date>2017-07-04T12:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Promotion event wise Data - last 'n' Days</title>
      <link>https://community.qlik.com/t5/App-Development/Promotion-event-wise-Data-last-n-Days/m-p/1316044#M28258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; (Date&amp;lt;=Promo_Date_To) and(Date&amp;gt;= Promo_Date_To - 6),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Promo_Event&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this condition works for me, to get last n days sales.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 06:11:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Promotion-event-wise-Data-last-n-Days/m-p/1316044#M28258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-20T06:11:20Z</dc:date>
    </item>
  </channel>
</rss>

