<?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: Sort weekday with specific date last in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879054#M657842</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in my document he shows sat, sun, mon, tue, wed, thu, fri.&lt;/P&gt;&lt;P&gt;Doesn't matter what date i take&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2015 13:32:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-18T13:32:14Z</dc:date>
    <item>
      <title>Sort weekday with specific date last</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879045#M657830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with sorting weekday. I want to sort the days of the week with a specific day as the first day to see.&lt;/P&gt;&lt;P&gt;For instance if i want to show the last 7 days and today would be a wednesday i want the sort order to be like:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; 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;Weekday&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;tuesday&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;monday&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;sunday&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;saterday&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;friday&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;thursday&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;wednesday&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;this makes it easier to read a chart that shows the workload from the last 7 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anybody help me with this?&lt;/P&gt;&lt;P&gt;My thanks in advance for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 10:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879045#M657830</guid>
      <dc:creator />
      <dc:date>2015-05-18T10:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sort weekday with specific date last</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879046#M657831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;i also see uses for this with a specific date. lets say i want to show the last 7 days from last month i want the order to be:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;thursday 30-4&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;wednesday 29-4&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;tuesday 28-4&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;monday 27-4&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;sunday 26-4&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;saterday 25-4&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;friday 24-4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 10:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879046#M657831</guid>
      <dc:creator />
      <dc:date>2015-05-18T10:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sort weekday with specific date last</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879047#M657832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change here (Back end) and check:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 10:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879047#M657832</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2015-05-18T10:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sort weekday with specific date last</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879048#M657833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a calendar with DayofWeek as a field (in addition to the normal Date, Month, Year etc fields), then you can dimension the chart/table with DayofWeek and sort the dimension by Date (ascending).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 10:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879048#M657833</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-05-18T10:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sort weekday with specific date last</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879049#M657834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you can see i already have those. I just have them in Dutch (becouse me and my customers live in the Netherlands and prefer a Dutch sollution)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-05-18_1252.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86804_2015-05-18_1252.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 10:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879049#M657834</guid>
      <dc:creator />
      <dc:date>2015-05-18T10:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sort weekday with specific date last</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879050#M657835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that doesn't work.&lt;/P&gt;&lt;P&gt;The chart i want to use it on has the following expressions and dimensions:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Expression 1:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= count({1}DISTINCT if(Date&amp;gt;=Date('13-03-2014')-6 and Date&amp;lt;=Date('13-03-2014'), OrderID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Expression 2:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=num(count(OrderID) / count( distinct if(OrderID&amp;gt;0, weeknumber &amp;amp; YYYY)),'#.###,##')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dimension:&lt;BR /&gt;= Weekday (and yes this is from a calender file and not the weekday function of QV)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 11:00:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879050#M657835</guid>
      <dc:creator />
      <dc:date>2015-05-18T11:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sort weekday with specific date last</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879051#M657836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sort by expression, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(Weekday(DateField)&amp;lt;WeekDay(Today()),Weekday(DateField),Weekday(DateField)-7)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 11:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879051#M657836</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-05-18T11:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sort weekday with specific date last</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879052#M657837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried it like this:&lt;/P&gt;&lt;P&gt;=if(Date&amp;lt;=date('13-03-2014') and Date&amp;gt;=date('13-03-2014')-7, Weekday)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this works when i show this in a listbox but nog in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As discribed above, the chart is build with the following Expressions and Dimensions:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Expression 1:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= count({1}DISTINCT if(Date&amp;gt;=Date('13-03-2014')-6 and Date&amp;lt;=Date('13-03-2014'), OrderID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Expression 2:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=num(count(OrderID) / count( distinct if(OrderID&amp;gt;0, weeknumber &amp;amp; YYYY)),'#.###,##')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dimension:&lt;BR /&gt;= Weekday (and yes this is from a calender file and not the weekday function of QV)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 12:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879052#M657837</guid>
      <dc:creator />
      <dc:date>2015-05-18T12:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sort weekday with specific date last</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879053#M657838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like attached sample qvw? The expression you use in the chart should not much affect that way.&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(WeekNum&amp;lt;WeekDay(&lt;STRONG&gt;Today()&lt;/STRONG&gt;),WeekNum,WeekNum-7) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For testing and not having to wait if this works tomorrow or not, you can simply test it with trying Today()+1, today()+2...in place of today() itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 12:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879053#M657838</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-05-18T12:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sort weekday with specific date last</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879054#M657842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in my document he shows sat, sun, mon, tue, wed, thu, fri.&lt;/P&gt;&lt;P&gt;Doesn't matter what date i take&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 13:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879054#M657842</guid>
      <dc:creator />
      <dc:date>2015-05-18T13:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sort weekday with specific date last</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879055#M657843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest that you post a sample with some representative data and the chart under discussion. That way we can all stop guessing....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 15:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879055#M657843</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-05-18T15:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sort weekday with specific date last</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879056#M657845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresesco, with your help i managed to fix it! Your document helpt me very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works now with the following stats:&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;Weekday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 1:&lt;/P&gt;&lt;P&gt;count({1}DISTINCT if(Date&amp;gt;=Date('13-03-2014')-7 and Date&amp;lt;Date('13-03-2014'), OrderID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 2:&lt;/P&gt;&lt;P&gt;num(count(OrderID) / count( distinct if(OrderID&amp;gt;0, Weeknumber &amp;amp; Year)),'#.###,##')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort Expression:&lt;/P&gt;&lt;P&gt;If(Weekdaynr&amp;lt;WeekDay(date('13-03-2014')+1),Weekdaynr,Weekdaynr-7)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 15:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-weekday-with-specific-date-last/m-p/879056#M657845</guid>
      <dc:creator />
      <dc:date>2015-05-18T15:53:09Z</dc:date>
    </item>
  </channel>
</rss>

