<?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: Current Month based on Selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-Month-based-on-Selections/m-p/738474#M1077044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, YTD should be simple - you only specify the current year in the set_expression, like&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; sum({1&amp;lt;Jahr = {$(=Year(Today()))}&amp;gt;} sales) &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The previous month - try that out in a checkbox, I guess it would be easier using the DUAL() function, but I have no experience with that - I always do like&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; sum({1&amp;lt;Jahr = {$(=Year(Today())), Monat = {$(=Month(Monthstart(Today(), -1)))}}&amp;gt;} sales) &amp;lt;&amp;lt;&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;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jul 2014 10:28:25 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2014-07-24T10:28:25Z</dc:date>
    <item>
      <title>Current Month based on Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-based-on-Selections/m-p/738473#M1077043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to find the answer but nothing seems to be working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to show the current month, previous month and YTD based on selections made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg&lt;/P&gt;&lt;P&gt;Month&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;Jan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;Feb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;Mar&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15&lt;/P&gt;&lt;P&gt;Apr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 32&lt;/P&gt;&lt;P&gt;May&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;Jun&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;Jul&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;Oct&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;Nov&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;Dec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select Jan, Feb, Mar I want three different values returned:-&lt;/P&gt;&lt;P&gt;Current Month = 15&lt;/P&gt;&lt;P&gt;Previous Month = 20&lt;/P&gt;&lt;P&gt;YTD = 45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried a number of different set analysis type solutions based on these forums but nothing is giving me the right answers. I thought it should be pretty straight-forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***PS I am still on a personal edition so I'm unable to open any qvw files so could you post the code directly on here please***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 10:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-based-on-Selections/m-p/738473#M1077043</guid>
      <dc:creator>Karl_Hart</dc:creator>
      <dc:date>2014-07-24T10:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month based on Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-based-on-Selections/m-p/738474#M1077044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, YTD should be simple - you only specify the current year in the set_expression, like&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; sum({1&amp;lt;Jahr = {$(=Year(Today()))}&amp;gt;} sales) &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The previous month - try that out in a checkbox, I guess it would be easier using the DUAL() function, but I have no experience with that - I always do like&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; sum({1&amp;lt;Jahr = {$(=Year(Today())), Monat = {$(=Month(Monthstart(Today(), -1)))}}&amp;gt;} sales) &amp;lt;&amp;lt;&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;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 10:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-based-on-Selections/m-p/738474#M1077044</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-07-24T10:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month based on Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-based-on-Selections/m-p/738475#M1077045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, does the today() function ignore the current selections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if look at the data today and use your suggestion will it return everything from Jan - Jul (given that we are in July) because if so I dont want to use that function as I only want it to return results based on my selections (in this case Jan - Mar)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 10:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-based-on-Selections/m-p/738475#M1077045</guid>
      <dc:creator>Karl_Hart</dc:creator>
      <dc:date>2014-07-24T10:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month based on Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-based-on-Selections/m-p/738476#M1077046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly you just need to select a single month( e.g March) to get the values as below:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Current Month = 15&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Previous Month = 20&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;YTD = 45&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Secondly do you have a Master Calendar in your script?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;It would be better if you could attach your QVW so that we may analyze and give you the code.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sabal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 10:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-based-on-Selections/m-p/738476#M1077046</guid>
      <dc:creator />
      <dc:date>2014-07-24T10:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month based on Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-based-on-Selections/m-p/738477#M1077047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;See attached qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Current Month Sales :'&amp;amp;Sum({&amp;lt;Date=,Month={"$(=Month(Max(Date)))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;='Previous Month Sales :'&amp;amp;Sum({&amp;lt;Date=,Month={"$(=Month(AddMonths(Max(Date),-1)))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;='YTD :'&amp;amp;Sum({&amp;lt;Month=,Date={"&amp;gt;=$(=YearStart(Max(Date)))&amp;lt;=$(=Max(Date))"}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 10:36:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-based-on-Selections/m-p/738477#M1077047</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-07-24T10:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Current Month based on Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-based-on-Selections/m-p/738478#M1077048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;LOAD *,Dual(Month,RowNo())*1 as MonthNo;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, Sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan, 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb, 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar,15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr,32&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; May,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jun,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;In different text box, exp are&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Current Month = 15 -&amp;gt; =Sum({&amp;lt;MonthNo={$(=Max(MonthNo))}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Previous Month = 20 -&amp;gt;=Sum({&amp;lt;MonthNo={$(=Max(MonthNo)-1)}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;YTD = 45 -&amp;gt; =Sum(Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Cheers!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Jagan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 10:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-based-on-Selections/m-p/738478#M1077048</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2014-07-24T10:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month based on Selections</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-based-on-Selections/m-p/738479#M1077049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karl you will probably need the below from tresesco's qvw if you are unable to open due to running personal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Date) as Month;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;Managers, Date, Sales&lt;/P&gt;&lt;P&gt;A, 1-1-2014, 200&lt;/P&gt;&lt;P&gt;A, 1-2-2014, 300&lt;/P&gt;&lt;P&gt;B, 1-3-2014, 500&lt;/P&gt;&lt;P&gt;B, 1-4-2014, 100&lt;/P&gt;&lt;P&gt;B, 1-5-2014, 500&lt;/P&gt;&lt;P&gt;C, 1-6-2014, 10&lt;/P&gt;&lt;P&gt;C, 1-7-2014, 20&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 10:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-based-on-Selections/m-p/738479#M1077049</guid>
      <dc:creator />
      <dc:date>2014-07-24T10:43:44Z</dc:date>
    </item>
  </channel>
</rss>

