<?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 me out of this circular reference! in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077525#M1707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again. I think this approach will work, however I keep getting &amp;lt;Partner Code&amp;gt; not found, so I have to solve for that. I have checked, rechecked, and tripple checked all of my column headers and names and everything and I just cannot get it to recognize Partner Code. I'll be sure to post back once I've moved beyond that issue, and flag this if it indeed solved my issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Apr 2016 20:59:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-04-07T20:59:54Z</dc:date>
    <item>
      <title>Help me out of this circular reference!</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077521#M1703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hello! This is my first question to the community, though I have lurked for some time and found many great resolutions via both the questions and the blogs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having an issue with a circular reference that I am unable to solve completely, even after going through the blog on the matter (which was enlightening). I have three tables, below. Two are raw, non-configurable files (I cannot change their output). One serves as a simple relationship between partner and price list. They are as such:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 509px; height: 93px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Partner Table (manual)&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Price List Table (generated)&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Exception Table (generated)&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Partner Code&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Price List&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Part Number&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Price List&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Part Number&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Partner Code&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Discount&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;List Price&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Quantity&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ask - In the exception file there is a unique line ID for each row. The row will contain a Part Number, a Partner Code, and a quantity. From this, I need to associate the price list the partner uses, then use that list to find the appropriate list price, and multiply through with the appropriate discount. It looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Quantity] * [List Price] * (1 - [Discount]) = [Extended Value] for each row. I use variations of this calculation to Sum or Average in aggregate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each Part Number has up to four prices (one for each price list), so the Price List Table consists of duplicate part numbers in the Part Number column. Each Partner Code is associated with only one Price List in the Partner Table. From what I understand, I am using Price List in two ways - one is the Price List the Partner Code uses, the other is the Price List the List Price and Part Number are associated with. This is where I am unable to solve my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somehow, I need each unique row in the Exceptions Table to connect the Partner Code to the correct Price List to the correct List Price for the Part Number on that row. It sounds so simple I have to be missing something right in front of me. Thanks in advance for any help on this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 19:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077521#M1703</guid>
      <dc:creator />
      <dc:date>2016-04-07T19:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help me out of this circular reference!</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077522#M1704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are almost there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I probably would use a JOIN or&amp;nbsp; Applymap()s to get price list and discount into the exception table, using partner code as key. Then you have two fields that link exception and price list table, and as far as I understood, that is what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a combined key out of the two fields or just leave the synthetic key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 19:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077522#M1704</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-07T19:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help me out of this circular reference!</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077523#M1705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the prompt reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been looking into those as a possibility - do you have an example load statement based on the tables above I could leverage (prior to me poking around in the dark)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 20:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077523#M1705</guid>
      <dc:creator />
      <dc:date>2016-04-07T20:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help me out of this circular reference!</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077524#M1706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A basic approch using a JOIN:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&lt;EM&gt;Price List Table]:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Price List], [Part Number], [List Price]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM YourPriceListTableSource; // you need to put the correct source file name here or use a SELECT on your DB.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[Exception Table]:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Part Number],[Partner Code],[Quantity]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM YourExceptionTableSource;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LEFT JOIN ([Exception Table])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Partner Code],[Price List],[Discount]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM YourPartnerTableSource;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should create two tables, linked by two fields and creating a synthetic key (which is what we need here (or a new key created from the two fields). You should already be able to run your analysis using this data model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 20:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077524#M1706</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-07T20:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help me out of this circular reference!</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077525#M1707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again. I think this approach will work, however I keep getting &amp;lt;Partner Code&amp;gt; not found, so I have to solve for that. I have checked, rechecked, and tripple checked all of my column headers and names and everything and I just cannot get it to recognize Partner Code. I'll be sure to post back once I've moved beyond that issue, and flag this if it indeed solved my issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 20:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077525#M1707</guid>
      <dc:creator />
      <dc:date>2016-04-07T20:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help me out of this circular reference!</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077526#M1708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do you get this error message? In your load script? Could you post the script or the document log?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 21:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077526#M1708</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-07T21:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help me out of this circular reference!</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077527#M1709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was receiving the error in the load script, but it's likely that something else unrelated is causing me issues as I am very new to this. I've attached very simple samples of the files. If I can get these to work in a load script and show a table that shows 1 transaction id, with 1 part number, 1 partner code, 1 (accurate) price list, 1 (accurate) list price, and discount, then I would call this a success and I can move forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I've generated generally has many rows with duplicate transaction Ids, which is an instant failure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help here!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 23:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077527#M1709</guid>
      <dc:creator />
      <dc:date>2016-04-07T23:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help me out of this circular reference!</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077528#M1710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check if this is correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 00:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077528#M1710</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-08T00:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help me out of this circular reference!</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077529#M1711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, this is perfect!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Russ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 17:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Help-me-out-of-this-circular-reference/m-p/1077529#M1711</guid>
      <dc:creator />
      <dc:date>2016-04-13T17:11:19Z</dc:date>
    </item>
  </channel>
</rss>

