<?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: Conditional Queries with Data Islands in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391851#M488099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do this with set analysis but not sure I have the right syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neither of the set analyses below work, but as I said I'm not sure my syntax around the island date and country is correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;sum({&amp;lt;[Calendar Date]=[Island Date] , [Island Country]=[IP Country ISO]&amp;gt;}_f_OK_SIGNUP) &lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;sum({&amp;lt;[Calendar Date]={"Island Date"} , [Island Country]={"IP Country ISO"}&amp;gt;}_f_OK_SIGNUP) &lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P&gt;Any glaring mistakes you see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, your help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2013 02:07:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-01T02:07:00Z</dc:date>
    <item>
      <title>Conditional Queries with Data Islands</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391848#M488095</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 2 fact tables, &lt;EM&gt;Transactions&lt;/EM&gt; and &lt;EM&gt;Visits&lt;/EM&gt;, which are linked together by a field called &lt;EM&gt;Site ID&lt;/EM&gt;. I'm using data islands on date and country so that I can show traffic and sales not only on the &lt;EM&gt;Site ID&lt;/EM&gt; dimension, but also on the country and date dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="32903" class="jive-image" alt="Screen Shot 2013-01-31 at 3.39.36 PM.png" src="/legacyfs/online/32903_Screen Shot 2013-01-31 at 3.39.36 PM.png" /&gt; &lt;/P&gt;&lt;P&gt;However, the conditions I'm using within qlikview&amp;nbsp; seem to be slowing performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, to show visits and transactions together by country and date, I do the following for visits:&lt;/P&gt;&lt;P&gt;sum(if([Visit Date]=[Island Date] AND [Island Country]=[Visit IP Country ISO],[Visit Counter]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To show visits and transactions together by country and date, I do the following for transactions:&lt;/P&gt;&lt;P&gt;sum(if([Calendar Date]=[Island Date] AND [Island Country]=[IP Country ISO],_f_OK_SIGNUP))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These queries work, but are very slow, to the point I don't think I'll be able to use them for client facing reports. Does anyone have experience with data islands and the most efficient way to use them in queries? Perhpas mine can be optimized to improve performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insight would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 20:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391848#M488095</guid>
      <dc:creator />
      <dc:date>2013-01-31T20:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Queries with Data Islands</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391849#M488097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mattsies,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; better one is give link two island to visit table and create a flags in both island,you can take those both flags in setanalysis,your data will be filter based on noth flgs also.&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/info.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plus.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/minus.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 21:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391849#M488097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-31T21:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Queries with Data Islands</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391850#M488098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it using Set Analysis instead of if().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 21:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391850#M488098</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-01-31T21:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Queries with Data Islands</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391851#M488099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do this with set analysis but not sure I have the right syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neither of the set analyses below work, but as I said I'm not sure my syntax around the island date and country is correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;sum({&amp;lt;[Calendar Date]=[Island Date] , [Island Country]=[IP Country ISO]&amp;gt;}_f_OK_SIGNUP) &lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;sum({&amp;lt;[Calendar Date]={"Island Date"} , [Island Country]={"IP Country ISO"}&amp;gt;}_f_OK_SIGNUP) &lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P&gt;Any glaring mistakes you see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, your help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 02:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391851#M488099</guid>
      <dc:creator />
      <dc:date>2013-02-01T02:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Queries with Data Islands</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391852#M488100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, allow me some time to review this option and I'll get back to you if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 02:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391852#M488100</guid>
      <dc:creator />
      <dc:date>2013-02-01T02:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Queries with Data Islands</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391853#M488101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use a $ function. Here's a working example from one of my QVWs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Date={"$(=only([Island Date]))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be sure to make your date text formats line up as this will be a text compare. Meaning, if Date is MM/DD/YYYY and Island Date is M/D/YYYY it won't work for dates like 08/02/2012 &amp;lt;&amp;gt; 8/2/2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 03:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391853#M488101</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-02-01T03:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Queries with Data Islands</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391854#M488102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; it is possible to provide sample data for your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 05:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391854#M488102</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-01T05:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Queries with Data Islands</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391855#M488103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, here's a sample qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on incorporating Rob's set analysis but am having trouble getting the figures to display correctly.&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>Fri, 01 Feb 2013 16:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391855#M488103</guid>
      <dc:creator />
      <dc:date>2013-02-01T16:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Queries with Data Islands</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391856#M488104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mattsies, I agree with Rob's suggestion to use set analysis instead of IFs. Once you work out the syntax, it will work, even though with some limitations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fundamentally, however, your application will be much better off if you could resolve the issue through Data Modeling and avoid having data islands. This approach would ultimately solve the problem, once and forever...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 19:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391856#M488104</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2013-02-01T19:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Queries with Data Islands</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391857#M488105</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; can you please forward test data,for creating ineed some data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/info.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plus.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/minus.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Feb 2013 13:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391857#M488105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-02T13:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Queries with Data Islands</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391858#M488106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will continue to work on the syntax. I'm also starting to use field event triggers to link dimensions in different tables with different names. This seems to be working well and will allow me to drop the data islands. Still in the preliminary stages, will post back my findings if this turns out to be a success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 04:39:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391858#M488106</guid>
      <dc:creator />
      <dc:date>2013-02-04T04:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Queries with Data Islands</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391859#M488107</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 appreciate your help, but for now am going to work on tweaking my set anlysis and implementing event triggers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wouldn't want you to work on another solution, since I think I'll be able to move forward using the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again though for the offer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 04:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391859#M488107</guid>
      <dc:creator />
      <dc:date>2013-02-04T04:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Queries with Data Islands</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391860#M488108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently I had very similar case and I'd suggest you to consider the following solution:&lt;/P&gt;&lt;P&gt;1. Both transactions and visits can be considered as a kind of transactions each of which has several attributes and some of the attributes are common to both of them (site, country, date) whilst some are unique,&lt;/P&gt;&lt;P&gt;2. Instead of creating separate tables it's possible to rename all common fields in order to provide the same names for them and load (concatenate) both tables into a single one. By the way, you still can provide a manner to separate the rows by creating a flag filed with values, e.g., "Transaction" and "Visit" in order to be able to analyse them separately,&lt;/P&gt;&lt;P&gt;3. After that you'll have one fact table with arbitrary number of dimension table (if necessary), you won't have performance issues and data islands which are not recommended for use at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can face some obstacles if you do it for the first time but once do it I believe you'll feel performance improvment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Maxim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 07:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391860#M488108</guid>
      <dc:creator>maksim_senin</dc:creator>
      <dc:date>2013-02-04T07:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Queries with Data Islands</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391861#M488109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i noted using set analysis in this scenario &lt;SPAN style="font-size: 13.3333px;"&gt;it doesn't works&lt;/SPAN&gt;, or generally speaking when you have a chart dimension field in a island table and the measure field in other island table.&lt;/P&gt;&lt;P&gt;i think in this case you MUST use if statement in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it true ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 15:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Queries-with-Data-Islands/m-p/391861#M488109</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2018-07-27T15:53:18Z</dc:date>
    </item>
  </channel>
</rss>

