<?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: Date Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Problem/m-p/1410607#M796552</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;Thanks Yousseff for the above, the other issue I have now is.&amp;nbsp; I want to create a date field for this week and it to show the returns that happen this week and the sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I was to select this week date fields, I would miss 1 of my returns (which happened in the week), if I was to include the 2nd return which happened this week, I would have a 1 value for a sale but I would not want it to show as a sale for this specific week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Dec 2017 17:18:47 GMT</pubDate>
    <dc:creator>alwayslearning</dc:creator>
    <dc:date>2017-12-19T17:18:47Z</dc:date>
    <item>
      <title>Date Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Problem/m-p/1410603#M796548</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 am trying do something with dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is: I have two date fields and two value fields which I need to represent with 1 date.&amp;nbsp; So I have sales and returns data and I need to be able to show sales and then reduce sales by the number of returns which happened in that week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this table below from 11th - 15 Dec a person has made 6 sales.&amp;nbsp; But I want to reduce this number by any returns made in a 60 day period.&amp;nbsp; So Sales Net of returns would be 4 (You can see 4 returns made this week but only two which happened in the 60 day period).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would prefer to code this in to the script with additional columns etc because of the volume of data and also I would like to have various date filter e.g. this week, last week, quarter etc.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I clicked this week date field, I would see a volume of 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="278"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="75"&gt;Sale Date&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="75"&gt;Return Date&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Sales&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Return&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;11/12/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;11/12/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;11/12/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;12/12/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;01/10/2017&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;13/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;12/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;13/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;14/12/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;01/08/2017&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;14/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" style="border-top: none;"&gt;25/10/2017&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;12/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kwok&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/Date-Problem/m-p/1410603#M796548</guid>
      <dc:creator>alwayslearning</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Problem/m-p/1410604#M796549</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;STRONG&gt;LOAD *, if(Return&amp;lt;&amp;gt;0, '1') as Flag, if(Return&amp;lt;&amp;gt;0 and [Sale Date]&amp;gt;= Date(today()-60), Sales) as Sales_60&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;find attached&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 13:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Problem/m-p/1410604#M796549</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2017-12-15T13:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Date Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Problem/m-p/1410605#M796550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try week(saledate) and week(returndate) in your load. That should match up the dates to a common week. Then you could have expressions such as sum(sales) or sum(returns). You're load could even has a statement such as Sales-Returns as Net Sales and your expression could just be sum(NetSales).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 13:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Problem/m-p/1410605#M796550</guid>
      <dc:creator>greend21</dc:creator>
      <dc:date>2017-12-15T13:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Date Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Problem/m-p/1410606#M796551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting.&amp;nbsp; The above looks like it should work for me, but I may give this a try also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 10:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Problem/m-p/1410606#M796551</guid>
      <dc:creator>alwayslearning</dc:creator>
      <dc:date>2017-12-19T10:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Problem/m-p/1410607#M796552</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;Thanks Yousseff for the above, the other issue I have now is.&amp;nbsp; I want to create a date field for this week and it to show the returns that happen this week and the sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I was to select this week date fields, I would miss 1 of my returns (which happened in the week), if I was to include the 2nd return which happened this week, I would have a 1 value for a sale but I would not want it to show as a sale for this specific week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 17:18:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Problem/m-p/1410607#M796552</guid>
      <dc:creator>alwayslearning</dc:creator>
      <dc:date>2017-12-19T17:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Problem/m-p/1410608#M796553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've used SET analysis to solve my above problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting Variables as start &amp;amp; end date for sales and returns and then set analysis to sum between dates&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 10:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Problem/m-p/1410608#M796553</guid>
      <dc:creator>alwayslearning</dc:creator>
      <dc:date>2017-12-20T10:21:18Z</dc:date>
    </item>
  </channel>
</rss>

