<?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 Sorting the dates in x-axis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155938#M32006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a dynamic dimension in which you conver the text strings to dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Feb 2010 09:16:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-23T09:16:17Z</dc:date>
    <item>
      <title>Sorting the dates in x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155936#M32004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have dates in the following format like&lt;/P&gt;&lt;P&gt;d-4 28-Jan&lt;/P&gt;&lt;P&gt;d-3 29-Jan&lt;/P&gt;&lt;P&gt;d-2 30-Jan&lt;/P&gt;&lt;P&gt;d-1 31-Jan&lt;/P&gt;&lt;P&gt;d0 1-Feb&lt;/P&gt;&lt;P&gt;d1 2-Feb&lt;/P&gt;&lt;P&gt;d2 3-Feb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to arrange dates in this order in x-axis, i used both the sort by number and text, but the order is changed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 06:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155936#M32004</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2010-02-23T06:50:59Z</dc:date>
    </item>
    <item>
      <title>Sorting the dates in x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155937#M32005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I think the problem here is you are not following a std format.. wat is de difference between&lt;/P&gt;&lt;P&gt;"d-1 and d1 "&lt;/P&gt;&lt;P&gt;"d-2 and d2"&lt;/P&gt;&lt;P&gt;as your data has differences. sorting is not working for you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 07:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155937#M32005</guid>
      <dc:creator>achiever_ajay</dc:creator>
      <dc:date>2010-02-23T07:42:28Z</dc:date>
    </item>
    <item>
      <title>Sorting the dates in x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155938#M32006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a dynamic dimension in which you conver the text strings to dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 09:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155938#M32006</guid>
      <dc:creator />
      <dc:date>2010-02-23T09:16:17Z</dc:date>
    </item>
    <item>
      <title>Sorting the dates in x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155939#M32007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like your dates are actually text? If so, you could use a dual() function to assign an actual date value to them, something like:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;dual('d' &amp;amp; num(Date-AnchorDate,'#,##0') &amp;amp; ' ' &amp;amp; date(Date,'DD-MMM'),Date) as RelativeDate,&lt;/P&gt;&lt;P&gt;You should then be able to sort them numerically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 01:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155939#M32007</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-02-24T01:13:11Z</dc:date>
    </item>
    <item>
      <title>Sorting the dates in x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155940#M32008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello...I have a similar problem...&lt;/P&gt;&lt;P&gt;My x-axis is shows a TransMonthYear field (TransMonth &amp;amp; ' ' &amp;amp; TransYear &lt;B&gt;as&lt;/B&gt; TransMonthYear ) this is how I want it to be displayed on the graph but is causing havoc with sorting the dates in the correct date order.&lt;/P&gt;&lt;P&gt;Will John's suggestion work for me? If so could someone explain it again for me as I couldn't follow the logic behind the statement 8-)&lt;/P&gt;&lt;P&gt;Many thanks!!! Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 08:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155940#M32008</guid>
      <dc:creator />
      <dc:date>2010-09-23T08:37:40Z</dc:date>
    </item>
    <item>
      <title>Sorting the dates in x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155941#M32009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the data arrives in the correct order from your datasource, sort by "Load Order" could work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 08:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155941#M32009</guid>
      <dc:creator>kji</dc:creator>
      <dc:date>2010-09-23T08:42:08Z</dc:date>
    </item>
    <item>
      <title>Sorting the dates in x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155942#M32010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johan... unfortunatly is doesn't come in such a nice order... Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 08:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155942#M32010</guid>
      <dc:creator />
      <dc:date>2010-09-23T08:51:20Z</dc:date>
    </item>
    <item>
      <title>Sorting the dates in x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155943#M32011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have any suggestions? Been trying all morning... &lt;IMG alt="Sad" src="http://community.qlik.com/emoticons/emotion-6.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 15:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155943#M32011</guid>
      <dc:creator />
      <dc:date>2010-09-23T15:20:33Z</dc:date>
    </item>
    <item>
      <title>Sorting the dates in x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155944#M32012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;date(makedate(TransYear,TransMonth),'MMM YYYY') as TransMonthYear // or whatever format you need for month and year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 17:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155944#M32012</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-09-23T17:55:53Z</dc:date>
    </item>
    <item>
      <title>Sorting the dates in x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155945#M32013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John... but still no joy... perhaps this might help...&lt;/P&gt;&lt;P&gt;These are the values in my TransYear and TransMonth fields&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3175.screeno.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/3175.screeno.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is the new line in my load statement...&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/8585.screeno2.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/8585.screeno2.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This loads ok but there when I look in the TransMonthYear field it is empty&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/2313.screnno3jpg.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/2313.screnno3jpg.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Any other QlikTips?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 14:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155945#M32013</guid>
      <dc:creator />
      <dc:date>2010-09-24T14:22:04Z</dc:date>
    </item>
    <item>
      <title>Sorting the dates in x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155946#M32014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, OK. It looks like the issue is that your TransMonth is currently just a text field, where I'd guessed it was a month() field. How about this?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;date(date#(TransMonth&amp;amp;TransYear,'MMMYYYY'),'MMM YYYY') as TransMonthYear&lt;/P&gt;&lt;P&gt;Also, you might want to turn your TransMonth into a month() instead of text, which will let it sort properly in your list box and charts:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;month(date#(TransMonth&amp;amp;TransYear,'MMMYYYY')) as TransMonth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 17:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155946#M32014</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-09-24T17:25:53Z</dc:date>
    </item>
    <item>
      <title>Sorting the dates in x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155947#M32015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John... perfect timing 5:30 on Friday afternoon and all my graphs now display in the right order...&lt;/P&gt;&lt;P&gt;Job done... &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt; Thanks again!!! Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 17:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-dates-in-x-axis/m-p/155947#M32015</guid>
      <dc:creator />
      <dc:date>2010-09-24T17:48:44Z</dc:date>
    </item>
  </channel>
</rss>

