<?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: Finding the shortest route between two paths in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131664#M633042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me the expressions that you have used , so that i will try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jun 2016 18:20:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-06-06T18:20:48Z</dc:date>
    <item>
      <title>Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131661#M633039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table that is having the train information like train no , train name, source station name, destination station name, distance&lt;/P&gt;&lt;P&gt;the table looks like this:&lt;/P&gt;&lt;P&gt;Train No&amp;nbsp;&amp;nbsp;&amp;nbsp; Train Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source Station Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Destination Name&amp;nbsp;&amp;nbsp;&amp;nbsp; Distance&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------------&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CDE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EFG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HIJ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KLM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I need is if I select Source Station : A and Destination : D then it should give the me list of all the train numbers, I need to connect to reach to the destination using shortest distance .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: from&amp;nbsp; A To D : A-&amp;gt;B-&amp;gt;D = 20 then the train no will be 1,5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2:&amp;nbsp;&amp;nbsp;&amp;nbsp; A-&amp;gt;B-&amp;gt;E-&amp;gt;D= 80 then the train numbers will be 1,2,3 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I need , it would be great if anyone can help me finding the solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 10:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131661#M633039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-06T10:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131662#M633040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since this calculation involves a recursive calc I don´t think this can be done using regular QlikView expressions. Maybe using a macro (not sure about this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm" title="https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm"&gt;Dijkstra's algorithm - Wikipedia, the free encyclopedia&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 11:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131662#M633040</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-06-06T11:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131663#M633041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can create a solution using a script that creates hierarchy tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-06-06 15_11_47-QlikView x64 - [C__Users_Stefan_Downloads_comm219620.qvw].png" class="jive-image image-1" src="/legacyfs/online/126947_2016-06-06 15_11_47-QlikView x64 - [C__Users_Stefan_Downloads_comm219620.qvw].png" style="font-size: 13.3333px; height: 156px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 13:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131663#M633041</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-06T13:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131664#M633042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me the expressions that you have used , so that i will try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 18:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131664#M633042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-06T18:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131665#M633043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is the script code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then created the two list boxes for SourceSelect and DestinationSelect and a straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;=Aggr(If(Left(Path,1) = SourceSelect and Right(Path,1) = DestinationSelect, Path),Path)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;sum({&amp;lt;AncestorName = {"*"}&amp;gt;}Distance)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Concat(AncestorName,',')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;A/B/D&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;20&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1,5&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;A/B/E/D&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;80&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1,2,3&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's just an outline of a possible solution (not even sure if this will work for more complex scenarios).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 19:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131665#M633043</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-06T19:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131666#M633044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script u have loaded concatenated the following&lt;/P&gt;&lt;P&gt;CONCATENATE &lt;/P&gt;&lt;P&gt;LOAD Null() as [Source Station Name],[Source Station Name] as [Destination Name]&lt;/P&gt;&lt;P&gt;RESIDENT&amp;nbsp; Trains;&lt;/P&gt;&lt;P&gt;Why do we need to do that, if not what will happen can you explain me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 08:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131666#M633044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-07T08:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131667#M633045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a hierarchy LOAD, the root nodes should be loaded with parent node being NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if we need this here, if you want to know what happens if you remove this part, just try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: I think if you remove the concatenated records, the HIERARCHY LOAD&amp;nbsp; prefix will not work correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the HELP:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;All nodes with a parent id not found in the node id column (including nodes with missing parent id) will be considered as roots. Also, only nodes with a connection to a root node - direct or indirect - will be loaded, thus avoiding circular references.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 09:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131667#M633045</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-07T09:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131668#M633046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a person want to go from B to A , if he selects B in source and A in destination is it possible and if I have a record which shows the information of the train that travels from B to A. In that case what should I do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 10:41:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131668#M633046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-07T10:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131669#M633047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should be possible if your source data actually contains possible routes for that combination of Source and Destination. Currently, in your sample records, it doesn't, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 12:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131669#M633047</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-07T12:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131670#M633048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it by inserting a record but it does not works, should I need to change any thing else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 12:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131670#M633048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-07T12:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131671#M633049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The HIERARCHY LOAD prefix might be limited to routes without possible loops, which I think is hard to ensure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to create a similar approach without using the HIERARCHY LOAD prefix, but using a loop that iteratively joins all source stations to the previous destination stations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="127136" alt="2016-06-07 18_05_10-QlikView x64 - [C__Users_Stefan_Downloads_comm219620_2.qvw_].png" class="jive-image image-1" src="/legacyfs/online/127136_2016-06-07 18_05_10-QlikView x64 - [C__Users_Stefan_Downloads_comm219620_2.qvw_].png" style="height: 216px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;=Aggr(If(Left(Path,1) = SourceSelect and Right(Path,1) = DestinationSelect, Path),Path)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;TotalDistance&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Path&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;A/B/D&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;20&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;A/B/D&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;A/B/E/D&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;80&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;A/B/E/D&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;Also attaching a slightly modified version where the selection of source and destination station is linked to the path.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-06-07 18_28_54-QlikView x64 - [C__Users_Stefan_Downloads_comm219620_2b.qvw].png" class="jive-image image-2" src="/legacyfs/online/127138_2016-06-07 18_28_54-QlikView x64 - [C__Users_Stefan_Downloads_comm219620_2b.qvw].png" style="height: 216px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 16:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131671#M633049</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-07T16:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131672#M633050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am connecting it with my data it is taking too much of time and get stuck in the middle, I don't have any clue can you help me out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 09:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131672#M633050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-08T09:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131673#M633051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many stations / connections do you have in your data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you estimate the max number of stations on any given route?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 09:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131673#M633051</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-08T09:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131674#M633052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having total 69K records out of which I am just loading 296 records , still it is loading&lt;/P&gt;&lt;P&gt;What should I do now?, No I can't estimate maximum number of stations for any given route.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 09:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131674#M633052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-08T09:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131675#M633053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having 356 source and 356 destinations , in that case they are connected in the one or the other way I feel&lt;/P&gt;&lt;P&gt;what should I do now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 09:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131675#M633053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-08T09:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131676#M633054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached an image in this if I select B as source and E as destination then it give me two train nos :1,2&amp;nbsp; but ideally it should be 2 I feel , then how can I remove it?.&lt;/P&gt;&lt;P&gt;Sorry for troubling you.&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/127344_Capture.PNG" style="width: 620px; height: 150px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 08:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131676#M633054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-09T08:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131677#M633055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Start with limiting the number of hops to evaluate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i = 1 to FieldValueCount('Destination Name')-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use a low upper limit, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For i = 1 to 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;then investigate in the SourceSelect and DestinationSelect, if all possible combinations are possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This might not find the optimal path, though. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If you get a feeling for the number of possible routes created, slowly increase the upper limit of the for loop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will depend on the properties of your network how much iterations you will need to find all connections and a at least near-optimal route.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that this approach is a brute force one, &lt;SPAN style="font-size: 13.3333px;"&gt;if you need to handle thousands of stations with a lot of possible destinations, this brute force approach will not work (well).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are specialized tools for route optimization and you might want to have a look into some other external tools as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 08:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131677#M633055</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-09T08:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131678#M633056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't look like you are using my latest version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't support version 0.9 anymore &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 12:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131678#M633056</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-09T12:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131679#M633057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am Using Version 11 , Is it because of that ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 13:33:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131679#M633057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-09T13:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the shortest route between two paths</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131680#M633058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, sorry, I am referring to my latest uploaded QVW sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should not show the two train numbers when you are expecting only one.&lt;/P&gt;&lt;P&gt;The field is called TrainSeq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 13:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-the-shortest-route-between-two-paths/m-p/1131680#M633058</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-09T13:41:19Z</dc:date>
    </item>
  </channel>
</rss>

