<?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 Mapping load with 1 key for two fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping-load-with-1-key-for-two-fields/m-p/321638#M708544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of a mapping load, have you try to join your shipment table with your depot table with IntervalMatch (using the extended syntax) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Considering that:&lt;/P&gt;&lt;P&gt;- Shipments and TimeFrames are loaded &lt;/P&gt;&lt;P&gt;- Shipments contains at least DepotName and DeliveredTime&lt;/P&gt;&lt;P&gt;- TimeFrames contains DepotName, Start and End&lt;/P&gt;&lt;P&gt;- TimeFrames can contain many lines with the same depot name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have a script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Left Join (Shipments) &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;IntervalMatch (DeliveredTime, DepotName) &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Load &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp; Start,&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp; End,&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp; Depot&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Resident TimeFrames ;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Drop Table TimeFrames ;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, Shipments table will have two more fields Start and End. You can use those fields to create a flag if you don't want to keep them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Oct 2011 14:37:44 GMT</pubDate>
    <dc:creator>vincent_ardiet</dc:creator>
    <dc:date>2011-10-07T14:37:44Z</dc:date>
    <item>
      <title>Mapping load with 1 key for two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-load-with-1-key-for-two-fields/m-p/321637#M708543</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 have the following problem. I need to check wether a shipment is delivered within a certain timeframe (defined with a start and endtime) at a depot. The key for these depots are the day and the depot name. However for certain depots I have 2 timeframes for a day. Now I need a way to check for both time frames if the shipment is delivered within the time frame. Any help is greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 13:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-load-with-1-key-for-two-fields/m-p/321637#M708543</guid>
      <dc:creator />
      <dc:date>2011-10-07T13:17:31Z</dc:date>
    </item>
    <item>
      <title>Mapping load with 1 key for two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-load-with-1-key-for-two-fields/m-p/321638#M708544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of a mapping load, have you try to join your shipment table with your depot table with IntervalMatch (using the extended syntax) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Considering that:&lt;/P&gt;&lt;P&gt;- Shipments and TimeFrames are loaded &lt;/P&gt;&lt;P&gt;- Shipments contains at least DepotName and DeliveredTime&lt;/P&gt;&lt;P&gt;- TimeFrames contains DepotName, Start and End&lt;/P&gt;&lt;P&gt;- TimeFrames can contain many lines with the same depot name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have a script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Left Join (Shipments) &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;IntervalMatch (DeliveredTime, DepotName) &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Load &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp; Start,&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp; End,&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp; Depot&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Resident TimeFrames ;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Drop Table TimeFrames ;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, Shipments table will have two more fields Start and End. You can use those fields to create a flag if you don't want to keep them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 14:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-load-with-1-key-for-two-fields/m-p/321638#M708544</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2011-10-07T14:37:44Z</dc:date>
    </item>
    <item>
      <title>Mapping load with 1 key for two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-load-with-1-key-for-two-fields/m-p/321639#M708545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vincent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. It is partially correct since I also need to do an aggregation on Depot Level to determine if a shipment is in one of the timerframes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 11:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-load-with-1-key-for-two-fields/m-p/321639#M708545</guid>
      <dc:creator />
      <dc:date>2011-10-10T11:28:13Z</dc:date>
    </item>
  </channel>
</rss>

