<?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 Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622487#M229116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider using a date island.&lt;/P&gt;&lt;P&gt;In a date island you have an unrelated calendar with all possible dates between a start and end date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A selection from a date island dimension is passed to the expression with set analysis, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {&amp;lt;Budgetdate={"&amp;gt;=$(=min(DateIslandID))&amp;lt;=$(=max(DateIslandID))"}&amp;gt;}amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {&amp;lt;Actualdate={"&amp;gt;=$(=min(DateIslandID))&amp;lt;=$(=max(DateIslandID))"}&amp;gt;}amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Load the Date Island&lt;/P&gt;&lt;P&gt;Let vStartDate=Floor(MakeDate(1921));&lt;/P&gt;&lt;P&gt;//Let vEndDate=Floor(MakeDate(2014,12,31));&lt;/P&gt;&lt;P&gt;let vEndDate = Floor(YearEnd(today()));&lt;/P&gt;&lt;P&gt;Let vDiff=vEndDate-vStartDate+1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateIsland:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(TempDate) as DateIslandID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; class(Year(TempDate), 10) As Jaar_groep,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(TempDate) as Jaar,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year2Date(TempDate, 0, 1) as CurrentYtd,&lt;/P&gt;&lt;P&gt;&amp;nbsp; num(Month(TempDate)) As Maandnr,&lt;/P&gt;&lt;P&gt;&amp;nbsp; week(TempDate) as Week,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ceil(month(TempDate)/3) as Kwartaalnr;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;$(vStartDate)+RecNo()-1 As TempDate&lt;/P&gt;&lt;P&gt;AutoGenerate($(vDiff));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Apr 2014 08:36:35 GMT</pubDate>
    <dc:creator>Michiel_QV_Fan</dc:creator>
    <dc:date>2014-04-10T08:36:35Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622480#M229109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have this problem.&lt;/P&gt;&lt;P&gt;I have Budget and Invoiced. In my model these are NOT concatenated into the same table and they wont be.&lt;/P&gt;&lt;P&gt;So I´m looking for a set Analys to find a solution for this. I need that PeriodYYYYMM "knows" that it should be the same as in BudgetMonth for all BudgetMonth.&amp;nbsp; sum({$&amp;lt;PeriodYYYYMM={"$(=(BudgetMonth))"}&amp;gt;}[Recorded amount]) is my expression.&lt;/P&gt;&lt;P&gt;If I select one BudgetMonth it will works but I want to se all Month.&lt;/P&gt;&lt;P&gt;These 2 fields dont have any connection to each other, both are comming from dimension tables in my model.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2014-04-10_0816.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/56952_2014-04-10_0816.png" style="width: 620px; height: 346px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 06:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622480#M229109</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2014-04-10T06:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622481#M229110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please share your sample data file in probably excel format with reduced data....?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 07:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622481#M229110</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-10T07:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622482#M229111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ONCE TRY WITH &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({$&amp;lt;PeriodYYYYMM={"$(=MAX(BudgetMonth))"}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 07:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622482#M229111</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-04-10T07:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622483#M229112</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;works only if a select one month at the time. if I dont do any selection it will gives me 201412, not correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 08:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622483#M229112</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2014-04-10T08:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622484#M229113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use the =concat() function in order to create a string which includes all months to display. This you can then put into set analysis.&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({$&amp;lt;PeriodYYYYMM={"$(=Concat(distinct BudgetMonth,','))"}&amp;gt;}&lt;/SPAN&gt;&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;"&gt;Play around with the syntax first, though, since I'm not sure the above will work straight away.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 08:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622484#M229113</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-04-10T08:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622485#M229114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the data model I think &lt;A href="https://community.qlik.com/qlik-users/85977"&gt;Martin Mahler&lt;/A&gt;&amp;nbsp; solution will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not just create a field PeriodYYYYMM in Budgets with the same value as BudgetMonth&amp;nbsp; and created a link?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also try =&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({$&amp;lt;PeriodYYYYMM=BudgetMonth}&amp;gt; }&amp;nbsp; [Recorded amount] )&lt;/SPAN&gt;&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;"&gt;Richard&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;QlikCentral.Com&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 08:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622485#M229114</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2014-04-10T08:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622486#M229115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes I have test this, concat will gives me ALL (the total) of Invoiced in every BudgetMonth field.&lt;/P&gt;&lt;P&gt;I still need to aggregate this value down to Month level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 08:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622486#M229115</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2014-04-10T08:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622487#M229116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider using a date island.&lt;/P&gt;&lt;P&gt;In a date island you have an unrelated calendar with all possible dates between a start and end date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A selection from a date island dimension is passed to the expression with set analysis, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {&amp;lt;Budgetdate={"&amp;gt;=$(=min(DateIslandID))&amp;lt;=$(=max(DateIslandID))"}&amp;gt;}amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {&amp;lt;Actualdate={"&amp;gt;=$(=min(DateIslandID))&amp;lt;=$(=max(DateIslandID))"}&amp;gt;}amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Load the Date Island&lt;/P&gt;&lt;P&gt;Let vStartDate=Floor(MakeDate(1921));&lt;/P&gt;&lt;P&gt;//Let vEndDate=Floor(MakeDate(2014,12,31));&lt;/P&gt;&lt;P&gt;let vEndDate = Floor(YearEnd(today()));&lt;/P&gt;&lt;P&gt;Let vDiff=vEndDate-vStartDate+1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateIsland:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(TempDate) as DateIslandID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; class(Year(TempDate), 10) As Jaar_groep,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(TempDate) as Jaar,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year2Date(TempDate, 0, 1) as CurrentYtd,&lt;/P&gt;&lt;P&gt;&amp;nbsp; num(Month(TempDate)) As Maandnr,&lt;/P&gt;&lt;P&gt;&amp;nbsp; week(TempDate) as Week,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ceil(month(TempDate)/3) as Kwartaalnr;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;$(vStartDate)+RecNo()-1 As TempDate&lt;/P&gt;&lt;P&gt;AutoGenerate($(vDiff));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 08:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/622487#M229116</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2014-04-10T08:36:35Z</dc:date>
    </item>
  </channel>
</rss>

