<?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 Cycle Group Demension Sort Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209947#M64744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mmm... probably you have to make sure you are sorting as text values, since the space is ascii 32 it should sort first than any letter, so if you sort Z -&amp;gt; A, the first result should be the higher ascii value, in this case week 14. If this is not working, you can try loading this dimmension into a table and create a sorting index column or a dual value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Apr 2010 21:28:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-09T21:28:47Z</dc:date>
    <item>
      <title>Cycle Group Demension Sort Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209942#M64739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=if(Week &amp;lt; vCurrentWeek, Week, if(Week = vCurrentWeek, Week &amp;amp; ' - ' &amp;amp; DayOfWeek))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I currently have this as an expression within my date cycle group dimensions. It properly sorts the weeks from 13-1 (current week - previous). But the if statement says if it is the current week then load the days. So the result is as follows if it is current week 14 - 1 (1 being a day of week). However, the 14 shows up at the bottom of the weeks under 1 So when viewing the strait table the dimensions list as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;13&lt;BR /&gt;12&lt;BR /&gt;11&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;1&lt;BR /&gt;14 - 1&lt;BR /&gt;14- 2&lt;BR /&gt;14 - 3&lt;BR /&gt;14 -4&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the 14 to be on top. Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 18:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209942#M64739</guid>
      <dc:creator />
      <dc:date>2010-04-09T18:14:22Z</dc:date>
    </item>
    <item>
      <title>Cycle Group Demension Sort Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209943#M64740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello anthony, I think you are sorting in descending order, so probably you can try adding and space before the Week field of the previous weeks, it might not be clean but I should do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;PRE style="margin:0px;"&gt;=if(Week &amp;lt; vCurrentWeek, ' ' &amp;amp; Week, if(Week = vCurrentWeek, ' ' &amp;amp; Week &amp;amp; ' - ' &amp;amp; DayOfWeek))&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 19:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209943#M64740</guid>
      <dc:creator />
      <dc:date>2010-04-09T19:46:12Z</dc:date>
    </item>
    <item>
      <title>Cycle Group Demension Sort Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209944#M64741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I added one extra space, this is what I meant.&lt;/P&gt;&lt;PRE style="margin:0px;"&gt;=if(Week &amp;lt; vCurrentWeek, ' ' &amp;amp; Week, if(Week = vCurrentWeek, Week &amp;amp; ' - ' &amp;amp; DayOfWeek))&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 19:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209944#M64741</guid>
      <dc:creator />
      <dc:date>2010-04-09T19:47:03Z</dc:date>
    </item>
    <item>
      <title>Cycle Group Demension Sort Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209945#M64742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 20:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209945#M64742</guid>
      <dc:creator />
      <dc:date>2010-04-09T20:04:08Z</dc:date>
    </item>
    <item>
      <title>Cycle Group Demension Sort Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209946#M64743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually that isn't working. Any other ideas/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 20:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209946#M64743</guid>
      <dc:creator />
      <dc:date>2010-04-09T20:26:18Z</dc:date>
    </item>
    <item>
      <title>Cycle Group Demension Sort Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209947#M64744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mmm... probably you have to make sure you are sorting as text values, since the space is ascii 32 it should sort first than any letter, so if you sort Z -&amp;gt; A, the first result should be the higher ascii value, in this case week 14. If this is not working, you can try loading this dimmension into a table and create a sorting index column or a dual value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 21:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209947#M64744</guid>
      <dc:creator />
      <dc:date>2010-04-09T21:28:47Z</dc:date>
    </item>
    <item>
      <title>Cycle Group Demension Sort Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209948#M64745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You were right, to fix the problem i went in and changed it from numeric sort to alpha sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Apr 2010 17:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209948#M64745</guid>
      <dc:creator />
      <dc:date>2010-04-10T17:41:41Z</dc:date>
    </item>
    <item>
      <title>Cycle Group Demension Sort Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209949#M64746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the issue doesn't seem to be resolved. Even when it was sorting the days before the weeks it was not sorting the days int he right order. Attached is a screen shot of what it is doing now. Starts at week 14 and goes to 1 then lists week 15 days. I want it to be in Descending order starting at the most recent week/day.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;Attached is a screen shot of what it is doing. &lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6406.Sort-Issue.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6406.Sort-Issue.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;below is my dimension code&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;= if(Week &amp;lt; vCurrentWeek, ' ' &amp;amp; Week, if(Week = vCurrentWeek, if(DayOfWeek &amp;lt; vDayOfWeek, Week &amp;amp; ' - ' &amp;amp; DayOfWeekAlpha)))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 14:27:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209949#M64746</guid>
      <dc:creator />
      <dc:date>2010-04-19T14:27:29Z</dc:date>
    </item>
    <item>
      <title>Cycle Group Demension Sort Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209950#M64747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anthony, can you post a sample qlikview application?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 22:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209950#M64747</guid>
      <dc:creator />
      <dc:date>2010-04-19T22:03:13Z</dc:date>
    </item>
    <item>
      <title>Cycle Group Demension Sort Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209951#M64748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about using dual() to associate a numeric value with each value? For instance:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(Week&amp;lt;vCurrentWeek,dual(Week,Week),if(Week=vCurrentWeek,dual(Week &amp;amp; ' - ' &amp;amp; DayOfWeek,Week+DayOfWeek/7)))&lt;/P&gt;&lt;P&gt;Then sort numerically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 01:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209951#M64748</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-04-20T01:18:30Z</dc:date>
    </item>
    <item>
      <title>Cycle Group Demension Sort Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209952#M64749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, that works. except now it is showing mon-fri even though I want it to only show currentday -1 (yesterday).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 14:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209952#M64749</guid>
      <dc:creator />
      <dc:date>2010-04-20T14:04:40Z</dc:date>
    </item>
    <item>
      <title>Cycle Group Demension Sort Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209953#M64750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually i just added back my if statement in your example. Works great, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 14:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-Group-Demension-Sort-Issue/m-p/209953#M64750</guid>
      <dc:creator />
      <dc:date>2010-04-20T14:07:04Z</dc:date>
    </item>
  </channel>
</rss>

