<?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: Compute Start and End from Route along with Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compute-Start-and-End-from-Route-along-with-Value/m-p/42802#M777107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sasidhar, thank you for this solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2018 09:03:10 GMT</pubDate>
    <dc:creator>sbfernandes</dc:creator>
    <dc:date>2018-05-03T09:03:10Z</dc:date>
    <item>
      <title>Compute Start and End from Route along with Value</title>
      <link>https://community.qlik.com/t5/QlikView/Compute-Start-and-End-from-Route-along-with-Value/m-p/42798#M777103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have below table consisting of intermediate routes (Start-End).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 201px; border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Intermediate Routes&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;A-B&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;B-C&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;A-D&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;D-C&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the above, i would like to create a table with "Final Route" based on the start and end point and subsequent sum of value.&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 144px; border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Final Route&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Value&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;A-B-C&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;A-D-C&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this in Qlikview?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compute-Start-and-End-from-Route-along-with-Value/m-p/42798#M777103</guid>
      <dc:creator>sbfernandes</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compute Start and End from Route along with Value</title>
      <link>https://community.qlik.com/t5/QlikView/Compute-Start-and-End-from-Route-along-with-Value/m-p/42799#M777104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can treat that data like it's a hierarchy. And that means you can use the Hierarchy function to flatten that hierachy to get the complete paths and when you've got that you can add up the values to get the result. For more information about the Hierarchy function have a look at this blog post: &lt;A href="https://community.qlik.com/qlik-blogpost/3433"&gt;Unbalanced, n-level hierarchies&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 17:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compute-Start-and-End-from-Route-along-with-Value/m-p/42799#M777104</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-05-02T17:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compute Start and End from Route along with Value</title>
      <link>https://community.qlik.com/t5/QlikView/Compute-Start-and-End-from-Route-along-with-Value/m-p/42800#M777105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like attached&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; *,&lt;/P&gt;&lt;P&gt; If(RowNo()=1,1,if(Subfield(IntermediateRoutes,'-',1)=SubField(Previous(IntermediateRoutes),'-',2),Peek(Key),Peek(Key)+1)) as Key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;IntermediateRoutes,Value&lt;/P&gt;&lt;P&gt;A-B,1&lt;/P&gt;&lt;P&gt;B-C,2&lt;/P&gt;&lt;P&gt;A-D,3&lt;/P&gt;&lt;P&gt;D-C,4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;Concat(IntermediateRoutes,'-') as TotalIntermediateRoutes,&lt;/P&gt;&lt;P&gt;Sum(Value) As TotalValue&lt;/P&gt;&lt;P&gt;Resident T1&lt;/P&gt;&lt;P&gt;Group By &lt;/P&gt;&lt;P&gt;Key&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T3:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;SubField(TotalIntermediateRoutes,'-',1)&amp;amp;'-'&amp;amp;SubField(TotalIntermediateRoutes,'-',2)&amp;amp;'-'&amp;amp;SubField(TotalIntermediateRoutes,'-',-1) AS TotalIntermediateRoutes,&lt;/P&gt;&lt;P&gt;TotalValue&lt;/P&gt;&lt;P&gt;Resident T2&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table T2,T1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 08:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compute-Start-and-End-from-Route-along-with-Value/m-p/42800#M777105</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-05-03T08:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Compute Start and End from Route along with Value</title>
      <link>https://community.qlik.com/t5/QlikView/Compute-Start-and-End-from-Route-along-with-Value/m-p/42801#M777106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert, thanks for this. Was unware of this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 09:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compute-Start-and-End-from-Route-along-with-Value/m-p/42801#M777106</guid>
      <dc:creator>sbfernandes</dc:creator>
      <dc:date>2018-05-03T09:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Compute Start and End from Route along with Value</title>
      <link>https://community.qlik.com/t5/QlikView/Compute-Start-and-End-from-Route-along-with-Value/m-p/42802#M777107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sasidhar, thank you for this solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 09:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compute-Start-and-End-from-Route-along-with-Value/m-p/42802#M777107</guid>
      <dc:creator>sbfernandes</dc:creator>
      <dc:date>2018-05-03T09:03:10Z</dc:date>
    </item>
  </channel>
</rss>

