<?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 Problem about expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-about-expression/m-p/229220#M81173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case, you need to use if conditionals anyway, kind of&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=If(Year = Max(TOTAL Year) -1 and field1 &amp;lt;&amp;gt; 0, Sum({$&amp;lt;Year = {$(#=Only(Year)-1)}, field = {'&amp;lt;&amp;gt;0'} &amp;gt;} field1 * quantità1), Sum(field2 * quantità2))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2010 17:13:31 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2010-02-02T17:13:31Z</dc:date>
    <item>
      <title>Problem about expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-about-expression/m-p/229215#M81168</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;a question about the synthax of one expression.&lt;/P&gt;&lt;P&gt;I usually write:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum (if (Year=max (total year) and field1&amp;lt;&amp;gt;0, field1*quantità1, field2*quantità2))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But now i have to calculate this expression not in Max ( total year) but in the year before the Max (total year) es.(year-1).&lt;/P&gt;&lt;P&gt;I thought SetAnalisys was the correct way, but may be i'm wrong, because i can't reproduce the condition of IF.&lt;/P&gt;&lt;P&gt;Anyone can help me please?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 14:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-about-expression/m-p/229215#M81168</guid>
      <dc:creator>tizianacaem</dc:creator>
      <dc:date>2010-02-02T14:59:55Z</dc:date>
    </item>
    <item>
      <title>Problem about expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-about-expression/m-p/229216#M81169</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 think this expression should work:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum (if (Year=(max (total year)-1) and field1&amp;lt;&amp;gt;0, field1*quantità1, field2*quantità2))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 15:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-about-expression/m-p/229216#M81169</guid>
      <dc:creator />
      <dc:date>2010-02-02T15:24:15Z</dc:date>
    </item>
    <item>
      <title>Problem about expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-about-expression/m-p/229217#M81170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;unfortunately it doesn't work!&lt;/P&gt;&lt;P&gt;i suppose SetAnalisys is the right way, but i'm not able to combine&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{$&amp;lt;Year = {$(#=Only(Year)-1)}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;with the condition if...&lt;/P&gt;&lt;P&gt;Any others idea?&lt;/P&gt;&lt;P&gt;thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 16:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-about-expression/m-p/229217#M81170</guid>
      <dc:creator>tizianacaem</dc:creator>
      <dc:date>2010-02-02T16:37:30Z</dc:date>
    </item>
    <item>
      <title>Problem about expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-about-expression/m-p/229218#M81171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;{$&amp;lt;Year = {$(#=Only(Year)-1), field = {'&amp;lt;&amp;gt;0'} }&amp;gt;}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;for the set analysis including that the field1 value is equal to 0&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 16:44:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-about-expression/m-p/229218#M81171</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-02-02T16:44:43Z</dc:date>
    </item>
    <item>
      <title>Problem about expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-about-expression/m-p/229219#M81172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, but how the expression change from field1 to fiel2 if my condition doesn't occur??&lt;/P&gt;&lt;P&gt;i need that the expression functions in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background:#cedefd;"&gt;sum (if (Year=(max (total year)-1) and field1&amp;lt;&amp;gt;0, field1*quantità1, field2*quantità2))&lt;/P&gt;&lt;P style="background:#cedefd;"&gt;THKS&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 16:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-about-expression/m-p/229219#M81172</guid>
      <dc:creator>tizianacaem</dc:creator>
      <dc:date>2010-02-02T16:58:47Z</dc:date>
    </item>
    <item>
      <title>Problem about expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-about-expression/m-p/229220#M81173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case, you need to use if conditionals anyway, kind of&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=If(Year = Max(TOTAL Year) -1 and field1 &amp;lt;&amp;gt; 0, Sum({$&amp;lt;Year = {$(#=Only(Year)-1)}, field = {'&amp;lt;&amp;gt;0'} &amp;gt;} field1 * quantità1), Sum(field2 * quantità2))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 17:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-about-expression/m-p/229220#M81173</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-02-02T17:13:31Z</dc:date>
    </item>
  </channel>
</rss>

