<?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 Hi in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hi/m-p/271177#M101665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a question which I have treid to solve for days. I would like to create a table which contains comperative sales quantity. Forexample; I calculate sale quantity for cuurent year as a Year To Date. Namely, Today is 15.08.2011 and I can calculate for current years until this date without any problem. There is no problem. But at the table to see sales change; I would like to bring previous sales quantity to another column as year to date. Namely 15.08.2010. And automotically everyday I want to see cumululative comperative sales quantity. (for Tomorrow; 16.08.2011 - 16.08.2010) I sturggle to bring previous years' value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To reach this aim I've calculated this expression as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿﻿sum({&amp;lt;sts_Fatura_Yil={2010},sts_Stok_Group_Durum={KATI},Yeartodate(today())-1),makedate(2010)&amp;gt;}sts_miktar)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the expression the names which begins with sts_ expressions are field and they have been described truely by our IT tem's member.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyone to help me pls ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Aug 2011 07:18:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-15T07:18:14Z</dc:date>
    <item>
      <title>Hi</title>
      <link>https://community.qlik.com/t5/QlikView/Hi/m-p/271177#M101665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a question which I have treid to solve for days. I would like to create a table which contains comperative sales quantity. Forexample; I calculate sale quantity for cuurent year as a Year To Date. Namely, Today is 15.08.2011 and I can calculate for current years until this date without any problem. There is no problem. But at the table to see sales change; I would like to bring previous sales quantity to another column as year to date. Namely 15.08.2010. And automotically everyday I want to see cumululative comperative sales quantity. (for Tomorrow; 16.08.2011 - 16.08.2010) I sturggle to bring previous years' value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To reach this aim I've calculated this expression as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿﻿sum({&amp;lt;sts_Fatura_Yil={2010},sts_Stok_Group_Durum={KATI},Yeartodate(today())-1),makedate(2010)&amp;gt;}sts_miktar)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the expression the names which begins with sts_ expressions are field and they have been described truely by our IT tem's member.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyone to help me pls ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 07:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi/m-p/271177#M101665</guid>
      <dc:creator />
      <dc:date>2011-08-15T07:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hi</title>
      <link>https://community.qlik.com/t5/QlikView/Hi/m-p/271178#M101666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Have you tried usingthe Year field? I mean using the Max(sts_Fatura_Yil) -1 gives the previous year.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: black; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;﻿﻿﻿&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: black; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;SUM({&amp;lt;sts_Fatura_Yil={$(=Max(sts_Fatura_Yil)-1)},sts_Stok_Group_Durum={KATI},Yeartodate(today())-1),makedate(2010)&amp;gt;}sts_miktar)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;If this doesn’t work... please can you postsample QV document with scrambled data?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;Thanks - DV&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 09:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi/m-p/271178#M101666</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-08-15T09:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hi</title>
      <link>https://community.qlik.com/t5/QlikView/Hi/m-p/271179#M101667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;within a set expression, between the "&amp;lt; &amp;gt;", you use field selections, which consists of a field name, an assignment operator (like =, but also e.g += possible) and an element set expression (please compare to the Help file).&lt;/P&gt;&lt;P&gt;In your expression, I think&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Yeartodate(today())-1),makedate(2010)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is not a valid expression in that context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeartodate returns a boolean value (and I believe true in most circumstance, except for eg. year change or script run and document opening differ significantly), makedate returns January 1st, 2010 in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what you were trying to achieve with that expression, if I would like to see sales for past year to date, I would probably try limiting a Date field (like an order date) like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;OrderDate= {"&amp;gt;=$(=yearstart(addmonths(today(),-12)))&amp;lt;=$(=addmonths(today(),-12)) "}&amp;gt;}&amp;nbsp; Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I am using dollar sign expansion to call QlikView functions inside the assignment to field). This should read be as: &lt;/P&gt;&lt;P&gt;Assign the date range (start of the year of today minus 12 Months, today minus 12 Months) to OrderDate as selection for the sum calculation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to clear other Fields of type Date within the set expression like,&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;OrderDate= {"&amp;gt;=$(=yearstart(addmonths(today(),-12)))&amp;lt;=$(=addmonths(today(),-12)) "}, Month=, Year=, Day= &amp;gt;}&amp;nbsp; Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please have a look also to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://iqlik.wordpress.com/2010/11/27/the-magic-of-set-analysis-point-in-time-reporting/"&gt;http://iqlik.wordpress.com/2010/11/27/the-magic-of-set-analysis-point-in-time-reporting/&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I found this quite useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 09:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi/m-p/271179#M101667</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-15T09:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hi</title>
      <link>https://community.qlik.com/t5/QlikView/Hi/m-p/271180#M101668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your kindly and fast help. Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 06:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi/m-p/271180#M101668</guid>
      <dc:creator />
      <dc:date>2011-08-17T06:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hi</title>
      <link>https://community.qlik.com/t5/QlikView/Hi/m-p/271181#M101669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;﻿Thank you very much for your help Dear. It was kind of you. Best Regards&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 06:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi/m-p/271181#M101669</guid>
      <dc:creator />
      <dc:date>2011-08-17T06:44:48Z</dc:date>
    </item>
  </channel>
</rss>

