<?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: Sum formula with criteria similar to sumifs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488770#M1138835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest to see &lt;A _jive_internal="true" href="https://community.qlik.com/message/209604#209604"&gt;this discussion&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2013 16:13:26 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-09-27T16:13:26Z</dc:date>
    <item>
      <title>Sum formula with criteria similar to sumifs</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488769#M1138834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a comparison table that draws data from two different containers with list boxes that I use to filter my comparison results.&amp;nbsp; One column sums up the sales from one container set and the next column sums up the sales from the other container set and then I have a column that shows the difference.&amp;nbsp; The sum formula looks like this:&amp;nbsp; =Sum( {EventComp1} [# of Seats] )&amp;nbsp; where EventComp1 is the alternate state of one of the containers and the other sum formula just replaces EventComp1 with EventComp2 to get the second set for comparison.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to add some criteria that I can use to filter the whole comparison table to show me the sales that happened prior to 30 days from the event that I'm comparing.&amp;nbsp; So simply put it would be "sum the sales from EventComp1 that happened before 30 days to the event (or whatever number of days I specify)" and then I would do that same for EventComp2 and the comparison column would give me the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using an input box with a variable called DaystoEvent and so I thought the formula would look something like this:&lt;/P&gt;&lt;P&gt;SUM({EventStartDate - SaleDate&amp;gt;=DaystoEvent},{EventComp1} [# of Seats])&lt;/P&gt;&lt;P&gt;This obviously didn't work, but I can't seem to find the correct syntax for it to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 15:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488769#M1138834</guid>
      <dc:creator />
      <dc:date>2013-09-27T15:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sum formula with criteria similar to sumifs</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488770#M1138835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest to see &lt;A _jive_internal="true" href="https://community.qlik.com/message/209604#209604"&gt;this discussion&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 16:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488770#M1138835</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-27T16:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum formula with criteria similar to sumifs</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488771#M1138836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I looked at your link and based on that I've come up with the following, but it still tells me I have an error in my expression.&amp;nbsp; Can you see where I'm going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: = Sum( {EventComp1} &amp;lt;DayStart([EventStartDate]) - DayStart([UpdateDate]) &amp;gt;=&amp;nbsp; [DaystoEvent] &amp;gt;&amp;nbsp;&amp;nbsp; [# of Seats]&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 16:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488771#M1138836</guid>
      <dc:creator />
      <dc:date>2013-09-27T16:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sum formula with criteria similar to sumifs</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488772#M1138837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&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;"&gt;Sum( {EventComp1 &amp;lt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[DaystoEvent]&lt;/SPAN&gt;={"$(=(DayStart([EventStartDate]) - DayStart([UpdateDate])) &amp;gt;}&amp;nbsp;&amp;nbsp; [# of Seats]&amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Assuming DaystoEvent is a numeric field.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 16:46:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488772#M1138837</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-27T16:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sum formula with criteria similar to sumifs</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488773#M1138838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DaystoEvent is a numeric field, so you were right in your assumption.&amp;nbsp; &lt;/P&gt;&lt;P&gt;However, your solution didn't quite work.&amp;nbsp; I get "Expression OK" at the top of the Edit Expression box, but the column only returns "-".&amp;nbsp; When the expression is pasted in the dialog box the open parenthesis after "Sum" shows red and there is a red error "^" underneath the second "{".&amp;nbsp; Any ideas what it could be?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 17:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488773#M1138838</guid>
      <dc:creator />
      <dc:date>2013-09-27T17:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sum formula with criteria similar to sumifs</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488774#M1138839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry. it was a mistake. Try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum( {EventComp1 &amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[DaystoEvent]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;={"$(=(DayStart([EventStartDate]) - DayStart([UpdateDate])) &lt;STRONG&gt;"}&lt;/STRONG&gt; &amp;gt;}&amp;nbsp;&amp;nbsp; [# of Seats]&amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"" and '}' was missing.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 17:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488774#M1138839</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-27T17:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sum formula with criteria similar to sumifs</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488775#M1138840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It still doesn't quite work and I'm still new enough to not be able to troubleshoot.&amp;nbsp; I don't know if it helps, but I've added a screen shot of what it looks like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Expression.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/47004_Expression.png" style="width: 620px; height: 272px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 17:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488775#M1138840</guid>
      <dc:creator />
      <dc:date>2013-09-27T17:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sum formula with criteria similar to sumifs</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488776#M1138841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just realize you also add a quotation, but it still doesn't change it when I put that in as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 17:19:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488776#M1138841</guid>
      <dc:creator />
      <dc:date>2013-09-27T17:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sum formula with criteria similar to sumifs</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488777#M1138842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;One more correction: ')' was missing;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit;"&gt;Sum( {EventComp1 &amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit;"&gt;[DaystoEvent]&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit;"&gt;={"$(=(DayStart([EventStartDate]) - DayStart([UpdateDate])) &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;)&lt;/STRONG&gt; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;"}&lt;/STRONG&gt; &amp;gt;}&amp;nbsp;&amp;nbsp; [# of Seats]&amp;nbsp; )&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-style: inherit;"&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-style: inherit;"&gt;If this doesn't work, please share your sample app.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 17:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488777#M1138842</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-27T17:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sum formula with criteria similar to sumifs</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488778#M1138843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would I pair down the app to be able to share?&amp;nbsp; Currently it shows as 200MB on my network. Also, is there a way to share without putting all my company's data on the web?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 18:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-formula-with-criteria-similar-to-sumifs/m-p/488778#M1138843</guid>
      <dc:creator />
      <dc:date>2013-09-27T18:01:37Z</dc:date>
    </item>
  </channel>
</rss>

