<?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: Scatter chart with Year - Week labels on a continous x-axis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scatter-chart-with-Year-Week-labels-on-a-continous-x-axis/m-p/1588336#M443352</link>
    <description>&lt;P&gt;Hi Exciton,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try adding a calculated dimension like the following. You do this in the dimensions tab under properties.&lt;/P&gt;&lt;P&gt;=date(Year_Week,'YYYY-MM')&lt;/P&gt;&lt;P&gt;Then you can rename the dimension in under label in dimensions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2019 19:32:30 GMT</pubDate>
    <dc:creator>michaelsikora</dc:creator>
    <dc:date>2019-06-04T19:32:30Z</dc:date>
    <item>
      <title>Scatter chart with Year - Week labels on a continous x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Scatter-chart-with-Year-Week-labels-on-a-continous-x-axis/m-p/1588216#M443340</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I've tried searching the community, but couldn't find anything answering this simple question.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By using the output of the function MonthStart (used in the script), one can&amp;nbsp;&lt;/SPAN&gt;create a scatter chart with a 'YYYY-MM ' string label on the x-axis, AND simultanously have dates in number format as the values for the x-axis. This results in linear, continous x-axis where the distance between data points in the graph is proportional to the time between the two dates (&lt;SPAN&gt;please see the attached picture).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="As intended function is achieved with MonthStart : both numerical values for tha x-axis and string value for the x-axis labels." style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13164i2F020A96A22618F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="YearMonth.PNG" alt="As intended function is achieved with MonthStart : both numerical values for tha x-axis and string value for the x-axis labels." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;As intended function is achieved with MonthStart : both numerical values for tha x-axis and string value for the x-axis labels.&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;My question is: How to make the same chart, but now with 'YYYY-WW' as the label on the x-axis?&lt;/STRONG&gt;&amp;nbsp; The function WeekName returns dual data type (in similarity with MonthStart), but for some reaseon Qlik does not like to display its string value as x-axis label.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="YearWeek.PNG" style="width: 772px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13166i7CF6E28FA28A6DAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="YearWeek.PNG" alt="YearWeek.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Obs! X-axis needs to be continous, the solution is not to make string values such as&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Year([$(_DateField)]) &amp;amp; '-' &amp;amp; Week([$(_DateField)]).&lt;BR /&gt;&lt;BR /&gt;Many thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scatter-chart-with-Year-Week-labels-on-a-continous-x-axis/m-p/1588216#M443340</guid>
      <dc:creator>Exciton</dc:creator>
      <dc:date>2024-11-16T20:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter chart with Year - Week labels on a continous x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Scatter-chart-with-Year-Week-labels-on-a-continous-x-axis/m-p/1588336#M443352</link>
      <description>&lt;P&gt;Hi Exciton,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try adding a calculated dimension like the following. You do this in the dimensions tab under properties.&lt;/P&gt;&lt;P&gt;=date(Year_Week,'YYYY-MM')&lt;/P&gt;&lt;P&gt;Then you can rename the dimension in under label in dimensions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 19:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scatter-chart-with-Year-Week-labels-on-a-continous-x-axis/m-p/1588336#M443352</guid>
      <dc:creator>michaelsikora</dc:creator>
      <dc:date>2019-06-04T19:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter chart with Year - Week labels on a continous x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Scatter-chart-with-Year-Week-labels-on-a-continous-x-axis/m-p/1588436#M443359</link>
      <description>&lt;P&gt;Dear Mike!&lt;/P&gt;&lt;P&gt;Thank you for your reply! I have tried your suggestion, but it did not resolve the issue,&amp;nbsp; the x-axis labels are still displaying the numerical value corresponding to the timestamp (e.g. 43000).&lt;BR /&gt;&lt;BR /&gt;I believe that the Year-Week field that I calculate by using the WeekName function has the propper return data type, please see:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/weekname.htm" target="_blank"&gt;https://help.qlik.com/enUS/qlikview/12.1/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/weekname.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The data type should thus not be an issue. In addition, the chart looks as intended when plotting Year-Month, which was created with corresponding function:&amp;nbsp;MonthStart (&lt;A href="https://help.qlik.com/en-US/sense/April2019/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFunctions/monthstart.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/April2019/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFunctions/monthstart.htm&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 07:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scatter-chart-with-Year-Week-labels-on-a-continous-x-axis/m-p/1588436#M443359</guid>
      <dc:creator>Exciton</dc:creator>
      <dc:date>2019-06-05T07:51:53Z</dc:date>
    </item>
  </channel>
</rss>

