<?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: Re: Re: Check if invoiced prices matches price from Contract in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782876#M277201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for valid input to my challenges with Qlikview this time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved my problem with the IntervalMatch and kept a synthetic key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2014 09:45:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-11T09:45:48Z</dc:date>
    <item>
      <title>Check if invoiced prices matches price from Contract</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782868#M277193</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;&lt;/P&gt;&lt;P&gt;I am currently developing a Qlikview Based Purchase Analyzing Tool. One of the Tasks I have been given is to check if suppliers complies with the prices in the contract. 1-2 times a year in a 4 year contract period the suppliers have the right to regulate prices based on USD, index, etc. This gives me some challenges. A possible maximum of 8 pricelists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A first simple overview of the thoughts I have done so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pricelist (Table):&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 594px; height: 103px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ContractID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;SupplierID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ItemID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Startdate&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Enddate&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Price_pr_UOM&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;UOM&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12000000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;DC-1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01-01-2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30-06-2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;EA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12000000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;DC-1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01-07-2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;31-12-2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1250&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;EA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12000000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;DC-1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01-01-2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30-06-2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1300&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;EA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12000000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;AC-2500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01-01-2012&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;31-12-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;EA&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Invoice_Lines (Table):&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="149" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 570px; height: 128px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;InvoiceID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Invoice_Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;SupplierID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ItemID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;InvoicedQTY&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;InvoicedAMT&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23-05-2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12000000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;DC-1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1050&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15-07-2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12000000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;DC-1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30-11-2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12000000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;DC-1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1750&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1300&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15-04-2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12000000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;AC-2500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2600&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I hope to be able to calculate the following:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;total turnover on a contract (pr. item, pr. contract, pr. supplier)&lt;/LI&gt;&lt;LI&gt;overbilling pr. item, pr. supplier, pr. contract&lt;/LI&gt;&lt;LI&gt;total turnover outside of contract&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards to different prices within the contract period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first thought would be to check during the load of invoice lines if the items bought is covered by an contract and a specific pricelist and enrich the Invoice_Lines (Table) with this information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will happily supply this thread with more information if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 09:15:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782868#M277193</guid>
      <dc:creator />
      <dc:date>2014-12-05T09:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Check if invoiced prices matches price from Contract</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782869#M277194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We expect around 4-10 million records in the Pricelist (Table) and around 2-4 million new records in Invoice_Lines (Table) pr. year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 09:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782869#M277194</guid>
      <dc:creator />
      <dc:date>2014-12-05T09:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Check if invoiced prices matches price from Contract</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782870#M277195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anders,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You certainly have yourself an interesting problem there. I know that dealing with things like exchange rate variations is possible as we do that within Qlik but I am not certain of how it is handled. I believe this is an example of a slowly changing dimension. You might find some useful info in the following blog post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/06/03/slowly-changing-dimensions" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/06/03/slowly-changing-dimensions"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/06/03/slowly-changing-dimensions&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782870#M277195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-05T10:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Check if invoiced prices matches price from Contract</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782871#M277196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an really interesting input. Slowly Moving Dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read the blog now and try to use the principles on some sample data in the weekend and get back early next week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 11:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782871#M277196</guid>
      <dc:creator />
      <dc:date>2014-12-05T11:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Check if invoiced prices matches price from Contract</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782872#M277197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out Intervalmatch and Intervalmatch(Extended) from QlikView Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can join that table without multiplying it with the above method. Then you can do everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS1: Well it multiplies it but in an efficient way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Serhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 14:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782872#M277197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-05T14:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Check if invoiced prices matches price from Contract</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782873#M277198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Serhan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached my first test with the IntervalMatch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does almost what I want to achieve in very few steps, however every transaction not on a contract is discarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I am a Qlikview novice, it is probably a newbie mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions? &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;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 12:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782873#M277198</guid>
      <dc:creator />
      <dc:date>2014-12-08T12:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Check if invoiced prices matches price from Contract</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782874#M277199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I solved the problem above with a Left Join instead of inner join.&lt;/P&gt;&lt;P&gt;However Ending up with just one table dropping the Contracts and Bridging table might be a good idea as I have done in the attached document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bu this solution will of course change the no. of records in my transactions table, which doesnt seem like a good idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another problem is that even though some Procurement specialists have told me that one itemID can only have one Price on a specific date, it only took 5 minutes to find an item present in different contracts with different prices. So I probably end up with having to deal with a Many-To-Many relationsship or simply only accept one record for an item in the Contracts on any date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just dont know how to make that check during dataload.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 14:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782874#M277199</guid>
      <dc:creator />
      <dc:date>2014-12-08T14:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Check if invoiced prices matches price from Contract</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782875#M277200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anders,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can only write a quick note.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You dont have to inner join or left join. Just dont join and leave a synthetic key (a useful one for your case). That way you can keep 2 tables without cartesian.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Serhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 14:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782875#M277200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-08T14:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Check if invoiced prices matches price from Contract</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782876#M277201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for valid input to my challenges with Qlikview this time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved my problem with the IntervalMatch and kept a synthetic key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 09:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-invoiced-prices-matches-price-from-Contract/m-p/782876#M277201</guid>
      <dc:creator />
      <dc:date>2014-12-11T09:45:48Z</dc:date>
    </item>
  </channel>
</rss>

