<?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 Sum function text and fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-function-text-and-fields/m-p/300303#M1198536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please can you help me with the below expression:&lt;/P&gt;&lt;P&gt;= Sum ( {$&amp;lt;STTR_STATUS = {50, 99}, OrderType = {20}, FY= {"F"&amp;amp; Right(text(CURRENTYEAR),4)} &amp;gt;} OrderValue)&lt;/P&gt;&lt;P&gt;The formula below works for the current year however I can not get it to work for last year as above.&lt;/P&gt;&lt;P&gt;= Sum ( {$&amp;lt;STTR_STATUS = {50, 99}, OrderType = {20}, FY= {$(CURRENTYEAR)} &amp;gt;} OrderValue)&lt;/P&gt;&lt;P&gt;CURRENTYEAR is a variable defined in the script.&lt;/P&gt;&lt;P&gt;I have tried several variations of the above code without sucess. Any suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks, Gareth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jan 2011 16:47:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-17T16:47:37Z</dc:date>
    <item>
      <title>Sum function text and fields</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-function-text-and-fields/m-p/300303#M1198536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please can you help me with the below expression:&lt;/P&gt;&lt;P&gt;= Sum ( {$&amp;lt;STTR_STATUS = {50, 99}, OrderType = {20}, FY= {"F"&amp;amp; Right(text(CURRENTYEAR),4)} &amp;gt;} OrderValue)&lt;/P&gt;&lt;P&gt;The formula below works for the current year however I can not get it to work for last year as above.&lt;/P&gt;&lt;P&gt;= Sum ( {$&amp;lt;STTR_STATUS = {50, 99}, OrderType = {20}, FY= {$(CURRENTYEAR)} &amp;gt;} OrderValue)&lt;/P&gt;&lt;P&gt;CURRENTYEAR is a variable defined in the script.&lt;/P&gt;&lt;P&gt;I have tried several variations of the above code without sucess. Any suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks, Gareth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jan 2011 16:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-function-text-and-fields/m-p/300303#M1198536</guid>
      <dc:creator />
      <dc:date>2011-01-17T16:47:37Z</dc:date>
    </item>
    <item>
      <title>Sum function text and fields</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-function-text-and-fields/m-p/300304#M1198537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;P&gt;How about defining a variable called PRIORYEAR at the same point as CURRENTYEAR, but one yeat before?&lt;/P&gt;&lt;P style="font-style: italic"&gt;(Not sure how your first expression would produce data for the prior year, but the string calculation should be enclosed in $(=...), ie:&lt;/P&gt;&lt;P&gt;FY= {"$(='F'&amp;amp; Right(text(CURRENTYEAR),4))"}&lt;/P&gt;&lt;P&gt;Jonathan&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jan 2011 16:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-function-text-and-fields/m-p/300304#M1198537</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-01-19T16:13:49Z</dc:date>
    </item>
  </channel>
</rss>

