<?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: Problem with a set analysis against a disconnected table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-a-set-analysis-against-a-disconnected-table/m-p/955098#M328308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis expressions are evaluated &lt;STRONG&gt;before&lt;/STRONG&gt; the aggregation inside your graph.&lt;/P&gt;&lt;P&gt;If you have a month dimension, Max(Date) would return same value for each row&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Dec 2015 11:18:25 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2015-12-05T11:18:25Z</dc:date>
    <item>
      <title>Problem with a set analysis against a disconnected table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-set-analysis-against-a-disconnected-table/m-p/955095#M328305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this is my first message here. First of all, thank a lot for your support. Sorry for my English.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a document with a few tables, one of them has all the data that I need to process and this table is linked with others. To make the work easier I copy all the data to a disconnected table and i use this table with a set analysis sentence.&lt;/P&gt;&lt;P&gt;My problem is when I try to do a set analysis against the disconected table the sentence doesn't work. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WorkTable:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[Date,Dim1,Dim2,Amount&lt;/P&gt;&lt;P&gt;01/01/2010,Software,Software,100&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;01/02/2010,Software,Software,200&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;01/03/2010,Software,Software,300&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;01/01/2011,Software,Software,400&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;01/01/2012,Software,Software,500&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;01/02/2012,Software,Software,600&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DisconnectedTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as DateDisc,&lt;/P&gt;&lt;P&gt;Dim1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Dim1Disc,&lt;/P&gt;&lt;P&gt;Dim2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Dim2Disc,&lt;/P&gt;&lt;P&gt;Amount&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as AmountDisc&lt;/P&gt;&lt;P&gt;FROM resident WorkTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my document I have a Year dimension and when the user choose Year=2012 i want to show the amount between the first date and the date of the dimension but for doing that i need to use the disconnected table because I have other different dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month - total amount&lt;/P&gt;&lt;P&gt;01 - 1500&lt;/P&gt;&lt;P&gt;02 - 2100&lt;/P&gt;&lt;P&gt;03 - 2100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this expression in a graph with a month dimension: sum({$&amp;lt;DateDisc={"&amp;lt;=$(=makedate(year(Max(Date)),month(Max(Date)),day(Max(Date))))"}&amp;gt;}AmountDisc) but this expression only show the following:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Month - total amount - =Max(Date)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;01 - 2100 - 31/01/2012&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;02 - 2100 - 29/02/2012&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;03 - 2100 - 31/03/2012&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;.....&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;What's the problem with the set analysis? Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 20:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-set-analysis-against-a-disconnected-table/m-p/955095#M328305</guid>
      <dc:creator />
      <dc:date>2015-12-04T20:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a set analysis against a disconnected table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-set-analysis-against-a-disconnected-table/m-p/955096#M328306</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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({$&amp;lt;DateDisc={"&amp;lt;=$(=(Max(Date))"}&amp;gt;}AmountDisc) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 23:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-set-analysis-against-a-disconnected-table/m-p/955096#M328306</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2015-12-04T23:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a set analysis against a disconnected table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-set-analysis-against-a-disconnected-table/m-p/955097#M328307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried but don't work. I get the same result. I think that qv don't apply the month of the dimension to max(date). Always the max(date) returns 31/12/YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i apply to a set expresion the dimension of a table? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I get a graph with a month dimension and one set expresion filtering a disconnected table using this dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Dec 2015 07:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-set-analysis-against-a-disconnected-table/m-p/955097#M328307</guid>
      <dc:creator />
      <dc:date>2015-12-05T07:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a set analysis against a disconnected table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-set-analysis-against-a-disconnected-table/m-p/955098#M328308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis expressions are evaluated &lt;STRONG&gt;before&lt;/STRONG&gt; the aggregation inside your graph.&lt;/P&gt;&lt;P&gt;If you have a month dimension, Max(Date) would return same value for each row&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Dec 2015 11:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-set-analysis-against-a-disconnected-table/m-p/955098#M328308</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-12-05T11:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a set analysis against a disconnected table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-set-analysis-against-a-disconnected-table/m-p/955099#M328309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, if you have the month or year in a dimension don't work property and you have always the same value for all row's&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Dec 2015 13:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-set-analysis-against-a-disconnected-table/m-p/955099#M328309</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2015-12-05T13:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a set analysis against a disconnected table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-set-analysis-against-a-disconnected-table/m-p/955100#M328310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, i undestand it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then, how can i resolve my problem if i can't use sets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example with this example data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[Date,group,amount&lt;/P&gt;&lt;P&gt;01/01/2010,Pas,1&lt;/P&gt;&lt;P&gt;01/02/2010,Pas,2&lt;/P&gt;&lt;P&gt;01/03/2010,Pas,3&lt;/P&gt;&lt;P&gt;01/04/2010,Pas,4&lt;/P&gt;&lt;P&gt;01/05/2010,Pas,5&lt;/P&gt;&lt;P&gt;01/06/2010,Pas,6&lt;/P&gt;&lt;P&gt;01/07/2010,Pas,7&lt;/P&gt;&lt;P&gt;01/01/2008,Act,1&lt;/P&gt;&lt;P&gt;01/02/2009,Act,2&lt;/P&gt;&lt;P&gt;01/03/2010,Act,3&lt;/P&gt;&lt;P&gt;01/01/2010,Oth,1&lt;/P&gt;&lt;P&gt;01/02/2010,Oth,2&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need something like this, selecting 2010 in year dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month - (acumulated Pas + acumulated Act)&lt;/P&gt;&lt;P&gt;01 - 1+1=2&lt;/P&gt;&lt;P&gt;02 - (1+2)+(1+2)=6&lt;/P&gt;&lt;P&gt;03 - (1+2+3)+(1+2+3)=12&lt;/P&gt;&lt;P&gt;04 - (1+2+3+4)+(1+2+3)=16&lt;/P&gt;&lt;P&gt;05 - (1+2+3+4+5)+(1+2+3)=21&lt;/P&gt;&lt;P&gt;06 - (1+2+3+4+5+6)+(1+2+3)=27&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Dec 2015 16:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-set-analysis-against-a-disconnected-table/m-p/955100#M328310</guid>
      <dc:creator />
      <dc:date>2015-12-05T16:46:11Z</dc:date>
    </item>
  </channel>
</rss>

