<?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 How to? Best fit algorithm results in QV in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Best-fit-algorithm-results-in-QV/m-p/1541059#M745805</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp;wondering if there is any way to implement a script calculation that will simulate a loading units building algorithm in QV.&lt;/P&gt;&lt;P&gt;My goal is to present the required&amp;nbsp;number of loading units and movements between areas per time period (Day/Hour) and/or per Order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script&amp;nbsp;supposed to go through the orders and to sort them by&amp;nbsp;&lt;SPAN&gt;Requierd_Data, Requierd_ Time, Tour_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then it should group the required Product_ID and&amp;nbsp;Required_Quantity by Area, Zone&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and begin to allocate them into&amp;nbsp;Child_Loading_Units based on the&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;Area, Zone restrictions&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the next step is to build the&amp;nbsp;Loading_Units based on the&amp;nbsp;Child_Loading_Units calculation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Each&amp;nbsp;Area, Zone combination could contain a number&amp;nbsp;of&amp;nbsp;Child_Loading_Units&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and the model should check which one could fit based on the required&amp;nbsp;dimensions and volume&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Order mixing in Loading_Units and&amp;nbsp;Child_Loading_Units&amp;nbsp; is not allowed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-The&amp;nbsp;Loading_Unit path is A-&amp;gt;B-&amp;gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when the following scenarios are available&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A,B,C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A-&amp;gt;B,C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A-&amp;gt;C,B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A,B-&amp;gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A-&amp;gt;B-&amp;gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The DB structure will be based on the following tables&amp;nbsp;and data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order_Header:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Order_ID,&lt;/P&gt;&lt;P&gt;Tour_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requierd_Data,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Requierd_ Time&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order_Lines:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Order_ID,&lt;/SPAN&gt;&lt;/P&gt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SPAN&gt;Child_LU_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LU_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Child_LU_Desc,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Child_LU_Height,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Child_LU_Width,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Child_LU_Length,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Child_LU_Vol,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Area&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>shahafei2</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How to? Best fit algorithm results in QV</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Best-fit-algorithm-results-in-QV/m-p/1541059#M745805</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp;wondering if there is any way to implement a script calculation that will simulate a loading units building algorithm in QV.&lt;/P&gt;&lt;P&gt;My goal is to present the required&amp;nbsp;number of loading units and movements between areas per time period (Day/Hour) and/or per Order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script&amp;nbsp;supposed to go through the orders and to sort them by&amp;nbsp;&lt;SPAN&gt;Requierd_Data, Requierd_ Time, Tour_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then it should group the required Product_ID and&amp;nbsp;Required_Quantity by Area, Zone&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and begin to allocate them into&amp;nbsp;Child_Loading_Units based on the&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;Area, Zone restrictions&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the next step is to build the&amp;nbsp;Loading_Units based on the&amp;nbsp;Child_Loading_Units calculation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Each&amp;nbsp;Area, Zone combination could contain a number&amp;nbsp;of&amp;nbsp;Child_Loading_Units&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and the model should check which one could fit based on the required&amp;nbsp;dimensions and volume&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Order mixing in Loading_Units and&amp;nbsp;Child_Loading_Units&amp;nbsp; is not allowed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-The&amp;nbsp;Loading_Unit path is A-&amp;gt;B-&amp;gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when the following scenarios are available&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A,B,C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A-&amp;gt;B,C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A-&amp;gt;C,B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A,B-&amp;gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A-&amp;gt;B-&amp;gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The DB structure will be based on the following tables&amp;nbsp;and data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order_Header:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Order_ID,&lt;/P&gt;&lt;P&gt;Tour_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requierd_Data,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Requierd_ Time&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order_Lines:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Order_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Product_ID,&lt;/P&gt;&lt;P&gt;Required_Quantity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Products:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Product_ID,&lt;/P&gt;&lt;P&gt;Product_Desc,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Area,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Zone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unit_Height,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unit_Width,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unit_Length&lt;/SPAN&gt;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;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Best-fit-algorithm-results-in-QV/m-p/1541059#M745805</guid>
      <dc:creator>shahafei2</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

