<?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 Issue linking with bridge tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149710#M716577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tested using an entirely new project, linking just claims, rewards, and claim__reward, I still get the same error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Jul 2009 06:51:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-18T06:51:09Z</dc:date>
    <item>
      <title>Issue linking with bridge tables</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149709#M716576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have three Database tables (views, actually) Members, Claims, and Rewards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards carries a reference to members.&lt;/P&gt;&lt;P&gt;Claims carries a reference to Members as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Claims and rewards have a complicated relationship. Not all rewards are a result of claims, and a single claim may result in more than one reward. In the underlying database there are intermediary transactional tables that define the relationship between claims and rewards. (it requires that I traverse two intermediary tables to get from claim to reward)&lt;/P&gt;&lt;P&gt;I've created a view which by convention I've called Claims__Rewards. Effectively, this view takes the place of a bridge table, so each record in the view contains a reference to a claim, and a reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I attempt to load these 4 views into QlickView, the script runs successfully, but after loading all of the records, it tells me that the script failed, without any further verbose description of the problem. Stepping through the code yields no errors until after the last line of the script, where I get the same failure message.&lt;/P&gt;&lt;P&gt;By way of debugging, I added a reference on the bridge table to the members table, to see what would happen. When I load all of these tables into QlickView, I get no errors at all, and all of the tables are linked (looking at the table linking view, I see that the application has created some additional bridge tables of its own to rationalize the relationship) However, the functionality I want (which is to identify a specific claim, and be able to see only the rewards that resulted from it) doesn't work. Instead, by selecting a specific claim record, I see all rewards for that user. (which makes sense based on the table structure I'm seeing).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can certainly include the script I'm working with, if that's helpful, but I think that the problem is logical, rather than syntactical.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jul 2009 06:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149709#M716576</guid>
      <dc:creator />
      <dc:date>2009-07-18T06:27:50Z</dc:date>
    </item>
    <item>
      <title>Issue linking with bridge tables</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149710#M716577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tested using an entirely new project, linking just claims, rewards, and claim__reward, I still get the same error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jul 2009 06:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149710#M716577</guid>
      <dc:creator />
      <dc:date>2009-07-18T06:51:09Z</dc:date>
    </item>
    <item>
      <title>Issue linking with bridge tables</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149711#M716578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please post a sample QVW if possible&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jul 2009 19:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149711#M716578</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-07-18T19:59:55Z</dc:date>
    </item>
    <item>
      <title>Issue linking with bridge tables</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149712#M716579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg, I'm afraid that I can't post the QVW. Even my development environment's data is sensitive, and I'm only just learning the product, so I'm not exaclty sure how I'd create a dummy. It's very possible that I'm either not doing something correctly, or missing some elementary step. I've run into the same problem in a number of places now with my data, with the same failure behavior, where the script completes, and then bails afterwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 07:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149712#M716579</guid>
      <dc:creator />
      <dc:date>2009-07-21T07:16:42Z</dc:date>
    </item>
    <item>
      <title>Issue linking with bridge tables</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149713#M716580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fry,&lt;BR /&gt;You can scramble the data (see document properties). In this particular case, what is needed is the script. If you cannot share the actaul script, create a similar one, it may be good enough.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 07:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149713#M716580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-21T07:33:09Z</dc:date>
    </item>
    <item>
      <title>Issue linking with bridge tables</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149714#M716581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script I can share.&lt;/P&gt;&lt;P&gt;As I said, the script executes all the way through debug, without failing until I close the debug window.&lt;/P&gt;&lt;P&gt;This is the script from my 'quick' sample which fails in the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;//ommited connect to, standard OLE DB connection to Oracle.&lt;BR /&gt;SQL SELECT AGREEDTOTERMS,&lt;BR /&gt; AREACODE,&lt;BR /&gt; CLIENTACCOUNTSTATUSCODE MEMBER_ELIGIBILITY,&lt;BR /&gt; EMAILADDRESS,&lt;BR /&gt; FAXNUMBER,&lt;BR /&gt; FIRSTNAME,&lt;BR /&gt; FULLNAME MEMBER_NAME,&lt;BR /&gt; ID MEMBERID,&lt;BR /&gt; JOBTITLE,&lt;BR /&gt; LASTNAME,&lt;BR /&gt; MEMBERROLE,&lt;BR /&gt; MOBILENUMBER,&lt;BR /&gt; PRIMARYIDENTIFIER USER_PI,&lt;BR /&gt; REGISTRATIONCOMPLETED,&lt;BR /&gt; substr(REGISTRATIONDATE,1,4) RegistrationYear,&lt;BR /&gt; substr(REGISTRATIONDATE,5,2) RegistrationMonth,&lt;BR /&gt; substr(REGISTRATIONDATE,7,2) RegistrationDay,&lt;BR /&gt; to_date(substr(registrationdate,1,8), 'yyyymmdd') RegistrationDate,&lt;BR /&gt; TELEPHONENUMBER,&lt;BR /&gt; VARCOMPANYID&lt;BR /&gt;FROM "SCHEMA"."MEMBER";&lt;BR /&gt;SQL SELECT CLAIMID,&lt;BR /&gt; CLAIMNUMBER,&lt;BR /&gt; CLAIMSTATUSCODE,&lt;BR /&gt; DENIALREASONCODE,&lt;BR /&gt; DISTRIBUTORID,&lt;BR /&gt; DISTRIBUTORINVOICENUMBER,&lt;BR /&gt; TRANSACTIONDATE CLAIM_TRANSACTIONDATE,&lt;BR /&gt; USERID MEMBERID,&lt;BR /&gt; USERPURCHASEID,&lt;BR /&gt; V_ID as UserClaimID&lt;BR /&gt;FROM "SCHEMA"."USER_CLAIMS"&lt;BR /&gt;WHERE V_ID is not null;&lt;BR /&gt;SQL SELECT EARNEDDATE REWARD_EARN_DATE,&lt;BR /&gt; ISSUEDATE REWARD_ISSUED_DATE,&lt;BR /&gt; MESSAGECODE,&lt;BR /&gt; MESSAGEMERGEVALUE,&lt;BR /&gt; REVERSED,&lt;BR /&gt; REWARDDENIALREASONCODE,&lt;BR /&gt; REWARDDESCRIPTION,&lt;BR /&gt; REWARDQUANTITY,&lt;BR /&gt; REWARDSTATUS,&lt;BR /&gt; SUMMARIZATIONCODE,&lt;BR /&gt; TRANSACTIONDATE REWARD_TRANSDATE,&lt;BR /&gt; //USERID MEMBERID,&lt;BR /&gt; V_ID as UserRewardID,&lt;BR /&gt; MESSAGEMERGEVALUE as claimNumber&lt;BR /&gt;FROM "SCHEMA"."USER_REWARD"&lt;BR /&gt;WHERE V_ID is not null;&lt;BR /&gt;SQL SELECT&lt;BR /&gt;UserRewardID,&lt;BR /&gt;UserClaimID&lt;BR /&gt;FROM "SCHEMA"."EMER_CLAIM__REWARD";&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 23:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149714#M716581</guid>
      <dc:creator />
      <dc:date>2009-07-21T23:10:41Z</dc:date>
    </item>
    <item>
      <title>Issue linking with bridge tables</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149715#M716582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Fry wrote:Even my development environment's data is sensitive&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;See this wiki page for tips on uploading sensitive data:&lt;BR /&gt;&lt;A href="http://community.qlik.com/wikis/qlikview-wiki/preparing-examples-for-upload-reduction-and-data-scrambling.aspx"&gt;http://community.qlik.com/wikis/qlikview-wiki/preparing-examples-for-upload-reduction-and-data-scrambling.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 02:13:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149715#M716582</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-07-22T02:13:07Z</dc:date>
    </item>
    <item>
      <title>Issue linking with bridge tables</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149716#M716583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;Thanks for the info! But I'm afraid the QVW wouldn't be a lot of use because the data isn't actually in it. It fails before the data gets loaded. I did post the script above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 02:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149716#M716583</guid>
      <dc:creator />
      <dc:date>2009-07-22T02:51:25Z</dc:date>
    </item>
    <item>
      <title>Issue linking with bridge tables</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149717#M716584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can post a print screen of table layout for clear understanding of the generated model ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 03:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149717#M716584</guid>
      <dc:creator>pablolabbe</dc:creator>
      <dc:date>2009-07-22T03:14:16Z</dc:date>
    </item>
    <item>
      <title>Issue linking with bridge tables</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149718#M716585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3122.Table-Structure.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/3122.Table-Structure.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The top row of tables. There is a bridge that belongs between claims, and rewards. Attempts to load the bridge fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 03:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149718#M716585</guid>
      <dc:creator />
      <dc:date>2009-07-22T03:28:51Z</dc:date>
    </item>
    <item>
      <title>Issue linking with bridge tables</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149719#M716586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Silly Analyst! Links are for Kids!&lt;/P&gt;&lt;P&gt;The problem is that the relationship I'm attempting to introduce causes a circular reference. It's a logical issue with the data model, and I think I just need to decide which relationship is more important. It may also be possible to create a seperate document for claims-purchase analysis where the relationship can be explicitly defined. -- I need to change the way I think about data structures.&lt;/P&gt;&lt;P&gt;Basically, I don't think I can have it both ways.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 06:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149719#M716586</guid>
      <dc:creator />
      <dc:date>2009-07-22T06:24:53Z</dc:date>
    </item>
    <item>
      <title>Issue linking with bridge tables</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149720#M716587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fry,&lt;BR /&gt;From the incomplete information you provided (the data model doesn't match the script), you got at least one loop here. notice MEMBERID in MEMBER, USER_CLAIMS, and USER_REWARD, and at the same time USER_CLAIMS and USER_REWARD connected by the last SELECT in your script (not in the data model). Usually you don't have the result that the reload collapses, but it may happen.&lt;BR /&gt;I'd recommend to review the data model, probbaly join some logical tables to avoid the loops.&lt;/P&gt;&lt;P&gt;Edit:&lt;BR /&gt;I see you got it already while I was looking into the script... &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;BR /&gt;You don't have to break it into two aplications, although you can if it's your preference. The common approach is to join or concatenate transactions table. For example, consider concatenating USER_CLAIMS and USER_REWARD into one table. See if it fits your business needs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 07:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149720#M716587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-22T07:02:25Z</dc:date>
    </item>
    <item>
      <title>Issue linking with bridge tables</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149721#M716588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 23:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-linking-with-bridge-tables/m-p/149721#M716588</guid>
      <dc:creator />
      <dc:date>2009-07-22T23:18:41Z</dc:date>
    </item>
  </channel>
</rss>

