<?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 Need assistance with scripting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236643#M87797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murali&lt;/P&gt;&lt;P&gt;QlikView's data model is a bit different than a Relational Data Model.&lt;/P&gt;&lt;P&gt;QV joines tables together using same fieldnames. Regardless of datatype, length etc. of the sourcefields. If you have i.e. in every of your tables a field called "ID", QV will join all 40 tables together. So use the aliasing (normally "AS" ) for renaming fields during loads. If you have same fieldname like "name" use cust_name, emp_name, vend_name etc. to make the difference. Another way is to use the Qualify - Statement. This is one (technical) issue.&lt;/P&gt;&lt;P&gt;Another issue: if you want to bring some data together from different tables into one. QV works fine with a model build as a star schema. I prefer data models in my QV-applications with one (even huge and redundant) facts-table and only a few dimension-tables. Don't hesitate to denormalize your model. I avoid sync-tables whereever possible.&lt;/P&gt;&lt;P&gt;So, if your model is not a star schema, try to build one.&lt;/P&gt;&lt;P&gt;Hope this helps for the moment&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Oct 2010 15:27:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-13T15:27:44Z</dc:date>
    <item>
      <title>Need assistance with scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236640#M87794</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 have a requirement to bring my SQL database to QlikView, so that users can produce adhoc reports using QlikView. My SQL database has a group of 40 tables. All these tables are related. Few are innter joins and few are outer joins.&lt;/P&gt;&lt;P&gt;When I bring these tables to QlikView as a simple Load statement, I am getting all 40 tables in to QlikView but they are joined based on column names (which is inner join).&lt;/P&gt;&lt;P&gt;But I want to retain the same type of joins that I have in SQL database in QlikView.&lt;/P&gt;&lt;P&gt;Could any one please help me with this?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 14:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236640#M87794</guid>
      <dc:creator />
      <dc:date>2010-10-13T14:45:14Z</dc:date>
    </item>
    <item>
      <title>Need assistance with scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236641#M87795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;join can define your own joins in script.&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;load * ;&lt;/P&gt;&lt;P&gt;SQL select * from tableA ;&lt;/P&gt;&lt;P&gt;left join (TableA)&lt;/P&gt;&lt;P&gt;Load * ;&lt;/P&gt;&lt;P&gt;SQL select * from tableB ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The join will be done on same fieldnames. If you don't want this, remane the field(s) in one of the tables.&lt;/P&gt;&lt;P&gt;In result you will get just one table in QV.&lt;/P&gt;&lt;P&gt;If you want to keep the 2 seperate tables, but don't want the records that don't exist in the other table, look at the exists() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 14:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236641#M87795</guid>
      <dc:creator>dirk_konings</dc:creator>
      <dc:date>2010-10-13T14:57:09Z</dc:date>
    </item>
    <item>
      <title>Need assistance with scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236642#M87796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response Drik Konings.&lt;/P&gt;&lt;P&gt;My doubt is, how can I have 2 separate tables and also I want the records that doesn't exist in the other table.&lt;/P&gt;&lt;P&gt;The issue is I have to do this to all 40 tables so that the QlikView table structure is same as it is in SQL.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 15:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236642#M87796</guid>
      <dc:creator />
      <dc:date>2010-10-13T15:23:03Z</dc:date>
    </item>
    <item>
      <title>Need assistance with scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236643#M87797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murali&lt;/P&gt;&lt;P&gt;QlikView's data model is a bit different than a Relational Data Model.&lt;/P&gt;&lt;P&gt;QV joines tables together using same fieldnames. Regardless of datatype, length etc. of the sourcefields. If you have i.e. in every of your tables a field called "ID", QV will join all 40 tables together. So use the aliasing (normally "AS" ) for renaming fields during loads. If you have same fieldname like "name" use cust_name, emp_name, vend_name etc. to make the difference. Another way is to use the Qualify - Statement. This is one (technical) issue.&lt;/P&gt;&lt;P&gt;Another issue: if you want to bring some data together from different tables into one. QV works fine with a model build as a star schema. I prefer data models in my QV-applications with one (even huge and redundant) facts-table and only a few dimension-tables. Don't hesitate to denormalize your model. I avoid sync-tables whereever possible.&lt;/P&gt;&lt;P&gt;So, if your model is not a star schema, try to build one.&lt;/P&gt;&lt;P&gt;Hope this helps for the moment&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 15:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236643#M87797</guid>
      <dc:creator />
      <dc:date>2010-10-13T15:27:44Z</dc:date>
    </item>
    <item>
      <title>Need assistance with scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236644#M87798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland,&lt;/P&gt;&lt;P&gt;Currently I have used the Qualify statement to prefix all coulmns with tables names and alias the column names to create proper joins in QLikview as per the schema definied in SQL.&lt;/P&gt;&lt;P&gt;The only problem I am having now is, the QlikView is making inner join and because of which I am unable to show any data in QlikView. This is because most of the joins in my database are ouet joins.&lt;/P&gt;&lt;P&gt;I also used Concatenate to create a fact table. But still I need outer join feature to retain the non matching records in the QlikView dashboard.&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 15:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236644#M87798</guid>
      <dc:creator />
      <dc:date>2010-10-13T15:37:46Z</dc:date>
    </item>
    <item>
      <title>Need assistance with scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236645#M87799</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 just answered, but i did't know that you have to load it with the same structure it is in your source database. I think for QV itisnt a good idea to do so.&lt;/P&gt;&lt;P&gt;But if you have to, try using the Qualify-Statemant. Unqualify the fields with same names and table that you want to join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 15:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236645#M87799</guid>
      <dc:creator />
      <dc:date>2010-10-13T15:41:13Z</dc:date>
    </item>
    <item>
      <title>Need assistance with scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236646#M87800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this could be solved with Set Analysis.&lt;/P&gt;&lt;P&gt;sum( {1-$} Sales )&lt;BR /&gt;returns sales for everything excluded by the current selection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 15:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236646#M87800</guid>
      <dc:creator>dirk_konings</dc:creator>
      <dc:date>2010-10-13T15:47:51Z</dc:date>
    </item>
    <item>
      <title>Need assistance with scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236647#M87801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murali,&lt;/P&gt;&lt;P&gt;you can use an outer (left or Right) Join in your Load - Statemant. Look at your Manual or OnlineHelp for the correct syntax. Take care of loading to much data.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 15:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236647#M87801</guid>
      <dc:creator />
      <dc:date>2010-10-13T15:49:53Z</dc:date>
    </item>
    <item>
      <title>Need assistance with scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236648#M87802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your Response.&lt;/P&gt;&lt;P&gt;I will proceed as per your advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 16:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-assistance-with-scripting/m-p/236648#M87802</guid>
      <dc:creator />
      <dc:date>2010-10-13T16:13:16Z</dc:date>
    </item>
  </channel>
</rss>

