<?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: Inner join tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inner-join-tables/m-p/1755668#M590787</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/91157"&gt;@Zachary&lt;/a&gt;, to assing values you can use IntervalMatch. &lt;A href="https://help.qlik.com/en-US/sense/September2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/IntervalMatch.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/September2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/IntervalMatch.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But interval need an start and end point of each date range, so first you need to cerarte those range, taking ValidDate as the start date you can create the end date using peek(), ie:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PricesWithIntervals:
LOAD Item, 
  StandarPrice,
  ValidDate as StartDate,
  If(Peek(Item)=Item, Date(Peek(StartDate)-1), Date(99999) as EndDate
Resident [ItemCalculationTableName]
Order by Price, ValidDate desc;&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 24 Oct 2020 17:31:36 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2020-10-24T17:31:36Z</dc:date>
    <item>
      <title>Inner join tables</title>
      <link>https://community.qlik.com/t5/QlikView/Inner-join-tables/m-p/1755339#M590786</link>
      <description>&lt;DIV&gt;&lt;FONT&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;I'm new to Qlikview and need help solving my task.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;I want modify the current data model to now include a new column, "StandardPrice", in the row value.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;The column is the price for some item at the time sold it was sold to the customer.&lt;BR /&gt;So the item in the sales order line has a one-to-many relationship to the table ItemCalculation.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;The ItemCalculation table has, among others, the following columns defined:&lt;BR /&gt;Item&lt;BR /&gt;ValidDate&lt;BR /&gt;StandardPrice&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;How must I proceed to achieve my goal?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Thanks in advance for the help.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Oct 2020 09:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inner-join-tables/m-p/1755339#M590786</guid>
      <dc:creator>Zachary</dc:creator>
      <dc:date>2020-10-23T09:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join tables</title>
      <link>https://community.qlik.com/t5/QlikView/Inner-join-tables/m-p/1755668#M590787</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/91157"&gt;@Zachary&lt;/a&gt;, to assing values you can use IntervalMatch. &lt;A href="https://help.qlik.com/en-US/sense/September2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/IntervalMatch.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/September2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/IntervalMatch.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But interval need an start and end point of each date range, so first you need to cerarte those range, taking ValidDate as the start date you can create the end date using peek(), ie:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PricesWithIntervals:
LOAD Item, 
  StandarPrice,
  ValidDate as StartDate,
  If(Peek(Item)=Item, Date(Peek(StartDate)-1), Date(99999) as EndDate
Resident [ItemCalculationTableName]
Order by Price, ValidDate desc;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 24 Oct 2020 17:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inner-join-tables/m-p/1755668#M590787</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-10-24T17:31:36Z</dc:date>
    </item>
  </channel>
</rss>

