<?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 help with expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/250496#M1207480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you dont need to make a comparison, just use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;B&gt;if&lt;/B&gt;(&lt;B&gt;yeartodate&lt;/B&gt;(&lt;B&gt;[INVC DATE]&lt;/B&gt;,-1),&lt;B&gt;SUM&lt;/B&gt;(&lt;B&gt;[TOT AMT]&lt;/B&gt;), 0)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Apr 2010 22:24:36 GMT</pubDate>
    <dc:creator>mike_garcia</dc:creator>
    <dc:date>2010-04-07T22:24:36Z</dc:date>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/250495#M1207479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please help with my expression.&lt;/P&gt;&lt;P&gt;I am trying to get a sum of previous year to date sales.&lt;/P&gt;&lt;P&gt;&lt;B&gt;if&lt;/B&gt;(&lt;B&gt;date&lt;/B&gt;(&lt;B&gt;[INVC DATE]&lt;/B&gt;)=&lt;B&gt;yeartodate&lt;/B&gt;(&lt;B&gt;[INVC DATE]&lt;/B&gt;,-1),&lt;B&gt;SUM&lt;/B&gt;(&lt;B&gt;[TOT AMT]&lt;/B&gt;), 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once i get this right I will make it a flag in my Load but for now I am testing it as an expression&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Any help is much appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 22:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/250495#M1207479</guid>
      <dc:creator />
      <dc:date>2010-04-07T22:18:58Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/250496#M1207480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you dont need to make a comparison, just use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;B&gt;if&lt;/B&gt;(&lt;B&gt;yeartodate&lt;/B&gt;(&lt;B&gt;[INVC DATE]&lt;/B&gt;,-1),&lt;B&gt;SUM&lt;/B&gt;(&lt;B&gt;[TOT AMT]&lt;/B&gt;), 0)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 22:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/250496#M1207480</guid>
      <dc:creator>mike_garcia</dc:creator>
      <dc:date>2010-04-07T22:24:36Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/250497#M1207481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;do you want to try this:&lt;/P&gt;&lt;P&gt;if(year2date([INVC DATE], -1), sum(TOT AMT), 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 22:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/250497#M1207481</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-04-07T22:26:38Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/250498#M1207482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neither suggestions worked. Both outputted 0 but I have data ranging four years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 22:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/250498#M1207482</guid>
      <dc:creator />
      <dc:date>2010-04-07T22:35:37Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/250499#M1207483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you just need to switch the if() to inside the sum():&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(if(yeartodate([INVC DATE],-1),[TOT AMT]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 22:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/250499#M1207483</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-04-07T22:58:54Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/250500#M1207484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works with this, thanks John!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 23:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/250500#M1207484</guid>
      <dc:creator />
      <dc:date>2010-04-07T23:06:44Z</dc:date>
    </item>
  </channel>
</rss>

