<?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: convert if statement to set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set-analysis/m-p/434214#M161852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-size: 11px; background-color: #ffffff; font-family: Arial;"&gt;aggr(maxstring({$&amp;lt;TIMEKEEPER.INACTIVE={'N'}&amp;gt;}TIMEKEEPER_HIST.DETAILS),&lt;SPAN style="color: #737373; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;TIMEKEEPER.INACTIVE&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-size: 11px; background-color: #ffffff; font-family: Arial;"&gt;hope this helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Feb 2013 17:24:07 GMT</pubDate>
    <dc:creator>SunilChauhan</dc:creator>
    <dc:date>2013-02-13T17:24:07Z</dc:date>
    <item>
      <title>convert if statement to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set-analysis/m-p/434213#M161851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I'm relatively new to Qlikview and am still getting to grips with set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have a straight chart with a Cyclic group (7 fields) and 6 expressions. I have made one of the cyclic groups conditional with the 'if' statement '&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #00b400; font-size: 8pt;"&gt;&lt;STRONG style="color: #00b400; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=if (TIMEKEEPER.INACTIVE = 'N', TIMEKEEPER_HIST.DETAILS) '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Both of the above are string fields.This works fine but takes an awfully long time to return any data. My understanding is that set analysis should make this much quicker, but I can't seem to get the equivant expression....everything I try results in 'Error in calculated dimension' being displayed on the chart for that dimension. e.g.&amp;nbsp; &lt;SPAN style="font-size: 8pt;"&gt;=maxstring({$&amp;lt;TIMEKEEPER.INACTIVE={'N'}&amp;gt;}TIMEKEEPER_HIST.DETAILS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me the equivalent set analysis expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks, Gavin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 17:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set-analysis/m-p/434213#M161851</guid>
      <dc:creator />
      <dc:date>2013-02-13T17:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: convert if statement to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set-analysis/m-p/434214#M161852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-size: 11px; background-color: #ffffff; font-family: Arial;"&gt;aggr(maxstring({$&amp;lt;TIMEKEEPER.INACTIVE={'N'}&amp;gt;}TIMEKEEPER_HIST.DETAILS),&lt;SPAN style="color: #737373; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;TIMEKEEPER.INACTIVE&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-size: 11px; background-color: #ffffff; font-family: Arial;"&gt;hope this helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 17:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set-analysis/m-p/434214#M161852</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2013-02-13T17:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: convert if statement to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set-analysis/m-p/434215#M161853</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;&amp;nbsp; according to my understanding,you max value will be changed based on Cyclic group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=max(&lt;SPAN style="color: #737373; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;{$&amp;lt;TIMEKEEPER.INACTIVE={'N'}&amp;gt;}&lt;/SPAN&gt; aggr(&lt;SPAN style="color: #737373; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;TIMEKEEPER_HIST.DETAILS),getcurrentfield(&lt;EM&gt;&lt;STRONG&gt;yourgroupname&lt;/STRONG&gt;&lt;/EM&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;what ever the dimension will be change based on that max value wll be pick.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/alert.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 19:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set-analysis/m-p/434215#M161853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-13T19:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: convert if statement to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set-analysis/m-p/434216#M161854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. I have tried that and, whilst an error is no longer generated, only a single row of data is returned (I'm expected around 150 rows once the "TIMEKEEPER.INACTIVE={'N'}" condition has been applied)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest how I might return all relevant rows of data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gavin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 09:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set-analysis/m-p/434216#M161854</guid>
      <dc:creator />
      <dc:date>2013-02-14T09:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: convert if statement to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set-analysis/m-p/434217#M161855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. The if statement / set analysis statement only needs to apply to a single field (&lt;SPAN style="background-color: #ffffff; font-family: Arial; color: #737373; font-size: 11px;"&gt;TIMEKEEPER_HIST.DETAILS&lt;/SPAN&gt;) in the cyclic group. The other fields in the group are returning the correct data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gavin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 09:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set-analysis/m-p/434217#M161855</guid>
      <dc:creator />
      <dc:date>2013-02-14T09:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: convert if statement to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set-analysis/m-p/434218#M161856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was very close - what I was actually looking for was &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=aggr(maxstring({$&amp;lt;TIMEKEEPER.INACTIVE={'N'}&amp;gt;}TIMEKEEPER_HIST.DETAILS),&lt;STRONG&gt;TIMEKEEPER_HIST.DETAILS&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gavin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 09:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-if-statement-to-set-analysis/m-p/434218#M161856</guid>
      <dc:creator />
      <dc:date>2013-02-15T09:11:18Z</dc:date>
    </item>
  </channel>
</rss>

