<?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: Sorting Gantt chart by dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722746#M259429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way Jonathan, do you know how I could create a button or any kind of selector where I could change the type of sorting I want to apply to the chart ? like for example Sort by the dimension field ( alphabetically ) or Sort by the date ( as you showed me )&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Enrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 20:22:00 GMT</pubDate>
    <dc:creator>quiquehm</dc:creator>
    <dc:date>2014-09-17T20:22:00Z</dc:date>
    <item>
      <title>Sorting Gantt chart by dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722741#M259424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi, I have a problem trying to sort the dimension values in a combo chart. I built kind of a Gantt chart to display project milestones across time, and I would need to sort the chart displaying the milestones as they will come in time. My dimension ( Task ) is a calculated dimension made of a string of simple dimensions and a few symbols ( Unicode symbols ) :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Task = =WBS_Nr_icon&amp;amp;' '&amp;amp;Activ_Nr_icon&amp;amp;'-'&amp;amp;CPS&amp;amp;' '&amp;amp;if(Not IsNull(date_MST_Actual),chr(9670),chr(9671))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;IMG alt="Milestones.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/66068_Milestones.png" style="width: 620px; height: 342px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Expressions are just 2 , Milestone Plan Date ( circles ) and Milestone Actual Date ( dots ). I can filter the chart to display only Plan dates ( open milestones ) ...so I would like to sort these by the dates , in ascending order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I tried Sorting by date_MST_Plan, but it does not work. I also tried by Y-value, but no sucess.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Does anybody know how to do the trick ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Thanks a lot&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;IMG alt="Sorting.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/66069_Sorting.png" style="width: 620px; height: 360px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 16:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722741#M259424</guid>
      <dc:creator>quiquehm</dc:creator>
      <dc:date>2014-09-05T16:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Gantt chart by dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722742#M259425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you able to share a qvw sample ? .. doesn't matter if scrambed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 19:58:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722742#M259425</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-05T19:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Sorting Gantt chart by dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722743#M259426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;Sure, here is the qvw&lt;/P&gt;&lt;P&gt;Appreciate any suggestions&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 12:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722743#M259426</guid>
      <dc:creator>quiquehm</dc:creator>
      <dc:date>2014-09-15T12:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Sorting Gantt chart by dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722744#M259427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i changed the sort to be by expression with this formula:&amp;nbsp; date(date_MST_Plan)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems to work with limitted testing.&amp;nbsp; To 2x check its right i added the date right at the start of the dimension on the left below.&amp;nbsp; The attached example doesn't show the date in the dimension but the sort was changed for your reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/66768_Untitled.png" style="width: 620px; height: 250px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 12:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722744#M259427</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-15T12:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Gantt chart by dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722745#M259428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jonathan. In fact I tried that sort, but I forgot to add the date function to the date_MST_Plan, I thought the field itself would do the trick as I think the field has a date format already. Anyway I will use your sorting definitively. Thanks again&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 20:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722745#M259428</guid>
      <dc:creator>quiquehm</dc:creator>
      <dc:date>2014-09-15T20:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Gantt chart by dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722746#M259429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way Jonathan, do you know how I could create a button or any kind of selector where I could change the type of sorting I want to apply to the chart ? like for example Sort by the dimension field ( alphabetically ) or Sort by the date ( as you showed me )&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Enrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 20:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722746#M259429</guid>
      <dc:creator>quiquehm</dc:creator>
      <dc:date>2014-09-17T20:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Sorting Gantt chart by dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722747#M259430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do that. I created a variable controlled by input box in attached. It has 2 values:&amp;nbsp; Date , ByDimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select Date, it will sort by the expression Date(date_MST_Plan) .&amp;nbsp; If you select Dimension the expression evaluates to null and then it will sort alphabetically (which will happen on the dimension by default)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wanted additional options, just create a nested IF statement to pick up different sort values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 00:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722747#M259430</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-18T00:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Sorting Gantt chart by dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722748#M259431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan, thanks for your help !. I am a bit confused now though, as your trick for sorting looked evident and straight forward to me , but when I opened your qvw file , the sorting does not work for me. Could it be due to different qvw versions ? I am still running the old 8.5 ( only one I have a license ). I put the plan dates in numeric format to see it more clear.&lt;/P&gt;&lt;P&gt;Any advice of what could be wrong ?&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Gantt_Sort.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/67192_Gantt_Sort.PNG.png" style="width: 620px; height: 260px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 11:00:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722748#M259431</guid>
      <dc:creator>quiquehm</dc:creator>
      <dc:date>2014-09-19T11:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Gantt chart by dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722749#M259432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have never used 8.5 but this is the area my last post was referring to. On the sort tabyou can enter an expression for sorting.&amp;nbsp; You would change what is below to&amp;nbsp; an IF() statement that chose a different sorting depending on the value of a variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/67208_Capture.PNG.png" style="width: 620px; height: 351px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 13:24:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722749#M259432</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-19T13:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Gantt chart by dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722750#M259433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ! I am not sure what I did before, but I tried again and it works. The only "problem" is if I remove the date from the dimension values ( the string ) , the sorting by date does not work. I will see if I can make those dates "transparent" or something similar, so they are not displayed on the chart.&lt;/P&gt;&lt;P&gt;Thanks again for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 16:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Gantt-chart-by-dates/m-p/722750#M259433</guid>
      <dc:creator>quiquehm</dc:creator>
      <dc:date>2014-09-19T16:22:36Z</dc:date>
    </item>
  </channel>
</rss>

