<?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 use Sankey Chart to show a process flow in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-use-Sankey-Chart-to-show-a-process-flow/m-p/1915479#M75387</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have to create a viz to show how data is flowing sequentially through different steps in a process .&amp;nbsp; We are looking to use Sankey chart (Vizlib or Qlik Viz bundle) to make this.&lt;/P&gt;
&lt;P&gt;We have a field where we capture all the steps that an ID goes through. Take the below view as an example, when this ID is selected, we would like to see 5 slabs(horizontal) for every Step.&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 96pt;" border="0" width="128" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="64" height="19" class="xl65" style="height: 14.5pt; width: 48pt;"&gt;ID&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="width: 48pt;"&gt;Step&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl65" style="height: 14.5pt;"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;Step 1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl65" style="height: 14.5pt;"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;Step 2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl65" style="height: 14.5pt;"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;Step 3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl65" style="height: 14.5pt;"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;Step 4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl65" style="height: 14.5pt;"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;Step 5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I use the Step field as my dimension then all the 5 Steps will come in one vertical line but the requirement is to show them horizontally in 5 different slabs to show the actual flow.&lt;/P&gt;
&lt;P&gt;Please keep in mind that we have around 20 distinct Steps currently and flow is bi-directional so we can go back and forth which means total number of steps could be greater than 20.&lt;/P&gt;
&lt;P&gt;Any suggestion will be highly appreciated. I am also open to other charts suggestions if they serve the purpose.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 18:20:47 GMT</pubDate>
    <dc:creator>pranaview</dc:creator>
    <dc:date>2022-04-06T18:20:47Z</dc:date>
    <item>
      <title>How to use Sankey Chart to show a process flow</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-Sankey-Chart-to-show-a-process-flow/m-p/1915479#M75387</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have to create a viz to show how data is flowing sequentially through different steps in a process .&amp;nbsp; We are looking to use Sankey chart (Vizlib or Qlik Viz bundle) to make this.&lt;/P&gt;
&lt;P&gt;We have a field where we capture all the steps that an ID goes through. Take the below view as an example, when this ID is selected, we would like to see 5 slabs(horizontal) for every Step.&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 96pt;" border="0" width="128" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="64" height="19" class="xl65" style="height: 14.5pt; width: 48pt;"&gt;ID&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="width: 48pt;"&gt;Step&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl65" style="height: 14.5pt;"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;Step 1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl65" style="height: 14.5pt;"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;Step 2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl65" style="height: 14.5pt;"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;Step 3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl65" style="height: 14.5pt;"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;Step 4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl65" style="height: 14.5pt;"&gt;1&lt;/TD&gt;
&lt;TD class="xl65"&gt;Step 5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I use the Step field as my dimension then all the 5 Steps will come in one vertical line but the requirement is to show them horizontally in 5 different slabs to show the actual flow.&lt;/P&gt;
&lt;P&gt;Please keep in mind that we have around 20 distinct Steps currently and flow is bi-directional so we can go back and forth which means total number of steps could be greater than 20.&lt;/P&gt;
&lt;P&gt;Any suggestion will be highly appreciated. I am also open to other charts suggestions if they serve the purpose.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 18:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-Sankey-Chart-to-show-a-process-flow/m-p/1915479#M75387</guid>
      <dc:creator>pranaview</dc:creator>
      <dc:date>2022-04-06T18:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Sankey Chart to show a process flow</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-Sankey-Chart-to-show-a-process-flow/m-p/1915573#M75389</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/23136"&gt;@pranaview&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I would consider not using so many slabs going across your Sankey but instead simplifying it down to a "From" and "To" slab. This will demonstrate backward movement from Step 3 to Step 2 perhaps more clearly as you would have to introduce slabs that only show movement from Step 3 to Step 2. I think this would cause an exponential problem as you'd have to account for every possible recursive movement.&lt;/P&gt;
&lt;P&gt;Here's an example I created based on your data and I think you can see where the ratio of ID's that have progressed through to the next step and those that have reverted back a step. This will also demonstrate where an ID has skipped a step. (If that's possible in your process)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anthonyj_0-1649287578781.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/76533i43FB54FCF5DA2488/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anthonyj_0-1649287578781.png" alt="anthonyj_0-1649287578781.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This code creates a column showing where the step moved to for purposes of the dimension in the Sankey.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;load&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;*&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Inline [&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ID Step TransferDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;1 Step 1 1/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;1 Step 2 3/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;1 Step 3 5/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;1 Step 4 6/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;1 Step 5 10/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2 Step 1 1/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2 Step 2 3/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2 Step 1 5/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2 Step 2 6/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2 Step 3 10/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3 Step 1 1/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3 Step 2 3/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3 Step 3 5/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3 Step 4 6/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3 Step 3 10/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3 Step 4 12/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3 Step 5 15/01/2020&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;](delimiter is '\t');&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;load *,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if(peek(ID) &amp;lt;&amp;gt; ID,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;null(), peek(Step)) as StepTo&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;resident Data&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;order by ID, TransferDate desc;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;drop table Data;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Anthony&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 23:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-Sankey-Chart-to-show-a-process-flow/m-p/1915573#M75389</guid>
      <dc:creator>anthonyj</dc:creator>
      <dc:date>2022-04-06T23:31:16Z</dc:date>
    </item>
  </channel>
</rss>

