<?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: How do I convert a week-year string to dual in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-convert-a-week-year-string-to-dual/m-p/1988241#M1221222</link>
    <description>&lt;P&gt;Hi, you can create a Dual value using the Dual() function where you can assign a number to each string, in this case it could be:&lt;/P&gt;
&lt;P&gt;Dual(&lt;SPAN&gt;WeekName(date),(Year(date)*100)+Week(date))&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 15:11:21 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2022-10-03T15:11:21Z</dc:date>
    <item>
      <title>How do I convert a week-year string to dual</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-convert-a-week-year-string-to-dual/m-p/1988228#M1221221</link>
      <description>&lt;P&gt;I am storing weekly QVD snapshots using the function WeekName(date) as the filename (e.g. 2022/40). When I load that file back in I use the filename as a snapshot WeekYear field to differentiate it from other snapshots.&lt;/P&gt;
&lt;P&gt;The issue I have is that the&amp;nbsp;WeekYear field has now lost the dual functionality and is treated as a string. This is only an issue for me when sorting charts - Sort by numeric value is not working, however A-Z sort does (but I don't want to rely on this).&lt;/P&gt;
&lt;P&gt;How can I get the dual functionality back for a WeekName() formatted string?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LOAD
'$(a)' as WeekYear
...

from [C:\$(a).qvd] (qvd)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 14:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-convert-a-week-year-string-to-dual/m-p/1988228#M1221221</guid>
      <dc:creator>QlikMo</dc:creator>
      <dc:date>2022-10-03T14:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert a week-year string to dual</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-convert-a-week-year-string-to-dual/m-p/1988241#M1221222</link>
      <description>&lt;P&gt;Hi, you can create a Dual value using the Dual() function where you can assign a number to each string, in this case it could be:&lt;/P&gt;
&lt;P&gt;Dual(&lt;SPAN&gt;WeekName(date),(Year(date)*100)+Week(date))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 15:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-convert-a-week-year-string-to-dual/m-p/1988241#M1221222</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-10-03T15:11:21Z</dc:date>
    </item>
  </channel>
</rss>

