<?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 Simple Sort by Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-Sort-by-Expression/m-p/368499#M136992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Make a series of 7 listboxes. Each one displays a single day. Use an expression like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=if(Weekday(Weekday) = 'Sun',Weekday)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make each lisbox small and set them side by side.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;What a pain!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2012 21:20:52 GMT</pubDate>
    <dc:creator>m_woolf</dc:creator>
    <dc:date>2012-04-25T21:20:52Z</dc:date>
    <item>
      <title>Simple Sort by Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Sort-by-Expression/m-p/368497#M136990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Day of Week list that uses the Weekday function to determine the day of the week.&amp;nbsp; I set it up so that it has seven columns, and I get Mon trhough Sun in the list.&amp;nbsp; I want Sun through Sat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried loading a sort column:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(weekday(Date)='Sun',-1,num(weekday(Date))) as WeekDaySort, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this produces the correct numerical order that I want the sort to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my List Box, on the sort tab, I placed the WeekDaySort field in the Expression, checked the Expression box, and get the correct ordering - UNTIL a selection is made.&amp;nbsp; Then the ordering changes, whether or not the State is selected, with any of the three choices....&amp;nbsp; When I make a list with just the WeekDaySort, the order doesn't change at all after selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 21:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Sort-by-Expression/m-p/368497#M136990</guid>
      <dc:creator />
      <dc:date>2012-04-25T21:06:52Z</dc:date>
    </item>
    <item>
      <title>Simple Sort by Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Sort-by-Expression/m-p/368498#M136991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dual(weekday(Date),if(weekday(Date)='Sun',-1,num(weekday(Date)))) as Weekday,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then sort numerical &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 21:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Sort-by-Expression/m-p/368498#M136991</guid>
      <dc:creator />
      <dc:date>2012-04-25T21:15:24Z</dc:date>
    </item>
    <item>
      <title>Simple Sort by Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Sort-by-Expression/m-p/368499#M136992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Make a series of 7 listboxes. Each one displays a single day. Use an expression like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=if(Weekday(Weekday) = 'Sun',Weekday)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make each lisbox small and set them side by side.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;What a pain!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 21:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Sort-by-Expression/m-p/368499#M136992</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2012-04-25T21:20:52Z</dc:date>
    </item>
    <item>
      <title>Simple Sort by Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Sort-by-Expression/m-p/368500#M136993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works great - thank you both for responding so quickly and for having the right answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 21:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Sort-by-Expression/m-p/368500#M136993</guid>
      <dc:creator />
      <dc:date>2012-04-25T21:21:06Z</dc:date>
    </item>
  </channel>
</rss>

