<?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: Help with Data Modeling/Loading QVD Files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Data-Modeling-Loading-QVD-Files/m-p/794822#M1023384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found some documents regarding data modeling in Qlikview.&amp;nbsp; I think one thing the business here was trying to do is to solve proper schema formatting in view via the SQL layer.&amp;nbsp; The problem is that this creates overhead when attempting to union all of the fact tables together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the question I have is this - is a CONCATENATE statement in Qlikview essentially the same thing as a UNION in SQL?&amp;nbsp; The reason I ask is because I think I can duplicate what's being done by doing a UNION on all of the SQL views by moving this inside the Qlikview layer and CONCATENATE the facts together.&amp;nbsp; This way I don't have to worry about having all fields from each fact table being present, they will just be concatenated together whether or not a fact table has the same field as another fact table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have a fact table Call_Metrics and it has lead_id, phone_id, customer_id, calls_received and then I have another fact table called Sales_Metrics containing lead_id, property_id, customer_id, sale_amount, then I can concatenate the two facts together into one Qlikview table during the load.&amp;nbsp; When doing this is SQL views, I have to have all fields present when I UNION each fact table together which causes overhead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hopefully this makes sense...i'm still learning.&amp;nbsp; But on the surface, am I on the right path here?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Mar 2015 18:15:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-26T18:15:59Z</dc:date>
    <item>
      <title>Help with Data Modeling/Loading QVD Files</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Data-Modeling-Loading-QVD-Files/m-p/794820#M1023382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm very new to Qlikview and nobody in my organization really seems to understand how it works.&amp;nbsp; I'm analyzing how to make our QVDs and data model better but not sure where to start.&amp;nbsp; Allow me to give an overview of how we are doing this now - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a series of views in our SQL Server database which each contribute to a metric based on a source.&amp;nbsp; For example, we have a view for getting data from Great Plains/Dynamics, we have a view which pulls data from our lead-creation software, etc.&amp;nbsp; Each view is then unioned together into a single "master" view called METRICS.&amp;nbsp; We then pull the data from each individual view into their own QVD_CREATOR.qvd files.&amp;nbsp; Once these QVDs are populated, we then call the master view and pull the data into a master QVD file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can imagine the overhead with this approach - every time we add a new field to a view, we then have to copy/paste it to all of the other views because otherwise the UNION statement in the master view will break.&amp;nbsp; Further, each field then has to be copy/pasted into each of the corresponding QVD files.&amp;nbsp; It's a tangled mess at best and not fun to work with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;My questions:&lt;/SPAN&gt;&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;How could this be handled better?&lt;/SPAN&gt;&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;Can't we just pull the data from each fact table and dimension table from our data warehouse into their own QVDs and be done with this mess?&amp;nbsp; Why use views for this - wouldn't a SQL query or stored procedures be just as good?&lt;/SPAN&gt;&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;Further, we can't we just query the database tables directly instead of bringing them into QVDs?&amp;nbsp; This seems redundant and ridiculous - we already have the data stored in a database, that's what it's for, so why should we be storing it in files just for our reports?&amp;nbsp; Seems like too much overhead.&lt;/SPAN&gt;&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;However, if we do need QVDs, then why can't I just load them by querying the database directly instead of loading from views, then master QVD files?&lt;/SPAN&gt;&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;Ugh, what a mess.&amp;nbsp; It's gotten out of control and hard to maintain.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 00:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Data-Modeling-Loading-QVD-Files/m-p/794820#M1023382</guid>
      <dc:creator />
      <dc:date>2015-03-26T00:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Data Modeling/Loading QVD Files</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Data-Modeling-Loading-QVD-Files/m-p/794821#M1023383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Can't we just pull the data from each fact table and dimension table from our data warehouse into their own QVDs and be done with this mess?&amp;nbsp; Why use views for this - wouldn't a SQL query or stored procedures be just as good?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;EM&gt;YES - you will have to analyze what the views do, but you can replace a view with a SQL query or stored proc and copy/paste the SQL into the QLik script. If no other non-qlik application uses those views on the database,you could possibly eliminate them altogether and replace with&amp;nbsp; equivalent qlik script.&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Further, we can't we just query the database tables directly instead of bringing them into QVDs?&amp;nbsp; This seems redundant and ridiculous - we already have the data stored in a database, that's what it's for, so why should we be storing it in files just for our reports?&amp;nbsp; Seems like too much overhead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;YES - although the 2nd time you create a qlikview application you may find yourself reusing the qlik ETL logic or same previously run SQL query .... then it makes sense to reuse the same code and manage things in one place for all use cases&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;However, if we do need QVDs, then why can't I just load them by querying the database directly instead of loading from views, then master QVD files?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;EM&gt;See above&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 01:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Data-Modeling-Loading-QVD-Files/m-p/794821#M1023383</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-26T01:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Data Modeling/Loading QVD Files</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Data-Modeling-Loading-QVD-Files/m-p/794822#M1023384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found some documents regarding data modeling in Qlikview.&amp;nbsp; I think one thing the business here was trying to do is to solve proper schema formatting in view via the SQL layer.&amp;nbsp; The problem is that this creates overhead when attempting to union all of the fact tables together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the question I have is this - is a CONCATENATE statement in Qlikview essentially the same thing as a UNION in SQL?&amp;nbsp; The reason I ask is because I think I can duplicate what's being done by doing a UNION on all of the SQL views by moving this inside the Qlikview layer and CONCATENATE the facts together.&amp;nbsp; This way I don't have to worry about having all fields from each fact table being present, they will just be concatenated together whether or not a fact table has the same field as another fact table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have a fact table Call_Metrics and it has lead_id, phone_id, customer_id, calls_received and then I have another fact table called Sales_Metrics containing lead_id, property_id, customer_id, sale_amount, then I can concatenate the two facts together into one Qlikview table during the load.&amp;nbsp; When doing this is SQL views, I have to have all fields present when I UNION each fact table together which causes overhead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hopefully this makes sense...i'm still learning.&amp;nbsp; But on the surface, am I on the right path here?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 18:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Data-Modeling-Loading-QVD-Files/m-p/794822#M1023384</guid>
      <dc:creator />
      <dc:date>2015-03-26T18:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Data Modeling/Loading QVD Files</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Data-Modeling-Loading-QVD-Files/m-p/794823#M1023385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They are the same. But if you can do it in one SQL statement because all the data is from one database then do that. Otherwise you need run 2 queries and concatenate locally which is likely a bit slower.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use concatenate when the 2 pieces of data aren't in the same database because in that situation you can't use one SQL union statement against multiple databases / platforms / files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 18:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Data-Modeling-Loading-QVD-Files/m-p/794823#M1023385</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-26T18:34:29Z</dc:date>
    </item>
  </channel>
</rss>

