<?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 Dimension sort in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dimension-sort/m-p/218276#M71441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your expression returns a String, and Strings are sorted just the way it shows - "15" goes before "2". If you have to use strings, you can at least format the Week number to always show 2 digits:&lt;/P&gt;&lt;PRE style="margin:0px;"&gt;= if(Week &amp;lt; vCurrentWeek, ' '&lt;BR /&gt;&amp;amp; num(Week, '00'), if(Week = vCurrentWeek, if(DayOfWeek &amp;lt; vDayOfWeek, num(Week, '00')&lt;BR /&gt;&amp;amp; ' - ' &amp;amp; DayOfWeekAlpha)))&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Apr 2010 20:44:29 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2010-04-19T20:44:29Z</dc:date>
    <item>
      <title>Dimension sort</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-sort/m-p/218275#M71440</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;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1438_sourceID:1438" /&gt;&lt;/P&gt;&lt;P&gt;below is my dimension code&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&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;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 18:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-sort/m-p/218275#M71440</guid>
      <dc:creator />
      <dc:date>2010-04-19T18:06:10Z</dc:date>
    </item>
    <item>
      <title>Dimension sort</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-sort/m-p/218276#M71441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your expression returns a String, and Strings are sorted just the way it shows - "15" goes before "2". If you have to use strings, you can at least format the Week number to always show 2 digits:&lt;/P&gt;&lt;PRE style="margin:0px;"&gt;= if(Week &amp;lt; vCurrentWeek, ' '&lt;BR /&gt;&amp;amp; num(Week, '00'), if(Week = vCurrentWeek, if(DayOfWeek &amp;lt; vDayOfWeek, num(Week, '00')&lt;BR /&gt;&amp;amp; ' - ' &amp;amp; DayOfWeekAlpha)))&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 20:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-sort/m-p/218276#M71441</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-04-19T20:44:29Z</dc:date>
    </item>
  </channel>
</rss>

