<?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: modelling in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/modelling/m-p/572070#M1098458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, the 1 as Invoice_Lines and 1 as Bookings in the above code is used so that you can count the number of bookings and/or invoices using SUM rather than COUNT which is more efficient&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2014 10:36:09 GMT</pubDate>
    <dc:creator>Roop</dc:creator>
    <dc:date>2014-04-29T10:36:09Z</dc:date>
    <item>
      <title>modelling</title>
      <link>https://community.qlik.com/t5/QlikView/modelling/m-p/572065#M1098453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;For a booking there are many invoice line items. &lt;/P&gt;&lt;P&gt;The booking details are in table1 and invoice details are in Table2.&lt;/P&gt;&lt;P&gt;Both the tables can be linked with keyfield bookingID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Since there are many common fields between both tables, i see lot of synthetic keys created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-I wanted to put both TableA and TableB in one table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best i can do to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should i go with concatenate, left join or anything else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one more query, Is booking table and invoice table both are fact tables. I think no. because both tables have same transaction details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 09:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/modelling/m-p/572065#M1098453</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2014-04-29T09:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: modelling</title>
      <link>https://community.qlik.com/t5/QlikView/modelling/m-p/572066#M1098454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you share sample of your data model by using Ctrl+T?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 09:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/modelling/m-p/572066#M1098454</guid>
      <dc:creator>vijetas42</dc:creator>
      <dc:date>2014-04-29T09:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: modelling</title>
      <link>https://community.qlik.com/t5/QlikView/modelling/m-p/572067#M1098455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can put both into the same table by concatenation but if you are going to do this you need to ensure that you mark each source. So the following may work for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Book1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Book2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommonRef1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommonRef2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UniqueRef1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Booking' as Source,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as Booking_Count&lt;/P&gt;&lt;P&gt;from Booking.CSV;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invoice1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invoice2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invoice3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommonRef1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommonRef2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UniqueRef3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UniqueRef4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Invoice' as Source,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as Invoice_Count&lt;/P&gt;&lt;P&gt;from Invoice.CSV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are both Fact Tables and the above may work for you but without the schema it is difficult to tell.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 09:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/modelling/m-p/572067#M1098455</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2014-04-29T09:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: modelling</title>
      <link>https://community.qlik.com/t5/QlikView/modelling/m-p/572068#M1098456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rupert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am here attaching the same data structure. Please help me with the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your script I didn't understand the functionality of fields-&lt;/P&gt;&lt;P&gt;1 as Invoice_Count&lt;/P&gt;&lt;P&gt;1 as Booking_count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 10:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/modelling/m-p/572068#M1098456</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2014-04-29T10:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: modelling</title>
      <link>https://community.qlik.com/t5/QlikView/modelling/m-p/572069#M1098457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aha ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much easier than expected &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoice:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InvoiceID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BookingID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CurrencyID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InvoiceType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FromDate as Inv_FromDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ToDate as Inv_ToDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Price as Inv_Price,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Discount as Inv_Discount&lt;/P&gt;&lt;P&gt;etc etc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as Invoice_Lines&lt;/P&gt;&lt;P&gt;from Invoice.CSV;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Booking:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BookingID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDate as Book_StartDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDate as Book_EndDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty as Book_Qty,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StudentID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BookingOrigin,&lt;/P&gt;&lt;P&gt;etc etc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as Bookings&lt;/P&gt;&lt;P&gt;from Booking.CSV;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above will join on the common field BookingID (which appears in both Booking and Invoice). There are no other common fields so all should be well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are other fields that have the same name, these are either common to both tables or unique. If they are unique in both tables, one of the can be renamed using "AS". This is a useful method to fully define fields for the end user or developer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 10:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/modelling/m-p/572069#M1098457</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2014-04-29T10:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: modelling</title>
      <link>https://community.qlik.com/t5/QlikView/modelling/m-p/572070#M1098458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, the 1 as Invoice_Lines and 1 as Bookings in the above code is used so that you can count the number of bookings and/or invoices using SUM rather than COUNT which is more efficient&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 10:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/modelling/m-p/572070#M1098458</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2014-04-29T10:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: modelling</title>
      <link>https://community.qlik.com/t5/QlikView/modelling/m-p/572071#M1098459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you left join the booking table with invoice table you will get the following output which is in below attached QVW file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 10:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/modelling/m-p/572071#M1098459</guid>
      <dc:creator />
      <dc:date>2014-04-29T10:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: modelling</title>
      <link>https://community.qlik.com/t5/QlikView/modelling/m-p/572072#M1098460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rupert/Ishwar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-As Rupert mentioned, I need to Keep the link between both tables and rename the common field names. This is resolving the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-As Khutal mentioned, doing left join the booking table and renaming common field names, also resolving the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-The 2nd approach finally brings a single table, which i think looks good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still confused about which is the best approach to go with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly suggest..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 10:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/modelling/m-p/572072#M1098460</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2014-04-29T10:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: modelling</title>
      <link>https://community.qlik.com/t5/QlikView/modelling/m-p/572073#M1098461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this will depend on how many times you use each of the underlying tables independently. If the tables are very large and sparse, there can be space considerations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally it is a personal issue, and I would always tend towards having 2 separate tables as the fields in each can then be readily identified for both developers and end users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of the day there is not much in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 11:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/modelling/m-p/572073#M1098461</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2014-04-29T11:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: modelling</title>
      <link>https://community.qlik.com/t5/QlikView/modelling/m-p/572074#M1098462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for all the support !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 11:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/modelling/m-p/572074#M1098462</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2014-04-29T11:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: modelling</title>
      <link>https://community.qlik.com/t5/QlikView/modelling/m-p/572075#M1098463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suraj,&lt;/P&gt;&lt;P&gt;this is depends&amp;nbsp; upon your requirement if you want only linking between two table then go with rupert solutions , but you you want booking table data related to invoice table then left join booking table with invoice table and apply some filter according to your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 11:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/modelling/m-p/572075#M1098463</guid>
      <dc:creator />
      <dc:date>2014-04-29T11:10:52Z</dc:date>
    </item>
  </channel>
</rss>

