<?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 This set analisys should work! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177482#M501926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nope...I´ve tried this one, at least it don´t return zeroes..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jan 2011 15:25:42 GMT</pubDate>
    <dc:creator>fernandotoledo</dc:creator>
    <dc:date>2011-01-20T15:25:42Z</dc:date>
    <item>
      <title>This set analisys should work!</title>
      <link>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177480#M501924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;This example shows something strange, a simple set analisys statement using a date field that don´t work, and I think it should!&lt;/P&gt;&lt;P&gt;This is the expression:&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;Sum ({&amp;lt; PERIOD = {$(=max(PERIOD))} &amp;gt;} VALUE)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Any sugestions?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 14:08:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177480#M501924</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2011-01-20T14:08:00Z</dc:date>
    </item>
    <item>
      <title>This set analisys should work!</title>
      <link>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177481#M501925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt; PERIOD = {"=$(=max(PERIOD))"} &amp;gt;} VALUE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 15:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177481#M501925</guid>
      <dc:creator />
      <dc:date>2011-01-20T15:16:51Z</dc:date>
    </item>
    <item>
      <title>This set analisys should work!</title>
      <link>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177482#M501926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nope...I´ve tried this one, at least it don´t return zeroes..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 15:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177482#M501926</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2011-01-20T15:25:42Z</dc:date>
    </item>
    <item>
      <title>This set analisys should work!</title>
      <link>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177483#M501927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've try that with your example and it returns values. What do you specifically expect to be returned?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 15:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177483#M501927</guid>
      <dc:creator />
      <dc:date>2011-01-20T15:36:12Z</dc:date>
    </item>
    <item>
      <title>This set analisys should work!</title>
      <link>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177484#M501928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your concern. It should bring "0" to all lines but the last, wich value is associated with the last selected month. Like the second column in the example. But to do that one, I brought the date field as number using num(X,'0') in the script.&lt;/P&gt;&lt;P&gt;The fact is that the expression should work with date the same way it work with numbers... with no further format manipulation...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 15:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177484#M501928</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2011-01-20T15:54:10Z</dc:date>
    </item>
    <item>
      <title>This set analisys should work!</title>
      <link>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177485#M501929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your PERIODS are string values. Your PERIOD_NUMs are numbers. In your second expression, you can see it is returning 40878 for the element set. In Set Analysis, you have to be careful that the formats match exactly. You need it to return:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum ({&amp;lt; PERIOD = {'dez 2011'} &amp;gt;} VALUE)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I couldn't get that using the Date() function, but I was able to do it using Month(), Year() and the ascii code for a blank space. Try this:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum ({&amp;lt; PERIOD = {'$(=month(max(PERIOD)) &amp;amp; Chr(32) &amp;amp; Year(max(PERIOD)))'} &amp;gt;} VALUE)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 16:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177485#M501929</guid>
      <dc:creator />
      <dc:date>2011-01-20T16:01:46Z</dc:date>
    </item>
    <item>
      <title>This set analisys should work!</title>
      <link>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177486#M501930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miller,&lt;/P&gt;&lt;P&gt;You are right!&lt;/P&gt;&lt;P&gt;But my point is that the PERIOD field is DUAL (string and number, such as month), so it should work either way. It looks like qlikview can only work with the numeric value of the fields when evaluating Set Analisys statements.&lt;/P&gt;&lt;P&gt;I should change the topic from question to discussion!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 16:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177486#M501930</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2011-01-20T16:12:04Z</dc:date>
    </item>
    <item>
      <title>This set analisys should work!</title>
      <link>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177487#M501931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't look like you actually defined it as Dual in your load script. I don't think it matters though, even using Dual(), the Set Analysis doesn't seem to work. I wouldn't say QlikView can only work with numeric values, because my expression uses the string values.&lt;/P&gt;&lt;P&gt;I would say that Set Analysis does not work with the numeric piece of a dual field. I had never come across this issue before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 16:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177487#M501931</guid>
      <dc:creator />
      <dc:date>2011-01-20T16:28:41Z</dc:date>
    </item>
    <item>
      <title>This set analisys should work!</title>
      <link>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177488#M501932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, its dual: &lt;B&gt;dual MonthName (date[, period_no = 0])&lt;/B&gt;&lt;/P&gt;&lt;P&gt;And I agree that it don´t work with the numeric piece of a dual field.&lt;/P&gt;&lt;P&gt;But what´s funny is that if you create the field using monthname() you get a result, if you use DATE(monthstart(),'MMM YYYY') you get another one!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 16:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177488#M501932</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2011-01-20T16:49:00Z</dc:date>
    </item>
    <item>
      <title>This set analisys should work!</title>
      <link>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177489#M501933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({&amp;lt;PERIOD={&lt;B&gt;&lt;I&gt;$(=GetFieldSelections(PERIOD))&lt;/I&gt;&lt;/B&gt;}&amp;gt;} VALUE)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 16:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-set-analisys-should-work/m-p/177489#M501933</guid>
      <dc:creator />
      <dc:date>2011-01-20T16:52:49Z</dc:date>
    </item>
  </channel>
</rss>

