<?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 by WeekYear field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-by-WeekYear-field/m-p/996898#M339111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Brilliant, I thought MakeWeekDate might be the one but couldn't figure out how to make it work. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Oct 2015 11:41:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-16T11:41:18Z</dc:date>
    <item>
      <title>Sorting by WeekYear field</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-WeekYear-field/m-p/996895#M339108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a week year field in my data that's generated as part of a master calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Week(WeekStart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as TimeSheet.WeekYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I can't sort by it so it's obviously not being interpreted as a date. I've tried playing around with NUM and DATE# but haven't managed to find anything that works. I did try changing it to a dual in the script but it messed up the grouping and I ended up with separate rows for each day of the week. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I would like a quick fix that I can implement in the chart directly rather than the script as the document takes a long time to reload and I'm on a bit of a deadline!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 11:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-WeekYear-field/m-p/996895#M339108</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-16T11:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting by WeekYear field</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-WeekYear-field/m-p/996896#M339109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For front end fix, may be try this as your sorting Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;Dual(TimeSheet.WeekYear, MakeWeekDate(SubField(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;STRONG&gt;TimeSheet.WeekYear, '-', 2), &lt;SPAN style="font-size: 13.3333px;"&gt;SubField(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="text-decoration: line-through;"&gt;TimeSheet.WeekYear, '-', 1)))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;MakeWeekDate(SubField(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;TimeSheet.WeekYear, '-', 2), &lt;SPAN style="font-size: 13.3333px;"&gt;SubField(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;TimeSheet.WeekYear, '-', 1))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 11:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-WeekYear-field/m-p/996896#M339109</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-16T11:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting by WeekYear field</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-WeekYear-field/m-p/996897#M339110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why sorting by TempDate is not sufficient?&lt;/P&gt;&lt;P&gt;if not enter in sort tab: sort by Expression year(TempDate)&amp;amp;week(TempDate)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 11:39:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-WeekYear-field/m-p/996897#M339110</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-16T11:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting by WeekYear field</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-WeekYear-field/m-p/996898#M339111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Brilliant, I thought MakeWeekDate might be the one but couldn't figure out how to make it work. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 11:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-WeekYear-field/m-p/996898#M339111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-16T11:41:18Z</dc:date>
    </item>
  </channel>
</rss>

