<?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 Days from numbers? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Days-from-numbers/m-p/233622#M85159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;In in my Time Dimensions tables, the weeks are linked to days in the form of numbers, which I think is common. So in the Table for week 17, the week days show as 1,2,3 to 7 and my week here starts from Sunday, 1 being Sunday. I want to generate days from this numbers. 1- Sunday, 2 - Monday and save it as the Time_Week_Day, how can i achieve this?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;ANDY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Apr 2011 15:44:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-28T15:44:10Z</dc:date>
    <item>
      <title>Days from numbers?</title>
      <link>https://community.qlik.com/t5/QlikView/Days-from-numbers/m-p/233622#M85159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;In in my Time Dimensions tables, the weeks are linked to days in the form of numbers, which I think is common. So in the Table for week 17, the week days show as 1,2,3 to 7 and my week here starts from Sunday, 1 being Sunday. I want to generate days from this numbers. 1- Sunday, 2 - Monday and save it as the Time_Week_Day, how can i achieve this?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;ANDY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 15:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-from-numbers/m-p/233622#M85159</guid>
      <dc:creator />
      <dc:date>2011-04-28T15:44:10Z</dc:date>
    </item>
    <item>
      <title>AW:Days from numbers?</title>
      <link>https://community.qlik.com/t5/QlikView/Days-from-numbers/m-p/233623#M85160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Andy,&lt;/P&gt;&lt;P&gt;look in the helpfile for DUAL:&lt;/P&gt;&lt;P&gt;dual&lt;BR /&gt;dual( s , x )&lt;BR /&gt;Forced association of an arbitrary string representation s with a given number representation x. In QlikView, when several data items read into one field have different string representations but the same valid number representation, they will all share the first string representation encountered. The dual function is typically used early in the script, before other data is read into the field concerned, in order to create that first string representation, which will be shown in list boxes etc.&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;load dual ( string,numrep ) as DayOfWeek inline&lt;/P&gt;&lt;P&gt;[ string,numrep&lt;BR /&gt;Sunday,1&lt;BR /&gt;Monday,2&lt;BR /&gt;Tuesday,3&lt;BR /&gt;Wednesday,4&lt;BR /&gt;Thursday,5&lt;BR /&gt;Friday,6&lt;BR /&gt;Saturday,7&lt;BR /&gt; ];&lt;/P&gt;&lt;P&gt;load Date, weekday(Date) as DayOfWeek from afile.csv;&lt;/P&gt;&lt;P&gt;The script example will generate a field DayOfWeek with the weekdays written in clear text. QlikView will for all purposes regard the field as a numeric field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 16:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-from-numbers/m-p/233623#M85160</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-04-28T16:19:15Z</dc:date>
    </item>
    <item>
      <title>AW:Days from numbers?</title>
      <link>https://community.qlik.com/t5/QlikView/Days-from-numbers/m-p/233624#M85161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dual() is a very powerful function in QlikView&lt;/P&gt;&lt;P&gt;As alternative, you can use date() to format your dates.&lt;/P&gt;&lt;P&gt;You could use:&lt;/P&gt;&lt;P&gt;Load Date, date(Date,'WWW') as DayoftheWeek, weekday(Date) as nDayoftheWeek&lt;/P&gt;&lt;P&gt;resident ...&lt;/P&gt;&lt;P&gt;this will be still a date formated as text. To force it to become a text, you can use text(date(Date,'WWW'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will get the names on the variable defined on the begging of the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;I&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SET&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could also create the line below and use 4 w's on the formating condition to get a full name&lt;/P&gt;&lt;B&gt;&lt;I&gt;DayNames&lt;/I&gt;&lt;/B&gt; ='Mon;Tue;Wed;Thu;Fri;Sat;Sun'; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom:0px;margin-left:40px;"&gt;Set LongDayNames='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 16:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-from-numbers/m-p/233624#M85161</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-04-28T16:38:38Z</dc:date>
    </item>
  </channel>
</rss>

