<?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: Island Table as Lookup Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Island-Table-as-Lookup-Table/m-p/306025#M113003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try denormalizing into one big table. See attached. Thousands of rows is OK, millions would probably be a problem. Give it a shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2011 17:15:46 GMT</pubDate>
    <dc:creator>vgutkovsky</dc:creator>
    <dc:date>2011-12-16T17:15:46Z</dc:date>
    <item>
      <title>Island Table as Lookup Table</title>
      <link>https://community.qlik.com/t5/QlikView/Island-Table-as-Lookup-Table/m-p/306021#M112999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am in a situation where I have a table that is as a lookup table.&amp;nbsp; If I join it to my model I will create the dreaded loop problem.&amp;nbsp; Looking around the community I found this solution, just making the table an island and then in your expression using and the IF function to join "on the fly" (if that makes sense).&amp;nbsp; Something like this --&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%DimKey1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_%IslandKey1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%DimKey2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_%IslandKey2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Yes this works BUT performance is horrible since it has to read all the rows in the three tables.&amp;nbsp; Is this the only way?&amp;nbsp; Any other ideas?&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 20:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Island-Table-as-Lookup-Table/m-p/306021#M112999</guid>
      <dc:creator />
      <dc:date>2011-12-15T20:51:46Z</dc:date>
    </item>
    <item>
      <title>Island Table as Lookup Table</title>
      <link>https://community.qlik.com/t5/QlikView/Island-Table-as-Lookup-Table/m-p/306022#M113000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm not sure if this will work, but give it a try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;%DimKey1=P(_%IslandKey1), %DimKey2=P(_%IslandKey2)&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the P() function returns all possible values for a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 22:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Island-Table-as-Lookup-Table/m-p/306022#M113000</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2011-12-15T22:19:12Z</dc:date>
    </item>
    <item>
      <title>Island Table as Lookup Table</title>
      <link>https://community.qlik.com/t5/QlikView/Island-Table-as-Lookup-Table/m-p/306023#M113001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The P() set won't fix the problem if you're using a field from the same table as %DimKey1 as one of your dimensions in that chart. It's used for reducing the total dataset, not checking a condition on a particular row. I think that your solution will have to be in the data model. Your description is pretty broad, maybe if you can post a reduced/scrambled example someone on here can try to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 23:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Island-Table-as-Lookup-Table/m-p/306023#M113001</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2011-12-15T23:31:25Z</dc:date>
    </item>
    <item>
      <title>Island Table as Lookup Table</title>
      <link>https://community.qlik.com/t5/QlikView/Island-Table-as-Lookup-Table/m-p/306024#M113002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Guys I really appreciate the feedback.&amp;nbsp; I am adding the .qvw that I originally found on this discussion board showing me how to use an IF() to do a lookup within an expression (that is the best way I can explain it).&amp;nbsp; Two things to note in the .qvw:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; I would love to add this island lookup table as part of the connected model but then we would start getting into loop issues.&amp;nbsp; For example in the "Goal" island if we renamed the fields to %Week_key and %Store_key it would join but cause a loop.&amp;nbsp; Is there a design way around that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; If you agree that creating the island is the best way to go my original question centers around the Goal expression in the "Revenue" object.&amp;nbsp; See how he is using an IF() to force join the island?&amp;nbsp; It doesn't cause performance issues in this .qvw but my real-world example has thousands of rows not a handful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for anything!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 23:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Island-Table-as-Lookup-Table/m-p/306024#M113002</guid>
      <dc:creator />
      <dc:date>2011-12-15T23:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Island Table as Lookup Table</title>
      <link>https://community.qlik.com/t5/QlikView/Island-Table-as-Lookup-Table/m-p/306025#M113003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try denormalizing into one big table. See attached. Thousands of rows is OK, millions would probably be a problem. Give it a shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 17:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Island-Table-as-Lookup-Table/m-p/306025#M113003</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2011-12-16T17:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Island Table as Lookup Table</title>
      <link>https://community.qlik.com/t5/QlikView/Island-Table-as-Lookup-Table/m-p/306026#M113004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Vlad - Thanks again.&amp;nbsp; I marked your response as the correct answer (to denormalize) but in actuality what worked out the best for me is a combination of a little denormilization and keeping the IF() statement in the expression to force join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My simple chart went from taking 15 seconds to load to less than 1.&amp;nbsp; The reason I didn't want to denormalize all 4 tables is that I would have to include my master calendar dimension which has over 20 fields and is used in almost every object in the document.&amp;nbsp; Instead I joined two dimensional tables (denormalized) and lookup the correct calendar attributes using the IF() in my expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the time you put into helping me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 20:46:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Island-Table-as-Lookup-Table/m-p/306026#M113004</guid>
      <dc:creator />
      <dc:date>2011-12-16T20:46:29Z</dc:date>
    </item>
  </channel>
</rss>

