<?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 Looping issue when loading multiple tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Looping-issue-when-loading-multiple-tables/m-p/647196#M1082242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am a QV newbie, trying to load the tables below into QV to generate some reports pertaining to Sales results (Actual vs Planned &amp;amp; also Actual vs Last Year). So here are the tables:&lt;/P&gt;&lt;P&gt;1.) ACTUAL SALES&lt;/P&gt;&lt;P&gt;2.) BP SALES &amp;lt;==(Business Plan)&lt;/P&gt;&lt;P&gt;3.) Product Master&lt;/P&gt;&lt;P&gt;4.) Customer Master&lt;/P&gt;&lt;P&gt;5.) Currency Rates (where the months matches both ACTUAL &amp;amp; BP SALES, we just need to know which month's rate to convert intoa base currenc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runs the script after connecting the tables via OBDC to my local MS Access as below, I was prompted with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; "One or more loops have been detected in your database structure. Loops may cause ambiguous results and should therefore be avoided. QlikView will cut the loop(s) by setting one or more tables as loosely coupled. Settings for loosely coupled tables can be modified after script execution in the tables page of the document properties dialog."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And when I total the ACTUAL SALES, there are variances found, which wasn't there before I introduced the BP SALES Table into the whole picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have 3 questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.) Can I change a field name right after the [SQL SECLECT * ] using Oldfieldname&lt;SPAN style="text-decoration: underline;"&gt; as Newfieldname&lt;/SPAN&gt;? Doesn't seem to work. I have no problem change field names if it's a direct upload from a tablefield where I can see all the fields loaded, but in this case, there are no fields shown since it's SELECT *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.) Is the loop issue causing &lt;SPAN style="text-decoration: underline;"&gt;some&lt;/SPAN&gt; of&amp;nbsp; my total ACTUAL_Amt(JPY) in the ACTUAL SALES to appear lower than it should? I don't see any problem when I sum the BP_Amt(Local Currency) from the BP_SALES.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3.) What should I do to avoid the looping issue? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************************************************************************&lt;/P&gt;&lt;P&gt;//-------- Start Multiple Select Statements ------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ODBC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;CONNECT&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[MS Access Database Ronnie Test;DBQ=C:\USERS\RONNIE\DESKTOP\ACCESS DB\NSC_ACTUAL_SALES.accdb]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- Start Multiple Select Statements ------&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- Start Multiple Select Statements ------&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;NSC_ACTUAL_SALES:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt;FROM `T001D_NSC_ACTUAL_SALES_06242014`;&lt;BR /&gt;&lt;BR /&gt;NSC_BP_SALES:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt;FROM `T002A_NSC_BPSALES_06242014`;&lt;BR /&gt;&lt;BR /&gt;CURRENCY_RATE:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt;FROM `T_Master002_Currency_Rate_06242014`;&lt;BR /&gt;&lt;BR /&gt;NSC_CUSTOMER:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt;FROM `T_Master003_NSC_Customer_06182014`;&lt;BR /&gt;&lt;BR /&gt;PRODUCT:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt;FROM `T_Master004_Product_06202014`;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- End Multiple Select Statements ------&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- End Multiple Select Statements ------&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- End Multiple Select Statements ------ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Data Model:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/61127_Capture.JPG" style="width: 620px; height: 317px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jun 2014 03:28:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-25T03:28:57Z</dc:date>
    <item>
      <title>Looping issue when loading multiple tables</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-issue-when-loading-multiple-tables/m-p/647196#M1082242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am a QV newbie, trying to load the tables below into QV to generate some reports pertaining to Sales results (Actual vs Planned &amp;amp; also Actual vs Last Year). So here are the tables:&lt;/P&gt;&lt;P&gt;1.) ACTUAL SALES&lt;/P&gt;&lt;P&gt;2.) BP SALES &amp;lt;==(Business Plan)&lt;/P&gt;&lt;P&gt;3.) Product Master&lt;/P&gt;&lt;P&gt;4.) Customer Master&lt;/P&gt;&lt;P&gt;5.) Currency Rates (where the months matches both ACTUAL &amp;amp; BP SALES, we just need to know which month's rate to convert intoa base currenc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runs the script after connecting the tables via OBDC to my local MS Access as below, I was prompted with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; "One or more loops have been detected in your database structure. Loops may cause ambiguous results and should therefore be avoided. QlikView will cut the loop(s) by setting one or more tables as loosely coupled. Settings for loosely coupled tables can be modified after script execution in the tables page of the document properties dialog."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And when I total the ACTUAL SALES, there are variances found, which wasn't there before I introduced the BP SALES Table into the whole picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have 3 questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.) Can I change a field name right after the [SQL SECLECT * ] using Oldfieldname&lt;SPAN style="text-decoration: underline;"&gt; as Newfieldname&lt;/SPAN&gt;? Doesn't seem to work. I have no problem change field names if it's a direct upload from a tablefield where I can see all the fields loaded, but in this case, there are no fields shown since it's SELECT *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.) Is the loop issue causing &lt;SPAN style="text-decoration: underline;"&gt;some&lt;/SPAN&gt; of&amp;nbsp; my total ACTUAL_Amt(JPY) in the ACTUAL SALES to appear lower than it should? I don't see any problem when I sum the BP_Amt(Local Currency) from the BP_SALES.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3.) What should I do to avoid the looping issue? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************************************************************************&lt;/P&gt;&lt;P&gt;//-------- Start Multiple Select Statements ------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ODBC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;CONNECT&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[MS Access Database Ronnie Test;DBQ=C:\USERS\RONNIE\DESKTOP\ACCESS DB\NSC_ACTUAL_SALES.accdb]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- Start Multiple Select Statements ------&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- Start Multiple Select Statements ------&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;NSC_ACTUAL_SALES:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt;FROM `T001D_NSC_ACTUAL_SALES_06242014`;&lt;BR /&gt;&lt;BR /&gt;NSC_BP_SALES:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt;FROM `T002A_NSC_BPSALES_06242014`;&lt;BR /&gt;&lt;BR /&gt;CURRENCY_RATE:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt;FROM `T_Master002_Currency_Rate_06242014`;&lt;BR /&gt;&lt;BR /&gt;NSC_CUSTOMER:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt;FROM `T_Master003_NSC_Customer_06182014`;&lt;BR /&gt;&lt;BR /&gt;PRODUCT:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt;FROM `T_Master004_Product_06202014`;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- End Multiple Select Statements ------&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- End Multiple Select Statements ------&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- End Multiple Select Statements ------ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Data Model:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/61127_Capture.JPG" style="width: 620px; height: 317px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 03:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-issue-when-loading-multiple-tables/m-p/647196#M1082242</guid>
      <dc:creator />
      <dc:date>2014-06-25T03:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Looping issue when loading multiple tables</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-issue-when-loading-multiple-tables/m-p/647197#M1082243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I think I have solved question 2 by eliminating Product Master out of the data model. However, that takes away ability to allow the BP &amp;amp; ACTUAL Sales tables to utilize some common attributes in the PRODUCT master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie: In BP, the key is &lt;SPAN style="text-decoration: underline;"&gt;Cat4&lt;/SPAN&gt; &amp;amp; the key in ACTUAL is &lt;SPAN style="text-decoration: underline;"&gt;MODEL&lt;/SPAN&gt; to link to the PRODUCT master, I need to use Cat4 for both BP &amp;amp; ACTUAL as the common attribute to display as dimension in a chart. Let's say when I pick a particular month &amp;amp; year, it should utilize the Cat4 from BP and also Cat4 from ACTUAL(linked to a PRODUCT master through MODEL) that related to the month/year selected. However, I can't get Qlikview to do that correctly through the previous data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I do to make this linkage?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 03:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-issue-when-loading-multiple-tables/m-p/647197#M1082243</guid>
      <dc:creator />
      <dc:date>2014-06-25T03:59:31Z</dc:date>
    </item>
  </channel>
</rss>

