<?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: Stuck Comparing This week with last week - sort order? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stuck-Comparing-This-week-with-last-week-sort-order/m-p/1107214#M520661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Arrival Date as dimension and format as Date([Arrival Date],'WWW')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2016 15:55:48 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-07-20T15:55:48Z</dc:date>
    <item>
      <title>Stuck Comparing This week with last week - sort order?</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-Comparing-This-week-with-last-week-sort-order/m-p/1107213#M520660</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 am trying to create a grouped bar chart with the days of the week as the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done the set analysis and can produce the results that I need, except for the sort order!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be a rolling chart and the latest day (yesterday) should always appear on the right.&amp;nbsp; This would be easy if I was using a date value, but then the columns would not group by day (i.e. I will have 14 days along the bottom in stead of 7).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need something like:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="upload.JPG" class="jive-image image-1" height="231" src="https://community.qlik.com/legacyfs/online/131911_upload.JPG" style="height: 231.039px; width: 519px;" width="519" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This is fine, except today is Wed and the days at the bottom should run Wed to Tue (latest full day of data on right), Tomorrow I want then to run Fri to Thu etc.&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 am using a Calendar table to return the standard day of the week (Mon, Tue etc) but can not sort it correctly for each day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if((weekday(max([Arrival Date]))) = 'Mon', wildmatch([Cal Day Of Week],'Tue','Wed','Thu','Fri','Sat','Sun','Mon')&lt;/P&gt;&lt;P&gt;,if((weekday(max([Arrival Date]))) = 'Tue', wildmatch([Cal Day Of Week],'Wed','Thu','Fri','Sat','Sun','Mon','Tue')&lt;/P&gt;&lt;P&gt;,if((weekday(max([Arrival Date]))) = 'Wed', wildmatch([Cal Day Of Week],'Thu','Fri','Sat','Sun','Mon','Tue','Wed')&lt;/P&gt;&lt;P&gt;,if((weekday(max([Arrival Date]))) = 'Thu', wildmatch([Cal Day Of Week],'Fri','Sat','Sun','Mon','Tue','Wed','Thu')&lt;/P&gt;&lt;P&gt;,if((weekday(max([Arrival Date]))) = 'Fri', wildmatch([Cal Day Of Week],'Sat','Sun','Mon','Tue','Wed','Thu','Fri')&lt;/P&gt;&lt;P&gt;,if((weekday(max([Arrival Date]))) = 'Sat', wildmatch([Cal Day Of Week],'Sun','Mon','Tue','Wed','Thu','Fri','Sat')&lt;/P&gt;&lt;P&gt;,if((weekday(max([Arrival Date]))) = 'Sun', wildmatch([Cal Day Of Week],'Mon','Tue','Wed','Thu','Fri','Sat','Sun')&lt;/P&gt;&lt;P&gt;)))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one advise where I am going wrong or if there is another way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 10:12:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-Comparing-This-week-with-last-week-sort-order/m-p/1107213#M520660</guid>
      <dc:creator />
      <dc:date>2016-07-20T10:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck Comparing This week with last week - sort order?</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-Comparing-This-week-with-last-week-sort-order/m-p/1107214#M520661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Arrival Date as dimension and format as Date([Arrival Date],'WWW')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 15:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-Comparing-This-week-with-last-week-sort-order/m-p/1107214#M520661</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-20T15:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck Comparing This week with last week - sort order?</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-Comparing-This-week-with-last-week-sort-order/m-p/1107215#M520662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gysbert for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use a running date formatted as WWW it produces the following with this weeks (green) appearing &lt;STRONG&gt;after&lt;/STRONG&gt; last weeks (blue):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="upload.JPG" class="jive-image image-1" height="201" src="https://community.qlik.com/legacyfs/online/132036_upload.JPG" style="height: 201.157px; width: 356px;" width="356" /&gt;&lt;/P&gt;&lt;P&gt;I was hoping to get them side by side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 09:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-Comparing-This-week-with-last-week-sort-order/m-p/1107215#M520662</guid>
      <dc:creator />
      <dc:date>2016-07-21T09:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck Comparing This week with last week - sort order?</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-Comparing-This-week-with-last-week-sort-order/m-p/1107216#M520663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps the attached example helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 11:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-Comparing-This-week-with-last-week-sort-order/m-p/1107216#M520663</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-21T11:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck Comparing This week with last week - sort order?</title>
      <link>https://community.qlik.com/t5/QlikView/Stuck-Comparing-This-week-with-last-week-sort-order/m-p/1107217#M520664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gysbert - Spot on!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 12:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stuck-Comparing-This-week-with-last-week-sort-order/m-p/1107217#M520664</guid>
      <dc:creator />
      <dc:date>2016-07-21T12:09:03Z</dc:date>
    </item>
  </channel>
</rss>

