<?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 3 variables. How do I do it? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-3-variables-How-do-I-do-it/m-p/869552#M993955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am afraid the expression you posted does not make sense. This bit will likely give you an expression error (and will not work):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InYear(&lt;STRONG&gt;[opportunity.fee] and [Opportunity.Won Date]&lt;/STRONG&gt;, Today(), 0)&lt;/P&gt;&lt;P&gt;(the bold text returns a true/false value and not a date which InYear is expecting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plus you have a trailing comma which will cause an error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =vWon,[Id]&lt;STRONG&gt;,&lt;/STRONG&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jul 2015 14:46:34 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2015-07-14T14:46:34Z</dc:date>
    <item>
      <title>Sum 3 variables. How do I do it?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-3-variables-How-do-I-do-it/m-p/869548#M993951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a query regarding an expression I am trying to use and I am hoping you can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want to get:&lt;/P&gt;&lt;P&gt;1) The average of a total fees&lt;/P&gt;&lt;P&gt;2) In 2015&lt;/P&gt;&lt;P&gt;3) and status = Won&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below but I cannot get it to work. Any guidance is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Avg(Distinct If(InYear([opportunity.fee] and [Opportunity.Won Date], Today(), 0) and [Opportunity.Sales Stage]=vWon,[Id],))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 13:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-3-variables-How-do-I-do-it/m-p/869548#M993951</guid>
      <dc:creator>knightwriter</dc:creator>
      <dc:date>2015-07-14T13:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sum 3 variables. How do I do it?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-3-variables-How-do-I-do-it/m-p/869549#M993952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Avg({&amp;lt;Year = {'2015'}, Status = {'Won'}&amp;gt;}[Total fees])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 13:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-3-variables-How-do-I-do-it/m-p/869549#M993952</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-14T13:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sum 3 variables. How do I do it?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-3-variables-How-do-I-do-it/m-p/869550#M993953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunindia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the note but I still cannot manage to work it. The message is Error in expression. Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 13:51:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-3-variables-How-do-I-do-it/m-p/869550#M993953</guid>
      <dc:creator>knightwriter</dc:creator>
      <dc:date>2015-07-14T13:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sum 3 variables. How do I do it?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-3-variables-How-do-I-do-it/m-p/869551#M993954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a screenshot of when you enter the above expression in edit expression window?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-3-variables-How-do-I-do-it/m-p/869551#M993954</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-14T14:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sum 3 variables. How do I do it?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-3-variables-How-do-I-do-it/m-p/869552#M993955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am afraid the expression you posted does not make sense. This bit will likely give you an expression error (and will not work):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InYear(&lt;STRONG&gt;[opportunity.fee] and [Opportunity.Won Date]&lt;/STRONG&gt;, Today(), 0)&lt;/P&gt;&lt;P&gt;(the bold text returns a true/false value and not a date which InYear is expecting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plus you have a trailing comma which will cause an error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =vWon,[Id]&lt;STRONG&gt;,&lt;/STRONG&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-3-variables-How-do-I-do-it/m-p/869552#M993955</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-07-14T14:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sum 3 variables. How do I do it?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-3-variables-How-do-I-do-it/m-p/869553#M993956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And please give the definition of vWon &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-3-variables-How-do-I-do-it/m-p/869553#M993956</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-07-14T14:49:07Z</dc:date>
    </item>
  </channel>
</rss>

