<?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: Error within expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-within-expression/m-p/998193#M967113</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;max(Year-1)&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;should be&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;Max(Year)-1&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Oct 2015 13:44:59 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2015-10-05T13:44:59Z</dc:date>
    <item>
      <title>Error within expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-within-expression/m-p/998192#M967112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I create two variables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vWeekSelected&lt;/P&gt;&lt;P&gt;=if(IsNull(GetFieldSelections(Week,'*')),Year={$(=max(Year)),Weekyear= {$(=max(Weekyear))})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vLastYearSelected&lt;/P&gt;&lt;P&gt;=if(IsNull(GetFieldSelections(Week,'*')),Year={$(=max(Year-1)),Weekyear= {$(=max(Weekyear-1))})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I declare two expressions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pricethisyear &lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;$(&lt;SPAN style="font-size: 13.3333px;"&gt;vWeekSelected&lt;/SPAN&gt;)&amp;gt;} [Prix de vente TTC])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;pricelastyear &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sum( {&amp;lt;$(vLastYearSelected)&amp;gt;} [Prix de vente TTC])&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; pricethisyear and &lt;SPAN style="font-size: 13.3333px;"&gt;pricelastyear&amp;nbsp; return the same value which is wrong . How to correct it ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 13:42:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-within-expression/m-p/998192#M967112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-05T13:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error within expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-within-expression/m-p/998193#M967113</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;max(Year-1)&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;should be&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;Max(Year)-1&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 13:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-within-expression/m-p/998193#M967113</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-10-05T13:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error within expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-within-expression/m-p/998194#M967114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The set modifier is not ended properly for Year parameter, use the below&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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vWeekSelected&lt;/SPAN&gt;=if(IsNull(GetFieldSelections(Week,'*')),Year={$(=max(Year))},Weekyear= {$(=max(Weekyear))})&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vLastYearSelected&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if(IsNull(GetFieldSelections(Week,'*')),Year={$(=max(Year-1))},Weekyear= {$(=max(Weekyear-1))})&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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;Also please check if the field names are used correct (Case sensitive)&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 14:07:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-within-expression/m-p/998194#M967114</guid>
      <dc:creator>malini_qlikview</dc:creator>
      <dc:date>2015-10-05T14:07:34Z</dc:date>
    </item>
  </channel>
</rss>

