<?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 Converting if statement to set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Converting-if-statement-to-set-analysis/m-p/1256051#M855227</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;How can I convert the following if statement to set analysis expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if ([ReportDate] &amp;gt;=&amp;nbsp; ServiceStartDate and [ReportDate]&amp;lt; ServiceEndDate,ServiceDescription)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this set analysis expression the right way to do it for the above if condition &lt;/P&gt;&lt;P&gt;=aggr(Only({&amp;lt; [&lt;SPAN style="font-size: 13.3333px;"&gt;ReportDate&lt;/SPAN&gt;] = {"&amp;gt;=$(date(&lt;SPAN style="font-size: 13.3333px;"&gt;ServiceStartDate &lt;/SPAN&gt;))&amp;lt;$(date(&lt;SPAN style="font-size: 13.3333px;"&gt;ServiceEndDate&lt;/SPAN&gt;))"} &amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;ServiceDescription&lt;/SPAN&gt;), &lt;SPAN style="font-size: 13.3333px;"&gt;ServiceDescription&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Converting if statement to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-if-statement-to-set-analysis/m-p/1256051#M855227</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;How can I convert the following if statement to set analysis expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if ([ReportDate] &amp;gt;=&amp;nbsp; ServiceStartDate and [ReportDate]&amp;lt; ServiceEndDate,ServiceDescription)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this set analysis expression the right way to do it for the above if condition &lt;/P&gt;&lt;P&gt;=aggr(Only({&amp;lt; [&lt;SPAN style="font-size: 13.3333px;"&gt;ReportDate&lt;/SPAN&gt;] = {"&amp;gt;=$(date(&lt;SPAN style="font-size: 13.3333px;"&gt;ServiceStartDate &lt;/SPAN&gt;))&amp;lt;$(date(&lt;SPAN style="font-size: 13.3333px;"&gt;ServiceEndDate&lt;/SPAN&gt;))"} &amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;ServiceDescription&lt;/SPAN&gt;), &lt;SPAN style="font-size: 13.3333px;"&gt;ServiceDescription&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-if-statement-to-set-analysis/m-p/1256051#M855227</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Converting if statement to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-if-statement-to-set-analysis/m-p/1256052#M855228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems ok, but were you getting the right results or you are facing any issues? &lt;/P&gt;&lt;P&gt;Try this with slight changes.&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;= Only({&amp;lt; [&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ReportDate&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;] = {"&amp;gt;=$(= date(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ServiceStartDate, 'MM/DD/YYYY'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)) &amp;lt; $(= date(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ServiceEndDate, 'MM/DD/YYYY')&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)"} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ServiceDescription&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 21:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-if-statement-to-set-analysis/m-p/1256052#M855228</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-02-10T21:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Converting if statement to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-if-statement-to-set-analysis/m-p/1256053#M855229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you using your original expression, i.e. what is the context of it? And how are these fields related to each other?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you want / need to do a record based comparision, so set analysis is probably not the way to go here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 22:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-if-statement-to-set-analysis/m-p/1256053#M855229</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-02-10T22:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Converting if statement to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-if-statement-to-set-analysis/m-p/1256054#M855230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a course completion table which has course completion dates by students. I have one more date effective student status table, which has date effective student details(historical data). I need a set analysis or if expression to get historical student information as per the course completion date(i.e.) what was a student's status when he/she completed a course. Yes, it is a record based comparison. Kindly suggest!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 22:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-if-statement-to-set-analysis/m-p/1256054#M855230</guid>
      <dc:creator />
      <dc:date>2017-02-10T22:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Converting if statement to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-if-statement-to-set-analysis/m-p/1256055#M855231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be easier to help you if you can provide some sample data and your requested results, best by uploading a small sample QVW and a description of your expected charts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 22:51:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-if-statement-to-set-analysis/m-p/1256055#M855231</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-02-10T22:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Converting if statement to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-if-statement-to-set-analysis/m-p/1256056#M855232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi, as stated by Vishwarath you need to add the '=' sign before the date() function, and maybe adding a format to that date.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If this is a calculated dimension it also need your original aggr():&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=aggr(Only({&amp;lt; [&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ReportDate&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;] = {"&amp;gt;=$(=date(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ServiceStartDate &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;))&amp;lt;$(=date(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ServiceEndDate&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;))"} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ServiceDescription&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ServiceDescription&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If it's not &lt;SPAN style="font-size: 13.3333px;"&gt;a calculated dimension&lt;/SPAN&gt;, or you want to find a better way of doing it, follow the instuctions given by Stefan. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Feb 2017 00:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-if-statement-to-set-analysis/m-p/1256056#M855232</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-02-11T00:34:23Z</dc:date>
    </item>
  </channel>
</rss>

