<?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: Sorting weekdays when comparing 7 days vs 7 days last year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-weekdays-when-comparing-7-days-vs-7-days-last-year/m-p/553941#M206958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the sort pane, select the Weekday field. Check "expression" for sort, and enter the datefield value as the sort expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2013 06:45:35 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2013-07-09T06:45:35Z</dc:date>
    <item>
      <title>Sorting weekdays when comparing 7 days vs 7 days last year</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-weekdays-when-comparing-7-days-vs-7-days-last-year/m-p/553940#M206957</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 table chart comparing rolling 7 days this year with rolling 7 days last year. The problem is though that I need to compare weekday with weekday because sales are very different through the week. &lt;/P&gt;&lt;P&gt;For example, I am comparing Tuesday 09/07/2013 with Tuesday 10/07/2012. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user can from a calendar pick a date and the rolling 7 objects start with showing sales for the selected date and 6 days prior to that date. That is all handled in the expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is with the dimension for this chart. If have chosen weekday and I have problems with sorting the days in the correct order. I want the chosen weekday to be at the bottom and the prior days to go up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example from above it should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wed&lt;/P&gt;&lt;P&gt;Thur&lt;/P&gt;&lt;P&gt;Fri&lt;/P&gt;&lt;P&gt;Sat&lt;/P&gt;&lt;P&gt;Sun&lt;/P&gt;&lt;P&gt;Mon&lt;/P&gt;&lt;P&gt;Tue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is very appreciated as I have struggled with this for quite some time now &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 06:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-weekdays-when-comparing-7-days-vs-7-days-last-year/m-p/553940#M206957</guid>
      <dc:creator />
      <dc:date>2013-07-09T06:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting weekdays when comparing 7 days vs 7 days last year</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-weekdays-when-comparing-7-days-vs-7-days-last-year/m-p/553941#M206958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the sort pane, select the Weekday field. Check "expression" for sort, and enter the datefield value as the sort expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 06:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-weekdays-when-comparing-7-days-vs-7-days-last-year/m-p/553941#M206958</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-07-09T06:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting weekdays when comparing 7 days vs 7 days last year</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-weekdays-when-comparing-7-days-vs-7-days-last-year/m-p/553942#M206959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, but I have tried this and it gives me this result (see below) if I select 10th May 2013. The first day, in this case Friday is always correct but after that the sorting won't work. Any other ideas? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="43842" class="jive-image" alt="Capture.PNG" src="https://community.qlik.com/legacyfs/online/43842_Capture.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 22:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-weekdays-when-comparing-7-days-vs-7-days-last-year/m-p/553942#M206959</guid>
      <dc:creator />
      <dc:date>2013-07-09T22:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting weekdays when comparing 7 days vs 7 days last year</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-weekdays-when-comparing-7-days-vs-7-days-last-year/m-p/553943#M206960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't recognize the language of your weekdays, so I'm having a hard time interpreting your results. What language is it? Can you upload a sample qvw?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 02:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-weekdays-when-comparing-7-days-vs-7-days-last-year/m-p/553943#M206960</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-07-10T02:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting weekdays when comparing 7 days vs 7 days last year</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-weekdays-when-comparing-7-days-vs-7-days-last-year/m-p/553944#M206961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, forgot about that. &lt;/P&gt;&lt;P&gt;The language is the QlikView-land language, Swedish &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will tell you what days they are:&lt;/P&gt;&lt;P&gt;DayNames &lt;SPAN style="font-size: 8pt;"&gt;='Må;Ti;On;To;Fr;Lö;Sö'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sort setting looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sort.PNG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/43847_Sort.PNG" width="450" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression for the rolling 7 days for current year looks like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Quarter&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=Date(Max(Date-6)))&amp;lt;=$(=Date(Max(Date)))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Ordernr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for last year rolling 7 days:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Quarter&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=Date(addmonths(Max(Date-5),-12)))&amp;lt;=$(=Date(addmonths(Max(Date+1),-12)))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Ordernr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 03:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-weekdays-when-comparing-7-days-vs-7-days-last-year/m-p/553944#M206961</guid>
      <dc:creator />
      <dc:date>2013-07-10T03:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting weekdays when comparing 7 days vs 7 days last year</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-weekdays-when-comparing-7-days-vs-7-days-last-year/m-p/553945#M206962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;=min(Date)&lt;/P&gt;&lt;P&gt;for the sort expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 23:46:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-weekdays-when-comparing-7-days-vs-7-days-last-year/m-p/553945#M206962</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-07-10T23:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting weekdays when comparing 7 days vs 7 days last year</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-weekdays-when-comparing-7-days-vs-7-days-last-year/m-p/553946#M206963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob, but that didn't change the sort order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any more ideas? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Asa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 00:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-weekdays-when-comparing-7-days-vs-7-days-last-year/m-p/553946#M206963</guid>
      <dc:creator />
      <dc:date>2013-07-11T00:35:57Z</dc:date>
    </item>
  </channel>
</rss>

