<?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: Months on X-axes with week accuracy in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Months-on-X-axes-with-week-accuracy/m-p/462022#M172533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to conctenate like below in edit script&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Week&lt;/SPAN&gt;&lt;SPAN class="s2" style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Date&lt;/SPAN&gt;&lt;SPAN class="s2" style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;) &amp;amp; ' ' &amp;amp; Month(Date) as Weekmonth&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 May 2013 13:34:15 GMT</pubDate>
    <dc:creator>er_mohit</dc:creator>
    <dc:date>2013-05-15T13:34:15Z</dc:date>
    <item>
      <title>Months on X-axes with week accuracy</title>
      <link>https://community.qlik.com/t5/QlikView/Months-on-X-axes-with-week-accuracy/m-p/462020#M172531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hej&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to represent revenues over a year with months on the horizontal axis but the curve is smoothened compared to when I uses weeks on the same axis.&lt;/P&gt;&lt;P&gt;My datasource is a timestamp so I wrote in my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;Directory&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;BR /&gt; &lt;/SPAN&gt;Date&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;as&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;Date&lt;SPAN class="s2"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Year&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;Date&lt;SPAN class="s2"&gt;) &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;As&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;Year&lt;SPAN class="s2"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Month&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;Date&lt;SPAN class="s2"&gt;) &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;As&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;Month&lt;SPAN class="s2"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Week&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;Date&lt;SPAN class="s2"&gt;) &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;As&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;Week&lt;SPAN class="s2"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Day&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;Date&lt;SPAN class="s2"&gt;) &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;as&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;Day&lt;SPAN class="s2"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;I would like to have the curve I get when I use week but with the month caption on the axis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Thank you for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 11:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Months-on-X-axes-with-week-accuracy/m-p/462020#M172531</guid>
      <dc:creator />
      <dc:date>2013-05-15T11:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Months on X-axes with week accuracy</title>
      <link>https://community.qlik.com/t5/QlikView/Months-on-X-axes-with-week-accuracy/m-p/462021#M172532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a few ways that you could achieve this I think. If you simply use the 'date' field on the x axis then you can format it as Date([Date],'MMM-YY') for example... but maintain the detail in the chart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 13:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Months-on-X-axes-with-week-accuracy/m-p/462021#M172532</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2013-05-15T13:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Months on X-axes with week accuracy</title>
      <link>https://community.qlik.com/t5/QlikView/Months-on-X-axes-with-week-accuracy/m-p/462022#M172533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to conctenate like below in edit script&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Week&lt;/SPAN&gt;&lt;SPAN class="s2" style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Date&lt;/SPAN&gt;&lt;SPAN class="s2" style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;) &amp;amp; ' ' &amp;amp; Month(Date) as Weekmonth&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 13:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Months-on-X-axes-with-week-accuracy/m-p/462022#M172533</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-05-15T13:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Months on X-axes with week accuracy</title>
      <link>https://community.qlik.com/t5/QlikView/Months-on-X-axes-with-week-accuracy/m-p/462023#M172534</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;In your chart, in dimension used, use the following calculated dimension: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;Dual( if(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mod(Month,4)=0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null() &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,Week&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values of the week will be used in the drawing of the chart but this is the value of the corresponding month that will be displayed on the axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;if(Mod(Month,4)=0, Month,null())&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;is used to reduce the number of values of a same month displayed on the axis but I would sugest you to use a flag in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 14:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Months-on-X-axes-with-week-accuracy/m-p/462023#M172534</guid>
      <dc:creator>antoinelaviron</dc:creator>
      <dc:date>2013-05-15T14:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Months on X-axes with week accuracy</title>
      <link>https://community.qlik.com/t5/QlikView/Months-on-X-axes-with-week-accuracy/m-p/462024#M172535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Thank you for all your answers.&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Unfortunately none on them really worked exactly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;What worked finally was using Dual(Month, Week) as a dimension and then sorting by ascending numerical value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Best regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 15:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Months-on-X-axes-with-week-accuracy/m-p/462024#M172535</guid>
      <dc:creator />
      <dc:date>2013-05-15T15:52:28Z</dc:date>
    </item>
  </channel>
</rss>

