<?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 as variable into another set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-as-variable-into-another-set-analysis/m-p/822702#M667887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have solved the problem myself.&lt;/P&gt;&lt;P&gt;I forget to exclude &lt;SPAN style="text-decoration: underline;"&gt;the selection in my calendar&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My working set analysis&lt;/STRONG&gt; looks now like that.&lt;/P&gt;&lt;P&gt;= Sum({&amp;lt;&lt;SPAN style="text-decoration: underline;"&gt;Calendar.Jahr=, Calendar.Quartal=, Calendar.Monat=, Calendar.EindeutigerMonat=,&lt;/SPAN&gt; %Datum={'&amp;gt;=$(&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vStart_PriorYear&lt;/STRONG&gt;)&amp;lt;=$(&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vEnd_PriorYear&lt;/STRONG&gt;)'}&amp;gt;} [Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyways for your quick response &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2014 10:22:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-26T10:22:10Z</dc:date>
    <item>
      <title>Set Analysis as variable into another set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-as-variable-into-another-set-analysis/m-p/822700#M667885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need your help with a set analysis problem. I have defined variables by using set analysis. If I put them into a textbox I get the right result.&lt;/P&gt;&lt;P&gt;Here two examples:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vStart_PriorYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=if (vOhneAuswahl = 0,&amp;nbsp; date(AddYears(YearStart(Min({&amp;lt;%Artikelnr=,%Statistikklasse=,%KreditorNr=&amp;gt;} today())),-1)),&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(MonthStart(Min({&amp;lt;%Artikelnr=,%Statistikklasse=,%KreditorNr=&amp;gt;} %Datum))&amp;gt; today(),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(AddYears(MonthStart(Min({&amp;lt;%Artikelnr=,%Statistikklasse=,%KreditorNr=&amp;gt;}%Datum)),-1))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vEnd_PriorYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=IF(MonthStart(Min({&amp;lt;%Artikelnr=,%Statistikklasse=,%KreditorNr=&amp;gt;} %Datum))&amp;gt; today(),&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;If(MonthEnd(Max({&amp;lt;%Artikelnr=,%Statistikklasse=,%KreditorNr=&amp;gt;} %Datum))&amp;lt;today(),&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(AddYears(MonthEnd(Max({&amp;lt;%Artikelnr=,%Statistikklasse=,%KreditorNr=&amp;gt;}%Datum)),-1)),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;date(AddYears(today(),-1))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Now I would like to use those variables in another set analysis. And that is my PROBLEM. I cannot make it work!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Here is the &lt;STRONG&gt;set analysis&lt;/STRONG&gt; that is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;= Sum({&amp;lt;%Datum={'&amp;gt;=$(&lt;STRONG&gt;vStart_PriorYear&lt;/STRONG&gt;)&amp;lt;=$(&lt;STRONG&gt;vEnd_PriorYear&lt;/STRONG&gt;)'}&amp;gt;} [Sales])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 08:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-as-variable-into-another-set-analysis/m-p/822700#M667885</guid>
      <dc:creator />
      <dc:date>2014-11-26T08:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis as variable into another set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-as-variable-into-another-set-analysis/m-p/822701#M667886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could be something to do with the date format of the values in your variables. Can you post a document that demonstrates the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 09:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-as-variable-into-another-set-analysis/m-p/822701#M667886</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-26T09:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis as variable into another set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-as-variable-into-another-set-analysis/m-p/822702#M667887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have solved the problem myself.&lt;/P&gt;&lt;P&gt;I forget to exclude &lt;SPAN style="text-decoration: underline;"&gt;the selection in my calendar&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My working set analysis&lt;/STRONG&gt; looks now like that.&lt;/P&gt;&lt;P&gt;= Sum({&amp;lt;&lt;SPAN style="text-decoration: underline;"&gt;Calendar.Jahr=, Calendar.Quartal=, Calendar.Monat=, Calendar.EindeutigerMonat=,&lt;/SPAN&gt; %Datum={'&amp;gt;=$(&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vStart_PriorYear&lt;/STRONG&gt;)&amp;lt;=$(&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vEnd_PriorYear&lt;/STRONG&gt;)'}&amp;gt;} [Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyways for your quick response &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 10:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-as-variable-into-another-set-analysis/m-p/822702#M667887</guid>
      <dc:creator />
      <dc:date>2014-11-26T10:22:10Z</dc:date>
    </item>
  </channel>
</rss>

