<?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 Sum Set of Data Dynamically By Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-Set-of-Data-Dynamically-By-Date/m-p/158792#M33694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;Thanks for the reply, but it appears that the Set does not like functions in the filter. The error that appears is:&lt;/P&gt;&lt;P&gt;Bad Field Name(s): Max&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 May 2010 13:37:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-20T13:37:52Z</dc:date>
    <item>
      <title>Sum Set of Data Dynamically By Date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Set-of-Data-Dynamically-By-Date/m-p/158790#M33692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm new to QlikView and need pointed in the right direction.&lt;/P&gt;&lt;P&gt;I have added Straight Table Chart with a list of Invoice numbers and an Expression Column to display the Invoice Total for the current Month.&lt;/P&gt;&lt;P&gt;I have one dimension [Invoice Number]&lt;/P&gt;&lt;P&gt;My Expression column is as follows:&lt;/P&gt;&lt;P&gt;Label - "Current Month Total"&lt;/P&gt;&lt;P&gt;Expression - =Sum ( { $ &amp;lt; [Invoice Date] = { "2010-05*" } &amp;gt; } [Invoice Amt])&lt;/P&gt;&lt;P&gt;The Straight table will then display all invoice numbers and the total for the current month as expected.&lt;/P&gt;&lt;P&gt;This is a problem because I need to amend the Dimension every month to keep it up to date. What I want to do is dynamically create the filter for the current month. I have tried the following but is causes errors in the Expression Editor:&lt;/P&gt;&lt;P&gt;=Sum ( { $ &amp;lt; [Invoice Date] = { mid(today(1), 7,4) &amp;amp; mid(today(1), 4, 2) &amp;amp; "*" } &amp;gt; } [Invoice Amt])&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 11:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Set-of-Data-Dynamically-By-Date/m-p/158790#M33692</guid>
      <dc:creator />
      <dc:date>2010-05-20T11:21:09Z</dc:date>
    </item>
    <item>
      <title>Sum Set of Data Dynamically By Date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Set-of-Data-Dynamically-By-Date/m-p/158791#M33693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Instead of passing date Directly break the Invoice date into Invoice year and Invoice Month&lt;/P&gt;&lt;P&gt;write the expression like this dynamically&lt;/P&gt;&lt;P&gt;Sum ( { $ &amp;lt; [Invoice Year] = { Max(Year(InvoiceDate) } ,&lt;/P&gt;&lt;P&gt;{ Invoice Month] = { Max(Month(InvoiceDate)}, &amp;gt; } [Invoice Amt])&lt;/P&gt;&lt;P&gt;see this expression gives result by default fot current year and current month&lt;/P&gt;&lt;P&gt;Check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 13:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Set-of-Data-Dynamically-By-Date/m-p/158791#M33693</guid>
      <dc:creator>spsrk_84</dc:creator>
      <dc:date>2010-05-20T13:18:01Z</dc:date>
    </item>
    <item>
      <title>Sum Set of Data Dynamically By Date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Set-of-Data-Dynamically-By-Date/m-p/158792#M33694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;Thanks for the reply, but it appears that the Set does not like functions in the filter. The error that appears is:&lt;/P&gt;&lt;P&gt;Bad Field Name(s): Max&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 13:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Set-of-Data-Dynamically-By-Date/m-p/158792#M33694</guid>
      <dc:creator />
      <dc:date>2010-05-20T13:37:52Z</dc:date>
    </item>
    <item>
      <title>Sum Set of Data Dynamically By Date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Set-of-Data-Dynamically-By-Date/m-p/158793#M33695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I found a solution, don't know if it is the best way though! I created a variable called currentMth&lt;/P&gt;&lt;P&gt;where currentMth = "'&amp;amp;mid(today(1), 7,4) &amp;amp; '-'&amp;amp; mid(today(1),4, 2)&amp;amp;'*"'&lt;/P&gt;&lt;P&gt;Then in my set analysis expression column I did the following:&lt;/P&gt;&lt;P&gt;=Sum ( { $ &amp;lt; [Invoice Date] = {$(currentMth)} &amp;gt; } [Invoice Amt])&lt;/P&gt;&lt;P&gt;It dynamically changes the result based on the current month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 17:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Set-of-Data-Dynamically-By-Date/m-p/158793#M33695</guid>
      <dc:creator />
      <dc:date>2010-05-20T17:16:19Z</dc:date>
    </item>
  </channel>
</rss>

