<?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: Manuely sort over a calculated Dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Manuely-sort-over-a-calculated-Dimensions/m-p/1265492#M861929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Enrique and &lt;A _jive_internal="true" data-avatarid="5408" data-externalid="" data-online="false" data-presence="null" data-userid="16307" data-username="trdandamudi" href="https://community.qlik.com/people/trdandamudi"&gt;Thirumala Dandamudi&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I tried your solution in the backend part and it also did work and because of that I learnd a little bit more about the backend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jan 2017 08:44:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-01-23T08:44:25Z</dc:date>
    <item>
      <title>Manuely sort over a calculated Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Manuely-sort-over-a-calculated-Dimensions/m-p/1265487#M861924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good evening!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a data set from some productionhouse. From their point of view the start of their work is around 22:00 o'clock and they end around 17:00 o'clock. So they are starting for example at 22:00 16.01.2017 and had their end of work at 17:00 17.01.2017. Each product that is manufactured inbetween gets a timestamp (hh:mm) and a datestamp. They are both in different columns. The twist lies in the datestamp, because even if they are starting on 16.01.2017&amp;nbsp; at 22:00 the datestamp for this data set will automatically make the 17.01.2017 22:00.&lt;/P&gt;&lt;P&gt;To describe it better I try to show it in two tables.&lt;/P&gt;&lt;P&gt;In the first table i show you the actually time and date the normaly would be shown in a Table.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Product&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Time&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;22:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;16.01.2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;16.01.2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17.01.2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;D&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17.01.2017&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And now how the data is when I look at the table&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Time&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17.01.2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;D&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17.01.2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;22:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17.01.2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17.01.2017&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To show ho many products are created in an hour I created a bar chart with the Dimension '=hour(time)' on the Y-Achse and a formula that just counting the Products. So far it is ok and the values are right. The Problem comes with the follow requirement. When we show the bar chart, the bars are orderer like in table 2. On the first place 0.00 hr and how many products has been manufactured in this hour. The last bar is the 23hr bar. The customer wants have a change in the rankings or in the sort of this bar, that the hour will on the y-achse will be wortet like in table 1 of my example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried already in the sort expression the match() funktion and also researched a little bit about the dual() funktion, but couldn't find a clue about a solution. Could someone please guide me in the right direction. If it doesn't work with the sort expression, could the solution lie within the backend...maybe in creating a new column, that will change the date befor 00:00 in the right date. But sadly I don't have to much experience at the backend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appriciate any Help that I could get.&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manuely-sort-over-a-calculated-Dimensions/m-p/1265487#M861924</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Manuely sort over a calculated Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Manuely-sort-over-a-calculated-Dimensions/m-p/1265488#M861925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you could fix it ordering the hours by an expression in the order tab. The expression colud be something like this: Avg(If(hour(time) = 22 OR &lt;SPAN style="font-size: 13.3333px;"&gt;hour(time) &lt;/SPAN&gt;= 23, 24 - hour(time), hour(time))) and you had to order it ascending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of each hour wolud be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;00 - 00&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;01 - 01&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;02 - 02&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;03 - 03&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;04 - 04&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;05 - 05&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;06 - 06&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;07 - 07&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;08 - 08&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;09 - 09&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;10 - 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;11 - 11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;12 - 12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;13 - 13&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;14 - 14&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;15 - 15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;16 - 16&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;17 - 17&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;22 - -02&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;23 - -01&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;, and values 22 and 23 would appear in the first places, followed by 00, 01, ..., 17.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Please, colud you try it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;H&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 21:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manuely-sort-over-a-calculated-Dimensions/m-p/1265488#M861925</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2017-01-17T21:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Manuely sort over a calculated Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Manuely-sort-over-a-calculated-Dimensions/m-p/1265489#M861926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can define the sort by Load Order (Original) in the chart properties, but that sorting you need to create it in your script, adding an extra field to identify the first, second, third... final ID for your dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Time = '22:00', 1, if(Time = '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;23:00&lt;/SPAN&gt;', 2, if(Time = '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;0:00&lt;/SPAN&gt;', 3, if(Time = '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;4:00&lt;/SPAN&gt;', 4)))) as IDSort,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;Resident YourTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the match() function is not working because the values of this dimension is a timestamp, I'm not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 21:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manuely-sort-over-a-calculated-Dimensions/m-p/1265489#M861926</guid>
      <dc:creator>eespiritu</dc:creator>
      <dc:date>2017-01-17T21:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Manuely sort over a calculated Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Manuely-sort-over-a-calculated-Dimensions/m-p/1265490#M861927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you are looking for ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sort_Order_17_Jan_2017.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149795_Sort_Order_17_Jan_2017.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 21:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manuely-sort-over-a-calculated-Dimensions/m-p/1265490#M861927</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2017-01-17T21:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Manuely sort over a calculated Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Manuely-sort-over-a-calculated-Dimensions/m-p/1265491#M861928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very mutch for your quick response. I used your sort expression, but did change a small thing.&lt;/P&gt;&lt;P&gt;Avg(If(hour(time) = 22 OR &lt;SPAN style="font-size: 13.3333px;"&gt;hour(time) &lt;/SPAN&gt;= 23, &lt;SPAN style="text-decoration: underline;"&gt;hour(time)- 24&lt;/SPAN&gt;, hour(time)))&lt;/P&gt;&lt;P&gt;Without this change the order was a little bit off&lt;/P&gt;&lt;P&gt;00&lt;/P&gt;&lt;P&gt;01&lt;/P&gt;&lt;P&gt;22&lt;/P&gt;&lt;P&gt;23&lt;/P&gt;&lt;P&gt;02&lt;/P&gt;&lt;P&gt;03&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 08:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manuely-sort-over-a-calculated-Dimensions/m-p/1265491#M861928</guid>
      <dc:creator />
      <dc:date>2017-01-23T08:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Manuely sort over a calculated Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Manuely-sort-over-a-calculated-Dimensions/m-p/1265492#M861929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Enrique and &lt;A _jive_internal="true" data-avatarid="5408" data-externalid="" data-online="false" data-presence="null" data-userid="16307" data-username="trdandamudi" href="https://community.qlik.com/people/trdandamudi"&gt;Thirumala Dandamudi&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I tried your solution in the backend part and it also did work and because of that I learnd a little bit more about the backend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 08:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manuely-sort-over-a-calculated-Dimensions/m-p/1265492#M861929</guid>
      <dc:creator />
      <dc:date>2017-01-23T08:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Manuely sort over a calculated Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Manuely-sort-over-a-calculated-Dimensions/m-p/1265493#M861930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome...If you think you got the answer then please close the thread appropriately....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 12:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manuely-sort-over-a-calculated-Dimensions/m-p/1265493#M861930</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2017-01-23T12:47:34Z</dc:date>
    </item>
  </channel>
</rss>

