<?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 Expr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expr/m-p/721193#M1050687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe it's just an if:&lt;/P&gt;&lt;P&gt;If(DateField2=DateField1, DateField2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can't use set analisys to make that comparison (a different value for each row)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2014 10:55:29 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2014-10-29T10:55:29Z</dc:date>
    <item>
      <title>Set Analysis Expr</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expr/m-p/721190#M1050682</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;I have 2 date fields in my datamodel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 date field value is having multiple 2nd date field value as shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;DateField1&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateField2&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 231px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" width="91"&gt;24/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-left: none;" width="140"&gt;24/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;24/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;25/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;24/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;29/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;24/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;04/08/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;25/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;24/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;25/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;25/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;25/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;29/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;25/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;04/08/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;29/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;24/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;29/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;25/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;29/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;29/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;29/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;04/08/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;04/08/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;24/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;04/08/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;25/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;04/08/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;29/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;04/08/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;04/08/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;11/08/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;24/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;11/08/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;25/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;11/08/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;29/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;11/08/2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;04/08/2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the requirement is when i use the datefield1 as the dimension&amp;nbsp; and i need to get the below output for datefield2 in a straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 231px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="91"&gt;Datefield1&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="140"&gt;DateField2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;24/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;24/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;25/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;25/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;29/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;29/07/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;04/08/2014&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;04/08/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;11/08/2014&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 10:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expr/m-p/721190#M1050682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-29T10:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expr</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expr/m-p/721191#M1050684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the logic you want to use. There seems to be a mix of MIN, MAX and something else for the 11th&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 10:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expr/m-p/721191#M1050684</guid>
      <dc:creator>DavidFoster1</dc:creator>
      <dc:date>2014-10-29T10:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expr</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expr/m-p/721192#M1050686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 10:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expr/m-p/721192#M1050686</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-29T10:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expr</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expr/m-p/721193#M1050687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe it's just an if:&lt;/P&gt;&lt;P&gt;If(DateField2=DateField1, DateField2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can't use set analisys to make that comparison (a different value for each row)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 10:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expr/m-p/721193#M1050687</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-10-29T10:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expr</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expr/m-p/721194#M1050688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For each datefield1 value- i need the matching datefield2 value,if the matching value is not there then it should be null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the Datefield1 and Datefield2 values should be same if there exists a value for Datefield2, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 10:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expr/m-p/721194#M1050688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-29T10:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expr</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expr/m-p/721195#M1050689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks anbu.It worked as expected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 11:04:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expr/m-p/721195#M1050689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-29T11:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expr</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expr/m-p/721196#M1050690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Ruben Marin's Solution will work but I will advise you to modify the script and to create a new column with a flag when the two dateFields are matching:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;if(DateField2=DateField1,1,0) as Flag&lt;/P&gt;&lt;P&gt;from [...];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can write your set analysis like&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Flag={1}&amp;gt;}fieldToSum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you will follow Qlikview guidelines and the performance will be better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Dany&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 11:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expr/m-p/721196#M1050690</guid>
      <dc:creator>dferreirogft</dc:creator>
      <dc:date>2014-10-29T11:05:37Z</dc:date>
    </item>
  </channel>
</rss>

