<?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: MonthStartDate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-MonthStartDate-to-selected-date/m-p/873367#M305097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Navdeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, when the user has selected a date (and it's in proper date_format), you should be able to use the Monthstart() function on it to get that month's starting_date. Try that on its own first (good practice, always test the individual elements of a formula).&lt;/P&gt;&lt;P&gt;=&amp;gt; Then you can just use a formula, even without set_analysis, like&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; SUM(IF([sale_date] &amp;gt;= Monthstart[selected_date], [sales_amount], 0) &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;There won't be any sales for dates in the future, so you don't have to query that side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Set_analysis is a great tool and you can do cool things with it. But it's quite resource-intensive, so IMHO you should try to do without if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 09:27:31 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2015-04-21T09:27:31Z</dc:date>
    <item>
      <title>sum MonthStartDate to selected date</title>
      <link>https://community.qlik.com/t5/QlikView/sum-MonthStartDate-to-selected-date/m-p/873365#M305095</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 have a requirement where if user selects a date he should be able to see sum of sales from month start date to till selected date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:- If in filter user has selected 21-04-2015 then he should be able to see sales from 01-04-2014 to till date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp; below expression but not getting desired result. Please suggest the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TargetMonth=,TargetYear=,DivName=,KeyDescription=,&lt;/P&gt;&lt;P&gt;ProductName=,SubCatName=,ProductCategory=,ProductNo=,FiscalYear&amp;nbsp; ={$(vCurrentYear)},&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SaleDate={"&amp;gt;=$(=monthstart(GetFieldSelections(SaleDate)))"}&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;SaleDate={"&amp;lt;=$(=GetFieldSelections(SaleDate))"}&lt;/P&gt;&lt;P&gt;&amp;gt;}ActualQuantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Navdeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 09:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-MonthStartDate-to-selected-date/m-p/873365#M305095</guid>
      <dc:creator />
      <dc:date>2015-04-21T09:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: MonthStartDate</title>
      <link>https://community.qlik.com/t5/QlikView/sum-MonthStartDate-to-selected-date/m-p/873366#M305096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need to ignore selection on SaleDate&lt;/P&gt;&lt;P&gt;so add the following to your set analysis SaleDate =&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 09:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-MonthStartDate-to-selected-date/m-p/873366#M305096</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2015-04-21T09:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: MonthStartDate</title>
      <link>https://community.qlik.com/t5/QlikView/sum-MonthStartDate-to-selected-date/m-p/873367#M305097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Navdeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, when the user has selected a date (and it's in proper date_format), you should be able to use the Monthstart() function on it to get that month's starting_date. Try that on its own first (good practice, always test the individual elements of a formula).&lt;/P&gt;&lt;P&gt;=&amp;gt; Then you can just use a formula, even without set_analysis, like&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; SUM(IF([sale_date] &amp;gt;= Monthstart[selected_date], [sales_amount], 0) &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;There won't be any sales for dates in the future, so you don't have to query that side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Set_analysis is a great tool and you can do cool things with it. But it's quite resource-intensive, so IMHO you should try to do without if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 09:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-MonthStartDate-to-selected-date/m-p/873367#M305097</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-04-21T09:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: sum MonthStartDate to selected date</title>
      <link>https://community.qlik.com/t5/QlikView/sum-MonthStartDate-to-selected-date/m-p/873368#M305098</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;Try&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TargetMonth=,TargetYear=,DivName=,KeyDescription=,&lt;/P&gt;&lt;P&gt;ProductName=,SubCatName=,ProductCategory=,ProductNo=,FiscalYear&amp;nbsp; ={$(vCurrentYear)},&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SaleDate={"&amp;gt;=$(=monthstart(GetFieldSelections(SaleDate)))&amp;lt;=$(=GetFieldSelections(SaleDate))"}&lt;/P&gt;&lt;P&gt;&amp;gt;}ActualQuantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Greeshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 09:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-MonthStartDate-to-selected-date/m-p/873368#M305098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-21T09:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: sum MonthStartDate to selected date</title>
      <link>https://community.qlik.com/t5/QlikView/sum-MonthStartDate-to-selected-date/m-p/873369#M305099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your valuable time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the other option I tried and working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;....... SaleDate={"&amp;gt;=$(=monthstart(GetFieldSelections(SaleDate)))"}&lt;/P&gt;&lt;P&gt; &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt; &amp;lt;........SaleDate={"&amp;lt;=$(=GetFieldSelections(SaleDate))"}&lt;/P&gt;&lt;P&gt; &amp;gt;}ActualQuantity)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 09:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-MonthStartDate-to-selected-date/m-p/873369#M305099</guid>
      <dc:creator />
      <dc:date>2015-04-21T09:41:43Z</dc:date>
    </item>
  </channel>
</rss>

