<?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: Calculating sales to the date a user select in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-sales-to-the-date-a-user-select/m-p/405983#M1165696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got there in the end with a mixture of a few suggestions and research&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[Transaction Date] = {"&amp;lt;=$(=max([Transaction Date]))"}, Year, Month&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2012 08:22:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-24T08:22:32Z</dc:date>
    <item>
      <title>Calculating sales to the date a user select</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-sales-to-the-date-a-user-select/m-p/405981#M1165694</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'm struggling with what I believe should really be a straight forward issue and need some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate what the sales are upto and including a date I select from the date dimensions.&amp;nbsp; I also want the other dimensions open i.e. so I can select a specific product or region, etc and see it's sales to date.&amp;nbsp; At the moment I have sale to date using set analysis and the {1} however this is fixing the date and ignoring all other selections made.&amp;nbsp; I want to fix my date and let the user select the other dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached example I have named varibles for the date that my data begins i.e. vStart and the last day of the selected month i.e. vEnd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please could some one help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 15:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-sales-to-the-date-a-user-select/m-p/405981#M1165694</guid>
      <dc:creator />
      <dc:date>2012-09-13T15:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating sales to the date a user select</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-sales-to-the-date-a-user-select/m-p/405982#M1165695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; &lt;/P&gt;&lt;P&gt;In script u should add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num([Transaction Date]) AS SalesNumDate,&lt;/P&gt;&lt;P&gt;Day([Transaction Date]) As Day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the expression like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum({&amp;lt;Year=,Month=, SalesNumDate={'&amp;gt;=$(=(Num(MonthStart(vSelectedDate))))&amp;lt;=$(=(Num(MonthEnd(vSelectedDate))))'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where vSelectedDate = =MakeDate(Max(Year),Max(Month),Max(Day))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its helps &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Iyyappan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 19:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-sales-to-the-date-a-user-select/m-p/405982#M1165695</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2012-09-13T19:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating sales to the date a user select</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-sales-to-the-date-a-user-select/m-p/405983#M1165696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got there in the end with a mixture of a few suggestions and research&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[Transaction Date] = {"&amp;lt;=$(=max([Transaction Date]))"}, Year, Month&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 08:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-sales-to-the-date-a-user-select/m-p/405983#M1165696</guid>
      <dc:creator />
      <dc:date>2012-09-24T08:22:32Z</dc:date>
    </item>
  </channel>
</rss>

