<?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 with InYearToDate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-with-InYearToDate/m-p/257846#M1204807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used following set analysis expression which gives me same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sum({&amp;lt;"=$(year(InvoiceDate))"="=$(year('2010-05-17'))"&amp;gt;} KZWI3)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 May 2010 21:08:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-18T21:08:13Z</dc:date>
    <item>
      <title>Sum with InYearToDate</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-InYearToDate/m-p/257843#M1204804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear guys,&lt;/P&gt;&lt;P&gt;I'm not able to solve an issue related a sum with InYearToDate&lt;/P&gt;&lt;P&gt;Firstly, the data I use are included in the year I'm analyzing so the 2 expressions below should give me the same result :&lt;/P&gt;&lt;P&gt;1) sum(var)&lt;/P&gt;&lt;P&gt;2) sum(if(InYearToDate (InvoiceDate.......... ),var)&lt;/P&gt;&lt;P&gt;but looking to attached file u will see for both expression different result.&lt;/P&gt;&lt;P&gt;In case of 2) it duplicate the values. Using DISTINCT solve the example I've but create problem in other case where the dimension I've to use give back just one row.&lt;/P&gt;&lt;P&gt;I've created just a fast example, that I attach, of the issue I have in my production environment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your helps&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 08:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-InYearToDate/m-p/257843#M1204804</guid>
      <dc:creator />
      <dc:date>2010-05-18T08:37:18Z</dc:date>
    </item>
    <item>
      <title>Sum with InYearToDate</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-InYearToDate/m-p/257844#M1204805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;Does anyone have an idea about it ?!&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 18:41:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-InYearToDate/m-p/257844#M1204805</guid>
      <dc:creator />
      <dc:date>2010-05-18T18:41:55Z</dc:date>
    </item>
    <item>
      <title>Sum with InYearToDate</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-InYearToDate/m-p/257845#M1204806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used following set analysis expression which gives me same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sum({&amp;lt;"=$(year(InvoiceDate))"="=$(year('2010-05-17'))"&amp;gt;} KZWI3)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 21:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-InYearToDate/m-p/257845#M1204806</guid>
      <dc:creator />
      <dc:date>2010-05-18T21:08:03Z</dc:date>
    </item>
    <item>
      <title>Sum with InYearToDate</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-InYearToDate/m-p/257846#M1204807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used following set analysis expression which gives me same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sum({&amp;lt;"=$(year(InvoiceDate))"="=$(year('2010-05-17'))"&amp;gt;} KZWI3)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 21:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-InYearToDate/m-p/257846#M1204807</guid>
      <dc:creator />
      <dc:date>2010-05-18T21:08:13Z</dc:date>
    </item>
    <item>
      <title>Sum with InYearToDate</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-InYearToDate/m-p/257847#M1204808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used following set analysis expression which gives me same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sum({&amp;lt;"=$(year(InvoiceDate))"="=$(year('2010-05-17'))"&amp;gt;} KZWI3)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 21:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-InYearToDate/m-p/257847#M1204808</guid>
      <dc:creator />
      <dc:date>2010-05-18T21:08:23Z</dc:date>
    </item>
    <item>
      <title>Sum with InYearToDate</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-InYearToDate/m-p/257848#M1204809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Devang,&lt;/P&gt;&lt;P&gt;Thanks for your answer and it works in this case, but in my original report I've 2 column&lt;/P&gt;&lt;P&gt;One for this year Sales, the other one for year-1 Sales.&lt;/P&gt;&lt;P&gt;That's the reason why I used InYearToDate function that gives me 2010 sales till today, compare to 2009 sales till the same day of previous year.&lt;/P&gt;&lt;P&gt;How do I get the same using the Set Analysis ? 'Cause your selection above works fine just for the example, but If I had to use the same with 2 columns for different year I don't understand why InYearToDate function give me back data duplicated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 22:25:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-InYearToDate/m-p/257848#M1204809</guid>
      <dc:creator />
      <dc:date>2010-05-18T22:25:41Z</dc:date>
    </item>
  </channel>
</rss>

