<?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: Data Islands and Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Islands-and-Set-Analysis/m-p/561498#M209591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put that expression in a text box and make some selections in Island Date. That way you can see what it does.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Nov 2013 11:58:23 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-11-03T11:58:23Z</dc:date>
    <item>
      <title>Data Islands and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Islands-and-Set-Analysis/m-p/561494#M209587</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;I have two data islands in my data model and I've been using IF statements to sum values over these data islands. For instance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;=Sum&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;if&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;[Island Date]&lt;SPAN class="s2"&gt; = &lt;/SPAN&gt;[Calendar Date]&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;AND&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;[Island Country]&lt;SPAN class="s2"&gt; = &lt;/SPAN&gt;[IP Country ISO]&lt;SPAN class="s2"&gt;, &lt;/SPAN&gt;Signups&lt;SPAN class="s2"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns the sum of signups where Calendar Date and IP Country ISO equal their respective data islands. Issue is it's very resource intensive and not scalable with our data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to come up with a solution using set analysis. So far I've tried two methods:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1) Indirect set analysis using an expression like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Sum&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;({$&amp;lt;&lt;/SPAN&gt;[Calendar Date]&lt;SPAN class="s1"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;P&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;({$} &lt;/SPAN&gt;[Island Date]&lt;SPAN class="s1"&gt;), &lt;/SPAN&gt;[IP Country ISO]&lt;SPAN class="s1"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;P&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;({$} &lt;/SPAN&gt;[Island Country]&lt;SPAN class="s1"&gt;)&amp;gt;} &lt;/SPAN&gt;Signups&lt;SPAN class="s1"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The Only() function:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;=S&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;um&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[Visit IP Country ISO]&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;"$(=only([IP Country ISO]))"&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 10pt; line-height: 1.5em;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[Visit Date]&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[Island Date]&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Visits&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;The issue with these is that they only work when a selection is made and in my app this will not be the case as I need to associate sales and traffic values to countries in the absence of any selections.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;If anyone has any tips on how to do this via set analysis, they would be much appreciated. Basically I'm looking to translate the IF statement above into set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;I've attached an example to better illustrate what I'm talking about.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 10pt; line-height: 1.5em;"&gt;Matt &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 20:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Islands-and-Set-Analysis/m-p/561494#M209587</guid>
      <dc:creator />
      <dc:date>2013-11-01T20:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data Islands and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Islands-and-Set-Analysis/m-p/561495#M209588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;take a look at this text, I think alternative state is more interesting than data island&lt;/P&gt;&lt;P&gt;Page 122 at qlikview reference manual&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;14.14 Alternate States&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;QlikView allows users to detach a chart from the underlying data model. When a chart is detached, the&lt;/P&gt;&lt;P&gt;object no longer responds to user selections. When the user re-attaches the object, it instantly updates to&lt;/P&gt;&lt;P&gt;reflect the current state of the selections.&lt;/P&gt;&lt;P&gt;Alternate States are similar to this. The QlikView developer can create multiple states within a QlikView&lt;/P&gt;&lt;P&gt;document and apply these states to specific objects within the document. The end-user can create copies of&lt;/P&gt;&lt;P&gt;these objects (server objects) and then put those objects into different states.&lt;/P&gt;&lt;P&gt;The most important difference between Detach and Alternate States is that ALL objects in a given state will&lt;/P&gt;&lt;P&gt;respond to user selections made in that state. Objects in a given state are not affected by user selections in&lt;/P&gt;&lt;P&gt;the other states.&lt;/P&gt;&lt;P&gt;Alternate States are not accessible in the load script. They are a UI feature.&lt;/P&gt;&lt;P&gt;The developer invokes the Alternate States dialog from Alternate States... button on the Document Properties:&lt;/P&gt;&lt;P&gt;General tab. The QlikView developer can create any number of states within the QlikView document&lt;/P&gt;&lt;P&gt;and provides a name for each state created. Once Alternate States functionality is enabled, the&lt;/P&gt;&lt;P&gt;QlikView developer can also create new states from within screen objects. End-users who access QlikView&lt;/P&gt;&lt;P&gt;documents from a QlikView Server can make use of Alternate States but cannot create Alternate States.&lt;/P&gt;&lt;P&gt;Note!&lt;/P&gt;&lt;P&gt;Alternates States functionality is enabled by a QlikView developer and should be used with caution as it&lt;/P&gt;&lt;P&gt;can cause great confusion with end-users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 23:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Islands-and-Set-Analysis/m-p/561495#M209588</guid>
      <dc:creator />
      <dc:date>2013-11-01T23:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data Islands and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Islands-and-Set-Analysis/m-p/561496#M209589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use set analysis. The sets are calculated per chart, not per row. So, it's either use the if statements or separate charts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 09:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Islands-and-Set-Analysis/m-p/561496#M209589</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-02T09:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data Islands and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Islands-and-Set-Analysis/m-p/561497#M209590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help, I'll have to stick with the if statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question: can you explain this variable to me: =&lt;SPAN class="s1"&gt;concat&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;distinct&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;chr&lt;/SPAN&gt;(39) &amp;amp; &lt;SPAN class="s2"&gt;[Island Date]&lt;/SPAN&gt; &amp;amp; &lt;SPAN class="s1"&gt;chr&lt;/SPAN&gt;(39), ',') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 15:14:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Islands-and-Set-Analysis/m-p/561497#M209590</guid>
      <dc:creator />
      <dc:date>2013-11-02T15:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data Islands and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Islands-and-Set-Analysis/m-p/561498#M209591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put that expression in a text box and make some selections in Island Date. That way you can see what it does.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Nov 2013 11:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Islands-and-Set-Analysis/m-p/561498#M209591</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-03T11:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Data Islands and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Islands-and-Set-Analysis/m-p/561499#M209592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 15:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Islands-and-Set-Analysis/m-p/561499#M209592</guid>
      <dc:creator />
      <dc:date>2013-11-04T15:34:45Z</dc:date>
    </item>
  </channel>
</rss>

