<?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: Help with a formula please in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-a-formula-please/m-p/86659#M768173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can he also write like this sunny?&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; font-size: 13px;"&gt;= Sum({&amp;lt; SUBTOTAL_2 = {"$(= year(DOCDATE_2) = '2018')" } &amp;gt;}SUBTOTAL_2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2018 21:24:05 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2018-06-27T21:24:05Z</dc:date>
    <item>
      <title>Help with a formula please</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-formula-please/m-p/86657#M768171</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 am new to QlikView (2 days) and am trying to create an expression to give me a number of columns of sales document totals (sum of &lt;SPAN style="font-size: 13.3333px;"&gt;SUBTOTAL_2) &lt;/SPAN&gt;by year, based on a document date (&lt;SPAN style="font-size: 13.3333px;"&gt;DOCDATE_2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the one below but it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Col 1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;=(year(DOCDATE_2))={2018}&amp;gt;}SUBTOTAL_2)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Col 2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;=(year(DOCDATE_2))={2017}&amp;gt;}SUBTOTAL_2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;etc.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone correct my errors please or suggest an alternative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-formula-please/m-p/86657#M768171</guid>
      <dc:creator>mikepitcher</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a formula please</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-formula-please/m-p/86658#M768172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the year field in the script while loading the data like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DOCDATE_2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(DOCDATE_2) as YEAR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ...;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then try these&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;YEAR = {'2018'}&amp;gt;} SUBTOTAL_2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;Sum({&amp;lt;YEAR = {'2017'}&amp;gt;} SUBTOTAL_2)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 15:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-formula-please/m-p/86658#M768172</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-27T15:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a formula please</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-formula-please/m-p/86659#M768173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can he also write like this sunny?&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; font-size: 13px;"&gt;= Sum({&amp;lt; SUBTOTAL_2 = {"$(= year(DOCDATE_2) = '2018')" } &amp;gt;}SUBTOTAL_2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 21:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-formula-please/m-p/86659#M768173</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-06-27T21:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a formula please</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-formula-please/m-p/86660#M768174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, This won't work. But mostly below solutions will work when you don't want to disturb script. But, I won't think to do in UI instead my suggestion always script in this way. This can help mostly "&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Performance Tuning&lt;/STRONG&gt;&lt;/SPAN&gt;" concepts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUBTOTAL_2&lt;/SPAN&gt;={"=Year(DOCDATE_2)=2018" } &amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUBTOTAL_2&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;= Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUBTOTAL_2&lt;/SPAN&gt;={"=Year(DOCDATE_2)=2017" } &amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUBTOTAL_2&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Alternatively, You can also try this way&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;DOCDATE_2 = {"=Match(Year(DOCDATE_2),Year(Max(TOTAL DOCDATE_2)))"}&amp;gt;} &lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SUBTOTAL_2&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;DOCDATE_2 = {"=Match(Year(DOCDATE_2),Year(Max(TOTAL DOCDATE_2))-1)"}&amp;gt;} &lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SUBTOTAL_2&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 02:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-formula-please/m-p/86660#M768174</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-06-28T02:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a formula please</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-formula-please/m-p/86661#M768175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops you are right i do not need $ sign in this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 03:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-formula-please/m-p/86661#M768175</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-06-28T03:12:16Z</dc:date>
    </item>
  </channel>
</rss>

