<?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: Minus 7 days in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997338#M14656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does:&lt;/P&gt;&lt;P&gt;Count(&lt;/P&gt;&lt;P&gt;{$&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;Delivery_Date={'&amp;gt;=$(=WeekStart(Week_Beginning)-7)'},&lt;/P&gt;&lt;P&gt;Delivery_Date={'&amp;lt;=$(=WeekStart(Week_Beginning)-1)'}&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Customer_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;work? (am assuming the field you are filtering is called Week_Beginning&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2015 12:31:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-02T12:31:19Z</dc:date>
    <item>
      <title>Minus 7 days</title>
      <link>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997335#M14653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish to select a date from Week_Beginning and it returns customers, only with delivery dates in the previous week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g if I select 13/09/2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want only to return customers who have a delivery date 6-12 September&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have wrote this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt; Delivery_Date -={"&amp;gt;=$(=Date(WeekStart(max({$}Date))-7))"}&amp;gt;}Customer_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all customers remain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and removing the - like this&amp;nbsp; count({$&amp;lt; Delivery_Date ={"&amp;gt;=$(=Date(WeekStart(max({$}Date))-7))"}&amp;gt;}Customer_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives me null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 14:20:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997335#M14653</guid>
      <dc:creator>joeybird</dc:creator>
      <dc:date>2015-10-16T14:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Minus 7 days</title>
      <link>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997336#M14654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joanna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully I can help or at least get you closer to a resolution.&amp;nbsp; I am going to assume that the user can select any day of the week.&amp;nbsp; So, if your user was to select 16/9/2015 (a Wednesday) then you will want to select everything that has a Delivery_Date between 6/9/2015 and 12/9/2015 which are the beginning and ending dates of the previous week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the start of the previous week would be something like this:&amp;nbsp; WeekStart(&lt;EM&gt;YourSelectedDateGoesHere&lt;/EM&gt;))-7&lt;/P&gt;&lt;P&gt;To get the end of the previous week would be something like this: WeekStart(&lt;EM&gt;YourSelectedDateGoesHere&lt;/EM&gt;))-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your user can select ANY date, you probably want to check for Delivery Dates that are between the start and end of the previous week otherwise you will get everything &amp;gt;= to the start of the previous week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when we put this together in your set analysis, it may go something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;Delivery_Date={"&amp;gt;=$(=WeekStart(&lt;EM&gt;YourSelectedDateGoesHere&lt;/EM&gt;))-7)&amp;lt;=$(=WeekStart(&lt;EM&gt;YourSelectedDateGoesHere&lt;/EM&gt;))-1)"}&amp;gt;}Customer_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a variable as your selected date, then it would be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;Delivery_Date={"&amp;gt;=$(=WeekStart($(vSelectedDate))-7)&amp;lt;=$(=WeekStart($(vSelectedDate))-1)"}&amp;gt;}Customer_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 18:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997336#M14654</guid>
      <dc:creator>kevincase</dc:creator>
      <dc:date>2015-10-19T18:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Minus 7 days</title>
      <link>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997337#M14655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiya &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for the delay, this does not work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have had a play removing brackets ect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a way of using&amp;nbsp; something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delivery_Date =&amp;nbsp; getselectedfield WeekStart(Week_Beginning) - 7&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &amp;lt;=$ getselectedfield WeekStart(Week_Beginning) - 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 11:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997337#M14655</guid>
      <dc:creator>joeybird</dc:creator>
      <dc:date>2015-11-02T11:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Minus 7 days</title>
      <link>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997338#M14656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does:&lt;/P&gt;&lt;P&gt;Count(&lt;/P&gt;&lt;P&gt;{$&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;Delivery_Date={'&amp;gt;=$(=WeekStart(Week_Beginning)-7)'},&lt;/P&gt;&lt;P&gt;Delivery_Date={'&amp;lt;=$(=WeekStart(Week_Beginning)-1)'}&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Customer_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;work? (am assuming the field you are filtering is called Week_Beginning&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 12:31:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997338#M14656</guid>
      <dc:creator />
      <dc:date>2015-11-02T12:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Minus 7 days</title>
      <link>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997339#M14657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you (your user) can make selection on calendar field other than Delivery_Date, like Date, you need to clear &lt;EM&gt;all&lt;/EM&gt; these fields in set analysis to avoid incompatible selections:&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;count({$&amp;lt; Delivery_Date ={"&amp;gt;=$(=Date(WeekStart(max({$}Date))-7))&amp;lt;$(=Date(Weekstart(max(Date))))"}, &lt;STRONG&gt;Date =&lt;/STRONG&gt; &amp;gt;} Customer_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 12:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997339#M14657</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-02T12:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Minus 7 days</title>
      <link>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997340#M14658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no joy, and yes I am filtering on Week_Beginning, please help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I use above the system says set analysis is ok, however Week_Beginning is showing black, when if a field is selected it should go orange?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 13:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997340#M14658</guid>
      <dc:creator>joeybird</dc:creator>
      <dc:date>2015-11-02T13:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Minus 7 days</title>
      <link>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997341#M14659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand, could you upload a sample app?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you just need to replace Date with Week_Beginning (if Week_Beginning has a numerical date representation):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;count({$&amp;lt; Delivery_Date ={"&amp;gt;=$(=Date(WeekStart(max(Week_Beginning))-7))&amp;lt;$(=Date(Weekstart(max(Week_Beginning))))"}, Week_Beginning&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;= &lt;/STRONG&gt;&amp;gt;} Customer_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Remember to clear &lt;EM&gt;all&lt;/EM&gt; calendar fields the user may select in in your set expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Maybe you also need to adapt the Date() format code to match your Delivery_Date format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But it's kind of guessing without knowing your data model, field values formats and what UI objects are involved.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 13:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997341#M14659</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-02T13:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Minus 7 days</title>
      <link>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997342#M14660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still no joy. cannot load app sorry but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the data load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Delivery_Date) as "Delivery_Date",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Week_ Beginning ) as "Week_ Beginning",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;week beginning is just shown as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g 05/01/2015&lt;/P&gt;&lt;P&gt;12/01/2015, and so forth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delivery date is just shown as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01/01/2015, 02/01/2015 ect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 14:19:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997342#M14660</guid>
      <dc:creator>joeybird</dc:creator>
      <dc:date>2015-11-02T14:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Minus 7 days</title>
      <link>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997343#M14661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joanna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached sample.&amp;nbsp; User can select a date and it will return the count of customers that have a delivery date in the previous week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select 9/9/2115, you should get a count of three customers with a delivery date in the previous week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 15:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Minus-7-days/m-p/997343#M14661</guid>
      <dc:creator>kevincase</dc:creator>
      <dc:date>2015-11-02T15:00:58Z</dc:date>
    </item>
  </channel>
</rss>

