<?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: Creating dynamic Either/Or Criteria in a Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-dynamic-Either-Or-Criteria-in-a-Set-Analysis/m-p/687177#M475859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Maybe this:&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;RT&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;={F},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New';"&gt;d01&lt;/SPAN&gt;&lt;SPAN style="color: black; font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New';"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;'I21*','I22*'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New';"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New';"&gt;d02&lt;/SPAN&gt;&lt;SPAN style="color: black; font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New';"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;'*'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New';"&gt;}&amp;gt;+&lt;SPAN style="font-style: inherit; font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;RT&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;={F},&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; color: maroon; font-size: 9pt; font-family: 'Courier New';"&gt;d01&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; color: black; font-size: 9pt; font-family: 'Courier New';"&gt;={&lt;STRONG style="color: #808080; font-family: 'Courier New'; font-size: 12px;"&gt;&lt;EM&gt;'R07'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; color: black; font-size: 9pt; font-family: 'Courier New';"&gt;},&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;d02={&lt;STRONG style="color: #808080; font-family: 'Courier New'; font-size: 12px;"&gt;&lt;EM&gt;'I21*','I22*'&lt;/EM&gt;&lt;/STRONG&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt; }RC)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2014 10:36:47 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-07-01T10:36:47Z</dc:date>
    <item>
      <title>Creating dynamic Either/Or Criteria in a Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-dynamic-Either-Or-Criteria-in-a-Set-Analysis/m-p/687176#M475858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here’s a problem of set analysis logic that I’m trying to resolve:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;The calculation in Chart 1 currently takes this form:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;RT&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={F}&amp;gt;}&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(((&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;d01&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;like&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; 'I21*') &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;d01&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;like&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; 'I22*') &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; ((&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;d01&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;like&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; 'R07*') &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; ((&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;d02&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;like&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; 'I21*') &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;d02&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;like&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; 'I22*'))))&lt;BR /&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;RC&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. d01 is one of three values, and if it’s “like R07” then d02 needs to be considered too; otherwise the value of d02 doesn’t matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There’s another chart. Chart 2 uses a different approach, such that based on a user choice the chart will update dynamically to reflect the correct criteria for the selection made, e.g. user can click buttons 1 to 4, which updates the variable vButton; the criteria in the set analysis update according to:-&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;RT&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={F},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;d01&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;$(=pick(vButton,vCond1,vCond2,vCond3,vCond4))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;d02&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;$(=pick(vButton,vCond1b,vCond2b,vCond3b,vCond4b))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;} &amp;gt;}RC) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;The values of vCondx&lt;B&gt; are defined textually in the variable viewer, e.g. value of vCond1 might = ‘A21*’,’A22*’ and VCond1b could be 'B12*'; and if d02 doesn't matter then it could be simply *, which seems to work fine.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This second approach works well as long as d02 has 1-1 link with d01 e.g.an AND relationship. Sadly, the scenario from Chart 1 that I want to replicate in Chart 2 has an “either/or” basis, e.g. EITHER d01 is like I21 or like I22 and the value of d02 isn’t relevant, OR d01 is like R07, in which case I need to know if d02 is like I21 or like I22 (but only if d01 is like R07).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I’d like to strip out the d01/d02 dependent part from Chart 1 and represent that in the set analysis of Chart 2 using the values of vCond1 and vCond1b.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;So, great friends of the Qlikview Community, my question is this: Can it be done?&lt;/P&gt;&lt;P&gt;Your shared insight and suggestions will be most welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 10:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-dynamic-Either-Or-Criteria-in-a-Set-Analysis/m-p/687176#M475858</guid>
      <dc:creator>graham-crooks</dc:creator>
      <dc:date>2014-07-01T10:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dynamic Either/Or Criteria in a Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-dynamic-Either-Or-Criteria-in-a-Set-Analysis/m-p/687177#M475859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Maybe this:&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;RT&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;={F},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New';"&gt;d01&lt;/SPAN&gt;&lt;SPAN style="color: black; font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New';"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;'I21*','I22*'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New';"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New';"&gt;d02&lt;/SPAN&gt;&lt;SPAN style="color: black; font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New';"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;'*'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New';"&gt;}&amp;gt;+&lt;SPAN style="font-style: inherit; font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;RT&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;={F},&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; color: maroon; font-size: 9pt; font-family: 'Courier New';"&gt;d01&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; color: black; font-size: 9pt; font-family: 'Courier New';"&gt;={&lt;STRONG style="color: #808080; font-family: 'Courier New'; font-size: 12px;"&gt;&lt;EM&gt;'R07'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; color: black; font-size: 9pt; font-family: 'Courier New';"&gt;},&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;d02={&lt;STRONG style="color: #808080; font-family: 'Courier New'; font-size: 12px;"&gt;&lt;EM&gt;'I21*','I22*'&lt;/EM&gt;&lt;/STRONG&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt; }RC)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 10:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-dynamic-Either-Or-Criteria-in-a-Set-Analysis/m-p/687177#M475859</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-07-01T10:36:47Z</dc:date>
    </item>
  </channel>
</rss>

