<?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 by date in a chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-by-date-in-a-chart/m-p/576948#M547960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual( WeekDay(Date), Date ) &lt;/P&gt;&lt;P&gt;as dimension - either defined in the script or as calculated dimension, QlikView will display WeekDay but sort (numerically) according to date. Which is what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Feb 2014 16:30:08 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2014-02-12T16:30:08Z</dc:date>
    <item>
      <title>Sorting by date in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-date-in-a-chart/m-p/576946#M547958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a chart which selects the most recent 7 days of activity, then uses the WEEKDAY function of those 7 days to produce values in the chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish these to be displayed in date order. If today is Tuesday, the chart should (last) Wednesday through to today(Tuesday).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot get the sort to work; I have tried using the activity date as a sort expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies if a similar question has previously been answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 16:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-date-in-a-chart/m-p/576946#M547958</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2014-02-12T16:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting by date in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-date-in-a-chart/m-p/576947#M547959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Richard,&lt;/P&gt;&lt;P&gt;I used Weekday(Today()) in Expressions in Sort. Check out the attached file and see if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 16:22:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-date-in-a-chart/m-p/576947#M547959</guid>
      <dc:creator />
      <dc:date>2014-02-12T16:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting by date in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-date-in-a-chart/m-p/576948#M547960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual( WeekDay(Date), Date ) &lt;/P&gt;&lt;P&gt;as dimension - either defined in the script or as calculated dimension, QlikView will display WeekDay but sort (numerically) according to date. Which is what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 16:30:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-date-in-a-chart/m-p/576948#M547960</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-02-12T16:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting by date in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-date-in-a-chart/m-p/576949#M547961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the helpful answer. It works ... and I now have to go and understand why &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 16:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-date-in-a-chart/m-p/576949#M547961</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2014-02-12T16:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting by date in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-date-in-a-chart/m-p/576950#M547962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The secret is in the Dual( ) function. Each field value has a text component &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;and&lt;/EM&gt;&lt;/SPAN&gt; a numeric component. Read more on &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual" title="http://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, you display the textual part (weekday, the first parameter of the dual function) but you sort by the numeric value (the second parameter of dual).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 18:35:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-date-in-a-chart/m-p/576950#M547962</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-02-12T18:35:04Z</dc:date>
    </item>
  </channel>
</rss>

