<?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: Dates On Bar Graph Not Sorting Properly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dates-On-Bar-Graph-Not-Sorting-Properly/m-p/1729639#M722291</link>
    <description>&lt;P&gt;The calculated dimension you created has only text values (because you concatenate strings) and therefore can only be sorted as text.&lt;/P&gt;&lt;P&gt;To fix that you should use a date field. Date fields are numbers, with a textual display format. I assume CC_TRAN_DTX is a date field. A good solution is probably to create a new field in the load script in the table that contains the CC_TRAN_DTX&amp;nbsp; field: &lt;STRONG&gt;Date(MonthStart(CC_TRAN_DTX ),'MMM YYYY ') as CC_TRAN_Month&lt;BR /&gt;&lt;/STRONG&gt;Then use that new field CC_TRAN_Month as dimension in your chart&lt;STRONG&gt;. &lt;/STRONG&gt;You could also try Date(MonthStart(CC_TRAN_DTX ),'MMM YYYY ')&amp;nbsp; as calculated dimension in your chart. But real fields perform better than calculated dimensions.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2020 17:47:20 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2020-07-21T17:47:20Z</dc:date>
    <item>
      <title>Dates On Bar Graph Not Sorting Properly</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-On-Bar-Graph-Not-Sorting-Properly/m-p/1729624#M722290</link>
      <description>&lt;P&gt;Hi Everyone - hoping to get some guidance.&amp;nbsp; I have a bar chart (picture attached) that shows the number of credit card charges by Month/Year.&lt;/P&gt;&lt;P&gt;I create this Month/Year as a calculated dimension since I do not have this data resident in any of my tables.&amp;nbsp; When I try to sort by this value I cannot get the proper calendar sorting.&amp;nbsp; Is this due to the calculated dimension?&amp;nbsp; Would this work better if I created both the month and year in my script and then concatenated them?&lt;/P&gt;&lt;P&gt;The sorting is set to text at the moment and I know that is not correct.&lt;/P&gt;&lt;P&gt;Appreciate your help!&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-On-Bar-Graph-Not-Sorting-Properly/m-p/1729624#M722290</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2024-11-16T18:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dates On Bar Graph Not Sorting Properly</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-On-Bar-Graph-Not-Sorting-Properly/m-p/1729639#M722291</link>
      <description>&lt;P&gt;The calculated dimension you created has only text values (because you concatenate strings) and therefore can only be sorted as text.&lt;/P&gt;&lt;P&gt;To fix that you should use a date field. Date fields are numbers, with a textual display format. I assume CC_TRAN_DTX is a date field. A good solution is probably to create a new field in the load script in the table that contains the CC_TRAN_DTX&amp;nbsp; field: &lt;STRONG&gt;Date(MonthStart(CC_TRAN_DTX ),'MMM YYYY ') as CC_TRAN_Month&lt;BR /&gt;&lt;/STRONG&gt;Then use that new field CC_TRAN_Month as dimension in your chart&lt;STRONG&gt;. &lt;/STRONG&gt;You could also try Date(MonthStart(CC_TRAN_DTX ),'MMM YYYY ')&amp;nbsp; as calculated dimension in your chart. But real fields perform better than calculated dimensions.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 17:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-On-Bar-Graph-Not-Sorting-Properly/m-p/1729639#M722291</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2020-07-21T17:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dates On Bar Graph Not Sorting Properly</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-On-Bar-Graph-Not-Sorting-Properly/m-p/1729994#M722292</link>
      <description>&lt;P&gt;Thank you for your guidance.&amp;nbsp; I always struggle with the date formats and normally confuse them with some other tools I use.&amp;nbsp; This worked perfectly!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 16:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-On-Bar-Graph-Not-Sorting-Properly/m-p/1729994#M722292</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2020-07-22T16:38:51Z</dc:date>
    </item>
  </channel>
</rss>

