<?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 with if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939612#M962913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that is right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Oct 2015 15:37:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-08T15:37:14Z</dc:date>
    <item>
      <title>Set Analysis with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939608#M962909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I put this in a set analysis expression?&lt;/P&gt;&lt;P&gt;NextEventDate&amp;gt;(if(ASofDate&amp;gt;=vAsofDateFrom and ASofDate&amp;lt;vAsofDateTo , ASofDate))&lt;/P&gt;&lt;P&gt;TIA for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 15:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939608#M962909</guid>
      <dc:creator />
      <dc:date>2015-10-08T15:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939609#M962910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only({&amp;lt;ASofDate = {"$(='&amp;gt;=' &amp;amp; $(vAsofDateFrom) &amp;amp; '&amp;lt;' &amp;amp; $(vAsofDateTo))"}&amp;gt;} ASofDate)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming the above will only result in a single ASofDate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 15:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939609#M962910</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-08T15:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939610#M962911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean...&lt;/P&gt;&lt;P&gt;Only({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt;&lt;STRONG&gt;NextEventDate&lt;/STRONG&gt;&lt;/SPAN&gt;= {"$(='&amp;gt;=' &amp;amp; $(vAsofDateFrom) &amp;amp; '&amp;lt;' &amp;amp; $(vAsofDateTo))"}&amp;gt;} ASofDate)&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 15:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939610#M962911</guid>
      <dc:creator />
      <dc:date>2015-10-08T15:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939611#M962912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you are doing here -&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NextEventDate&amp;gt;(if(ASofDate&amp;gt;=vAsofDateFrom and ASofDate&amp;lt;vAsofDateTo , ASofDate))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you checking if NextEventDate is greater than the right hand side of the expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 15:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939611#M962912</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-08T15:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939612#M962913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that is right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 15:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939612#M962913</guid>
      <dc:creator />
      <dc:date>2015-10-08T15:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939613#M962914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share few lines of sample data? It would be easier to understand your actual requirement looking at some data, rather than guessing what it might be&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 15:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939613#M962914</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-08T15:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939614#M962915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response. Unfortunately I can not share the data. But this is the expression I am trying in set analysis.&lt;/P&gt;&lt;P&gt;count(distinct (if([CMRNextDate]&amp;gt;AddYears(ASofDate,vFrequency) and [CMRDate]&amp;lt;=AddYears(ASofDate,vFrequency)&lt;/P&gt;&lt;P&gt;and [NextDate]&amp;gt;(if(ASofDate&amp;gt;=vAsofDateFrom and ASofDate&amp;lt;vAsofDateTo , ASofDate)) and EventDate&amp;lt;=(if(ASofDate&amp;gt;=vAsofDateFrom and ASofDate&amp;lt;vAsofDateTo , ASofDate)), CMR_FACT_KEY)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 15:53:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939614#M962915</guid>
      <dc:creator />
      <dc:date>2015-10-08T15:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939615#M962916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you may be share some made up data which is similar to actual data. May be someone else can help you without the sample data, but for me, I would like to understand what you are trying to do and how it can be accomplished with set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for not being too helpful &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 16:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-if-statement/m-p/939615#M962916</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-08T16:26:38Z</dc:date>
    </item>
  </channel>
</rss>

