<?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: Pick match or Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pick-match-or-Set-Analysis/m-p/1373639#M419528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andrew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for spending the time to answer my question. It makes sense now and really appreciate your explanation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Aug 2017 19:40:41 GMT</pubDate>
    <dc:creator>helen_pip</dc:creator>
    <dc:date>2017-08-09T19:40:41Z</dc:date>
    <item>
      <title>Pick match or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-match-or-Set-Analysis/m-p/1373633#M419522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a button called Type and when the user clicks on it, ,,y expression is designed to show the relevant value. However my expression is using an If statement and I would like to try and use set analysis instead, so it only evaluates the required data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Button is called "Type"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(TYPE = 'INCOMPLETE',&lt;/P&gt;&lt;P&gt;max({&amp;lt;Month,QuarterName,FiscalYear,FactDate={'$(=$(e_RTT_Max_Date))'}&amp;gt;}DAYS_WAIT)/7&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;If(TYPE = 'ADM' OR TYPE = 'NON ADM',&lt;/P&gt;&lt;P&gt;max({&amp;lt;Month,QuarterName,FiscalYear,MonthYear={'$(=$(e_RTT_Max_Month))'}&amp;gt;}DAYS_WAIT)/7&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know Pick(Match is better than and If, but I am not sure how I would better that as I want to use set analysis instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 14:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-match-or-Set-Analysis/m-p/1373633#M419522</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2017-08-09T14:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pick match or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-match-or-Set-Analysis/m-p/1373634#M419523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does If...else condition getting any performance issues for you? I don't think this equation kills the performance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 14:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-match-or-Set-Analysis/m-p/1373634#M419523</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-09T14:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pick match or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-match-or-Set-Analysis/m-p/1373635#M419524</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;Yes we are trying to get way from all If statements if necessary and try and use set analysis as much as possible, but am unsure how to fit this expression into Set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 14:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-match-or-Set-Analysis/m-p/1373635#M419524</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2017-08-09T14:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pick match or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-match-or-Set-Analysis/m-p/1373636#M419525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen,&lt;/P&gt;&lt;P&gt;If Type can only be '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ADM', 'NON ADM' or &lt;SPAN style="font-size: 13.3333px;"&gt;'INCOMPLETE' then we can simplify your expression to:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(TYPE = 'INCOMPLETE',&lt;/P&gt;&lt;P&gt;max({&amp;lt;Month,QuarterName,FiscalYear,FactDate={'$(=$(e_RTT_Max_Date))'}&amp;gt;}DAYS_WAIT)/7,&lt;/P&gt;&lt;P&gt;max({&amp;lt;Month,QuarterName,FiscalYear,MonthYear={'$(=$(e_RTT_Max_Month))'}&amp;gt;}DAYS_WAIT)/7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I much prefer Pick(Match(...)) to nested if statements but if you can &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;simplify to the above then the if statement is fine. I don't think any more set analysis would improve things.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Andrew&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 14:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-match-or-Set-Analysis/m-p/1373636#M419525</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-08-09T14:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pick match or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-match-or-Set-Analysis/m-p/1373637#M419526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andrew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion...It works and nice to know that it is OK to use an If statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, what if set analysis was insisted upon, how could I adapt the If statement to become set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 14:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-match-or-Set-Analysis/m-p/1373637#M419526</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2017-08-09T14:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pick match or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-match-or-Set-Analysis/m-p/1373638#M419527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen,&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; I don't think further set analysis is appropriate. Let's take a step back and think about the purpose of set analysis. Set analysis allows us to calculate expressions based on the records we choose independent of those associated with the current selected dimension values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;We &lt;/SPAN&gt;&lt;EM style="font-size: 13.3333px;"&gt;want&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; our choice of expression (either of the two expressions in the if statement) to be based on the user's selection of TYPE so there's no point is writing a piece of set analysis to evade the user's choice of TYPE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we are looking at a subset of the records &lt;SPAN style="font-size: 13.3333px;"&gt;associated with the current selections we can do this in different ways. We can use such expressions as Sum(if(Director &amp;lt;&amp;gt;'Ingmar Bergman', [Box Office Takings]). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In this case rewriting as Sum({$&amp;lt;Director -= {'Ingmar Bergman}&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;[Box Office Takings]) is preferred for performance and awareness of this is probably why the edict you've been asked to work to was proposed.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;An if statement inside an expression can be improved by re-writing it using set analysis but in your example it's the other way round - we have two expressions inside an if statement so it's a different situation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Kind regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Andrew&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 15:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-match-or-Set-Analysis/m-p/1373638#M419527</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-08-09T15:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pick match or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-match-or-Set-Analysis/m-p/1373639#M419528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andrew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for spending the time to answer my question. It makes sense now and really appreciate your explanation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 19:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-match-or-Set-Analysis/m-p/1373639#M419528</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2017-08-09T19:40:41Z</dc:date>
    </item>
  </channel>
</rss>

