<?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: Re: Sort x-axis in chart with alternate state in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-x-axis-in-chart-with-alternate-state/m-p/661122#M240986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @Gysbert Wassenaar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the Quick answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I upload the most reduce version that I could.&lt;/P&gt;&lt;P&gt;In the chart, (x-axis) you will see the cycle group, with:&lt;/P&gt;&lt;P&gt;- Mes Dia = Month Day&lt;/P&gt;&lt;P&gt;- Dia = Day&lt;/P&gt;&lt;P&gt;- Mes Dia Hora = Month Day Hour&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to sort the Month Day Hour, you can use the field "Orden", that have the correct order of the field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Sep 2014 12:32:30 GMT</pubDate>
    <dc:creator>german_avanzato</dc:creator>
    <dc:date>2014-09-10T12:32:30Z</dc:date>
    <item>
      <title>Sort x-axis in chart with alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-x-axis-in-chart-with-alternate-state/m-p/661120#M240984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem in a chart, where two lines must be draw.&lt;/P&gt;&lt;P&gt;The expression for the first line is sum(Value) and the second one is sum({StateA}Value) where StateA is an alternate state.&lt;/P&gt;&lt;P&gt;The X-axis is a cycle group, with&lt;/P&gt;&lt;P&gt;- the concatenation of num(Month(Date),'#00')&amp;amp;'-'&amp;amp;num(Day(Date),'#00')&amp;amp;'-'&amp;amp;num(Hour(Date),'#00')&lt;/P&gt;&lt;P&gt;- the concatenation of num(Month(Date),'#00')&amp;amp;'-'&amp;amp;num(Day(Date),'#00')&lt;/P&gt;&lt;P&gt;- the Day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont put the year because I want to compare the information of different years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the X-axis don´t appear in orden. &lt;/P&gt;&lt;P&gt;I already try with the sort option, even with the expression option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that when the state StateA expression is enable, the X-axis don´t appear sorted.&lt;/P&gt;&lt;P&gt;Is like the chart try to sort the x-axis for the 2 expression at the same time.&lt;/P&gt;&lt;P&gt;If I only let the StateA expression enable, the x-axis take the default sort option, don´t the sort option I set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need both expression enable,&lt;/P&gt;&lt;P&gt;Anyone know how to solve this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 03:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-x-axis-in-chart-with-alternate-state/m-p/661120#M240984</guid>
      <dc:creator>german_avanzato</dc:creator>
      <dc:date>2014-09-10T03:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sort x-axis in chart with alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-x-axis-in-chart-with-alternate-state/m-p/661121#M240985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post an example document that demonstrates the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 08:28:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-x-axis-in-chart-with-alternate-state/m-p/661121#M240985</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-09-10T08:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Sort x-axis in chart with alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-x-axis-in-chart-with-alternate-state/m-p/661122#M240986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @Gysbert Wassenaar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the Quick answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I upload the most reduce version that I could.&lt;/P&gt;&lt;P&gt;In the chart, (x-axis) you will see the cycle group, with:&lt;/P&gt;&lt;P&gt;- Mes Dia = Month Day&lt;/P&gt;&lt;P&gt;- Dia = Day&lt;/P&gt;&lt;P&gt;- Mes Dia Hora = Month Day Hour&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to sort the Month Day Hour, you can use the field "Orden", that have the correct order of the field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 12:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-x-axis-in-chart-with-alternate-state/m-p/661122#M240986</guid>
      <dc:creator>german_avanzato</dc:creator>
      <dc:date>2014-09-10T12:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Sort x-axis in chart with alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-x-axis-in-chart-with-alternate-state/m-p/661123#M240987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I found the solution, but not in the sorting options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I discovered in the field that is calculated with this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(Month(Date),'#00')&amp;amp;'-'&amp;amp;num(Day(Date),'#00')&amp;amp;'-'&amp;amp;num(Hour(Date),'#00')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That some data are categorized like Text and others like number.&lt;/P&gt;&lt;P&gt;For that reason, I put the command Text()&amp;nbsp; to force the field to be recognize like Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEXT (num(Month(Date),'#00')&amp;amp;'-'&amp;amp;num(Day(Date),'#00')&amp;amp;'-'&amp;amp;num(Hour(Date),'#00') )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, with the default sort option, the axis is displaying the information in the correct way&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks for the help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 21:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-x-axis-in-chart-with-alternate-state/m-p/661123#M240987</guid>
      <dc:creator>german_avanzato</dc:creator>
      <dc:date>2014-09-10T21:20:00Z</dc:date>
    </item>
  </channel>
</rss>

