<?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: set analisys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/426842#M1161474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, I made a mistake. MY_MONTH is a DB field and represent the purchase_month.&lt;/P&gt;&lt;P&gt;For the current year, I've to sum all the purchase values, till the current month (month(today())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2012 13:03:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-11-13T13:03:14Z</dc:date>
    <item>
      <title>set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/426838#M1161470</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'm trying to use the following expression, but it doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;MY_YEAR={$(=Only(year(today())-1))}, MY_MONTH= {"&amp;lt;= 11 "}&amp;gt;} MY_VALUE&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My aim is to calculate the sum of purchase, regarding the previous year and till november&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help please !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 23:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/426838#M1161470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-12T23:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/426839#M1161471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might cope with at least two pitfalls here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If user can select in any calendar field other than MY_YEAR and MY_MONTH, you need to explicitely clear these fields to avoid inconsistent selection state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;sum({&amp;lt;MY_YEAR={$(=Only(year(today())-1))}, MY_MONTH= {"&amp;lt;= 11 "}&lt;STRONG&gt;, MY_DATE= &lt;/STRONG&gt;&amp;gt;} MY_VALUE&lt;/TD&gt;&lt;TD&gt;)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If MY_MONTH is not numeric only, but a dual, you might need to compare the text value in the set modifier (i.e. try using a numeric Month field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually don't use year and month for set modification, but a Date field, then clear all other fields.&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>Tue, 13 Nov 2012 00:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/426839#M1161471</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-13T00:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/426840#M1161472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry but I didn't catch what you mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've to build two different expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the first case, the purchase amount for the whole 2011&lt;/P&gt;&lt;P&gt;in the secon case the pruchase amount till current month &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the first case MY_YEAR is a DB field and MY_MONTH is needless&lt;/P&gt;&lt;P&gt;In the second expression, MY_YEAR is still a DB FIELD and MY_MONTH is the result of year(tiday())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;I'm sorry but I'm really confused&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 12:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/426840#M1161472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-13T12:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/426841#M1161473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's up to me to be a little confused &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;So in the first case MY_YEAR is a DB field and MY_MONTH is needless&lt;/P&gt;&lt;P&gt;In the second expression, MY_YEAR is still a DB FIELD and MY_MONTH is the result of year(tiday())&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;MY_MONTH is the result of year(today()) ? It's not a field in the data model describing a month?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 12:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/426841#M1161473</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-13T12:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/426842#M1161474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, I made a mistake. MY_MONTH is a DB field and represent the purchase_month.&lt;/P&gt;&lt;P&gt;For the current year, I've to sum all the purchase values, till the current month (month(today())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 13:03:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/426842#M1161474</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-13T13:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/426843#M1161475</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;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=month(today()) does not return 11 it returns nov.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(month(today())&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Dennis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 13:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/426843#M1161475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-13T13:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/426844#M1161476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 14:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/426844#M1161476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-13T14:47:34Z</dc:date>
    </item>
  </channel>
</rss>

