<?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 Data Modelling Query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217281#M70521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just assumed that a synthetic key would cause QlikView calculation problems when it came to re-cutting the data over several dimensions etc - this was mainly based on, as all the guidance materials &amp;amp; manuals etc always describe trying to remove synthetic keys..&lt;/P&gt;&lt;P&gt;After some reconcilitations it doesn't appear to be causing any problem at all.&lt;/P&gt;&lt;P&gt;I have progressed significantly with my tool, and am beginning to find the answers to some of the business problems we were searching for. However, I can't quite shed the uneasy feeling that this Synthetic key will come back to bite me.&lt;/P&gt;&lt;P&gt;Now if only I can master set anlysis (time for another thread!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jul 2010 10:50:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-12T10:50:57Z</dc:date>
    <item>
      <title>Data Modelling Query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217275#M70515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I am new to designing QlikView data models and would appreciate any advice which can be given.&lt;/P&gt;&lt;P&gt;I have raw data in two source tables which both have a 'date' field and 'business unit' reference field in them. There are another two information table of fields relating to the business units and my calendar.&lt;/P&gt;&lt;P&gt;If I import these four tables directly in my script I obviously generate a data loop CALENDAR &amp;gt; DATA1 &amp;gt; BUS. UNIT &amp;gt; DATA2 &amp;gt; CALENDAR.&lt;/P&gt;&lt;P&gt;I could rename the date field in one of the data tables - but one of the primary calculations I wish to perform is a graph of the ratio of DATA1:DATA2 across time - so renaming one of the date fields would surely cause a mismatch across the two data tables when making selections on date, wouldn't it?&lt;/P&gt;&lt;P&gt;Anyway, my main query is to hope that someone can suggest how I best approach these kinds of data design issues, as the data stored in the two tables is of totally different types and so I don't see how I would combine in into a single 'fact' table.&lt;/P&gt;&lt;P&gt;I am concious of how much of an impact a bad data design can have on a document's performance and resutls&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 23:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217275#M70515</guid>
      <dc:creator />
      <dc:date>2010-07-07T23:26:59Z</dc:date>
    </item>
    <item>
      <title>Data Modelling Query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217276#M70516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having two fields the same in both tables in effect give you a composite key. Using this key you can perform a join on your two datasources (like a SQL full outer join).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The load would go something like (example using just two fields, Costs and Sales) :&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;rawdata:&lt;BR /&gt;LOAD CalendarDate,&lt;BR /&gt; BusUnit,&lt;BR /&gt; Sales&lt;BR /&gt;FROM&lt;BR /&gt;[datasource1.xls]&lt;BR /&gt;(biff, embedded labels, table is Sheet1$);&lt;BR /&gt;join(rawdata)&lt;BR /&gt;LOAD CalendarDate,&lt;BR /&gt; BusUnit,&lt;BR /&gt; Costs&lt;BR /&gt;FROM&lt;BR /&gt;[datasource2.xls]&lt;BR /&gt;(biff, embedded labels, table is Sheet1$);&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 00:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217276#M70516</guid>
      <dc:creator />
      <dc:date>2010-07-08T00:00:03Z</dc:date>
    </item>
    <item>
      <title>Data Modelling Query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217277#M70517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you have this structure:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;synthetic key table: synthetic key, business unit, date&lt;BR /&gt;table 1: synthetic key, field A&lt;BR /&gt;table 2: synthetic key, field B&lt;BR /&gt;table 3: business unit, field C&lt;BR /&gt;table 4: business unit, field D&lt;BR /&gt;calendar: date, month, year&lt;/P&gt;&lt;P&gt;And I'm not seeing the loop. Looks like a star schema centered on a synthetic key table. So I'm obviously not understanding your data from JUST the description of your tables. Perhaps you could list the tables and important fields something like I've done above? Take a picture of the table layout? Something like that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 00:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217277#M70517</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-07-08T00:01:57Z</dc:date>
    </item>
    <item>
      <title>Data Modelling Query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217278#M70518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realise now that the loop was being caused by the date fields in the two data tables having slighty different names (as I'd previously tried to solve the synthtic key issue).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Un-doing these edits gives me the following data structure:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x550/__key/CommunityServer.Discussions.Components.Files/11/4861.export.bmp" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tried joining the Rooms Data and Offline Rooms tables yet, as SQLMonkey suggested - largely because the data in the two tables is very different - i.e. there could be multiple records in the offline rooms table for each reporting date - and I don't know how JOIN will behave...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 11:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217278#M70518</guid>
      <dc:creator />
      <dc:date>2010-07-08T11:41:58Z</dc:date>
    </item>
    <item>
      <title>Data Modelling Query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217279#M70519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any actual problem with that data model? Are you getting correct results? On the surface, it looks like you started out just fine, then caused yourself problems trying to "solve" the synthetic key "problem". No particular reason for joining your Rooms Data and Offline Rooms is jumping out at me. As you say, the data in the two tables is very different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 18:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217279#M70519</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-07-08T18:01:31Z</dc:date>
    </item>
    <item>
      <title>SV:Re: Data Modelling Query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217280#M70520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is often easier to answer a data modelig query/ problem if we know the business request, and how it connected to the data model. What is it we want to solve with the QlikView-application? What queries need to be answered by the end users, and what data do we need to load into our applications to be able to do that?&lt;BR /&gt;&lt;BR /&gt;For example - In your data model, I see ReportingDate in both the "Offline Rooms" and "Rooms data" tables. What is the difference between these two ReportingDate's, and is there any special reason why you need both of them?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 20:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217280#M70520</guid>
      <dc:creator>larsc</dc:creator>
      <dc:date>2010-07-08T20:10:59Z</dc:date>
    </item>
    <item>
      <title>Data Modelling Query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217281#M70521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just assumed that a synthetic key would cause QlikView calculation problems when it came to re-cutting the data over several dimensions etc - this was mainly based on, as all the guidance materials &amp;amp; manuals etc always describe trying to remove synthetic keys..&lt;/P&gt;&lt;P&gt;After some reconcilitations it doesn't appear to be causing any problem at all.&lt;/P&gt;&lt;P&gt;I have progressed significantly with my tool, and am beginning to find the answers to some of the business problems we were searching for. However, I can't quite shed the uneasy feeling that this Synthetic key will come back to bite me.&lt;/P&gt;&lt;P&gt;Now if only I can master set anlysis (time for another thread!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 10:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217281#M70521</guid>
      <dc:creator />
      <dc:date>2010-07-12T10:50:57Z</dc:date>
    </item>
    <item>
      <title>Data Modelling Query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217282#M70522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Synthetic keys have a bad reputation. I believe I understand how they got that reputation, but they aren't necessarily a bad thing. I don't think the one you have is a problem; I think it's the &lt;EM&gt;solution&lt;/EM&gt;. For more general information on synthetic keys, you might look at the following thread:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/t/31028.aspx"&gt;http://community.qlik.com/forums/t/31028.aspx&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 17:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Query/m-p/217282#M70522</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-07-12T17:27:11Z</dc:date>
    </item>
  </channel>
</rss>

