<?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 Sort by Calculated Dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-by-Calculated-Dimensions/m-p/97343#M15613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Straight Table with two columns: "Received Date" (Calculated Dimension) and "# Orders" (Expression) and I am formatting the &lt;SPAN style="font-size: 13.3333px;"&gt;Received Date column as 'Mon-YYYY', and also splitting the current month into weeks (eg Week 1, Week 2, etc.).&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;My Received Date Calculated Dimension is: &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;=If(Month(Today())=Month(C_RECEIVED_DATE) and Year(Today())=Year(C_RECEIVED_DATE),&lt;/P&gt;
&lt;P&gt;'Week ' &amp;amp; Ceil(Day(C_RECEIVED_DATE)/7),Month(C_RECEIVED_DATE) &amp;amp; '-' &amp;amp; Year(C_RECEIVED_DATE))&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I want the &lt;SPAN style="font-size: 13.3333px;"&gt;Received Date column to sort in chronological order like below:&lt;/SPAN&gt;&lt;BR /&gt;&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;&lt;IMG __jive_id="206640" alt="CorrectSort.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206640_CorrectSort.jpg" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is sorting like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="206641" alt="IncorrectSort.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/206641_IncorrectSort.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a simple qvw with my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2018 15:34:11 GMT</pubDate>
    <dc:creator>shaunj12</dc:creator>
    <dc:date>2018-06-29T15:34:11Z</dc:date>
    <item>
      <title>Sort by Calculated Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Calculated-Dimensions/m-p/97343#M15613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Straight Table with two columns: "Received Date" (Calculated Dimension) and "# Orders" (Expression) and I am formatting the &lt;SPAN style="font-size: 13.3333px;"&gt;Received Date column as 'Mon-YYYY', and also splitting the current month into weeks (eg Week 1, Week 2, etc.).&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;My Received Date Calculated Dimension is: &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;=If(Month(Today())=Month(C_RECEIVED_DATE) and Year(Today())=Year(C_RECEIVED_DATE),&lt;/P&gt;
&lt;P&gt;'Week ' &amp;amp; Ceil(Day(C_RECEIVED_DATE)/7),Month(C_RECEIVED_DATE) &amp;amp; '-' &amp;amp; Year(C_RECEIVED_DATE))&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I want the &lt;SPAN style="font-size: 13.3333px;"&gt;Received Date column to sort in chronological order like below:&lt;/SPAN&gt;&lt;BR /&gt;&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;&lt;IMG __jive_id="206640" alt="CorrectSort.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206640_CorrectSort.jpg" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is sorting like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="206641" alt="IncorrectSort.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/206641_IncorrectSort.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a simple qvw with my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 15:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Calculated-Dimensions/m-p/97343#M15613</guid>
      <dc:creator>shaunj12</dc:creator>
      <dc:date>2018-06-29T15:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by Calculated Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Calculated-Dimensions/m-p/97344#M15614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the sorting table, uncheck everything and use this expression on the MonthWeek field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=max(C_RECEIVED_DATE) //on ascending&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 15:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Calculated-Dimensions/m-p/97344#M15614</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-06-29T15:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by Calculated Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Calculated-Dimensions/m-p/97345#M15615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, that was easy -- now I feel a little silly.&amp;nbsp; I was trying to use the expression to sort but I was getting way to complicated with what I was trying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much Youssef!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 15:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Calculated-Dimensions/m-p/97345#M15615</guid>
      <dc:creator>shaunj12</dc:creator>
      <dc:date>2018-06-29T15:52:38Z</dc:date>
    </item>
  </channel>
</rss>

