<?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: Having problem with filter in sum in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853791#M11796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And did you do '4/10/2015' or '4/01/2015'? Just want to make sure we are not doing typo mistakes here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally I added the date format as well, just so if you have a different format in your database it would fix that problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;[Invoice date]=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #575757;"&gt;{"(=Date(MonthStart([Invoice date]), 'M/DD/YYYY') = &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;'4/01/2015'&lt;/SPAN&gt;)"}&lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&amp;gt;}[Total Charge amount])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try copy pasting the above expression and see if you still don't get a result. If you do great, if not then I would be able to share a sample?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sunny&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2015 16:45:03 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-05-13T16:45:03Z</dc:date>
    <item>
      <title>Having problem with filter in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853785#M11790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I'm having trouble with setting a filter in a SUM statement.&amp;nbsp; I'm defining a measure to always return a total amount for a specific month.&amp;nbsp; I'm trying to use the monthstart function within the measure definition but can't seem to get it right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have the measure defined like this it works:&lt;/P&gt;&lt;P&gt;Sum ({$&amp;lt;[Invoice date]={"4/20/2015"}&amp;gt;}[Total Charge amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I really want is to get the charges for the entire month of April so I changed it to this:&lt;/P&gt;&lt;P&gt;Sum ({$&amp;lt;Monthstart([Invoice date])={"4/1/2015"}&amp;gt;}[Total Charge amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that gives me an error in the expression.&amp;nbsp; I can get rid of the error by doing this:&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;$(Monthstart([Invoice date]))={"4/1/2015"}&amp;gt;}[Total Charge amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;But that returns no data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I verified what the values are after Monthstart is applied by modifying the dimension in a table and the values for April all show "4/1/2015"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 15:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853785#M11790</guid>
      <dc:creator />
      <dc:date>2015-05-13T15:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Having problem with filter in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853786#M11791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum ({$&amp;lt;[Invoice date]=&lt;STRONG&gt;{"(=MonthStart([Invoice date]) = '4/20/2015')"}&lt;/STRONG&gt;&amp;gt;}[Total Charge amount])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 15:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853786#M11791</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-13T15:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Having problem with filter in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853787#M11792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp; I may not have explained what I'm looking for well.&amp;nbsp; Your solution above looks like it is looking for anything with an Invoice Date of 4/1/2015.&amp;nbsp; The Invoice dates will vary for example 4/8/2015, 4/20/2015.&amp;nbsp; What I'm looking to do is have all those invoices come back as part of the sum value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 15:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853787#M11792</guid>
      <dc:creator />
      <dc:date>2015-05-13T15:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Having problem with filter in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853788#M11793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understood your requirement, but I think I had a slight typo in the expression, do you mind trying this and seeing if this works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;[Invoice date]=&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{"(=Date(MonthStart([Invoice date]), 'M/DD/YYYY') = &lt;SPAN style="color: #ff0000;"&gt;'4/01/2015'&lt;/SPAN&gt;)"}&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;}[Total Charge amount])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;This expression should Sum the amounts for all April Invoice Dates.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sunny&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 16:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853788#M11793</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-13T16:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Having problem with filter in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853789#M11794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, yes, I saw that in your first post and changed it to '4/10/2015' but it still returns no data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 16:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853789#M11794</guid>
      <dc:creator />
      <dc:date>2015-05-13T16:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Having problem with filter in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853790#M11795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way for you to share your application so that I can have a look at it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 16:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853790#M11795</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-13T16:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Having problem with filter in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853791#M11796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And did you do '4/10/2015' or '4/01/2015'? Just want to make sure we are not doing typo mistakes here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally I added the date format as well, just so if you have a different format in your database it would fix that problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;[Invoice date]=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #575757;"&gt;{"(=Date(MonthStart([Invoice date]), 'M/DD/YYYY') = &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;'4/01/2015'&lt;/SPAN&gt;)"}&lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&amp;gt;}[Total Charge amount])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try copy pasting the above expression and see if you still don't get a result. If you do great, if not then I would be able to share a sample?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sunny&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 16:45:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853791#M11796</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-13T16:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Having problem with filter in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853792#M11797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your continued help but unfortunately it still doesn't give a result.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 17:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853792#M11797</guid>
      <dc:creator />
      <dc:date>2015-05-13T17:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Having problem with filter in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853793#M11798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Damn it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;... Would you be able to share a sample to look at it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 17:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Having-problem-with-filter-in-sum/m-p/853793#M11798</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-13T17:25:35Z</dc:date>
    </item>
  </channel>
</rss>

