<?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 Dual Axis Bar-line chart format x-axis date column to weeks in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dual-Axis-Bar-line-chart-format-x-axis-date-column-to-weeks/m-p/789167#M15729</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to create a dual axis bar-line chart with a date column on the axis. I need the format of x-axis to be in weeks. I was able to achieve that but i do not have any insight into the date range of the week. Is there any way to show the x-axis in weeks with the timeframe? attached a screenshot for better understanding.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jayvisw11_0-1641757917682.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67242iB5A782B26CCF25DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jayvisw11_0-1641757917682.png" alt="jayvisw11_0-1641757917682.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Sun, 09 Jan 2022 19:53:40 GMT</pubDate>
    <dc:creator>jayvisw11</dc:creator>
    <dc:date>2022-01-09T19:53:40Z</dc:date>
    <item>
      <title>Dual Axis Bar-line chart format x-axis date column to weeks</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dual-Axis-Bar-line-chart-format-x-axis-date-column-to-weeks/m-p/789167#M15729</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to create a dual axis bar-line chart with a date column on the axis. I need the format of x-axis to be in weeks. I was able to achieve that but i do not have any insight into the date range of the week. Is there any way to show the x-axis in weeks with the timeframe? attached a screenshot for better understanding.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jayvisw11_0-1641757917682.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67242iB5A782B26CCF25DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jayvisw11_0-1641757917682.png" alt="jayvisw11_0-1641757917682.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2022 19:53:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dual-Axis-Bar-line-chart-format-x-axis-date-column-to-weeks/m-p/789167#M15729</guid>
      <dc:creator>jayvisw11</dc:creator>
      <dc:date>2022-01-09T19:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Axis Bar-line chart format x-axis date column to weeks</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dual-Axis-Bar-line-chart-format-x-axis-date-column-to-weeks/m-p/789260#M15730</link>
      <description>&lt;P&gt;Hey jayvisw11! There is not currently a format that shows the start of the week, but an easy way to do that is to create a date column that aligns all of your dates to the start of the week. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data public.foo(promote=yes);
    set bar;
    week_date = intnx('week', date, 0, 'B');
    format week_date date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will create dates that all start on the first day of a week. For example, in 2022:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%" height="30px"&gt;Week&lt;/TD&gt;
&lt;TD width="50%" height="30px"&gt;Week Number&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="30px"&gt;02JAN2022&lt;/TD&gt;
&lt;TD width="50%" height="30px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="30px"&gt;09JAN2022&lt;/TD&gt;
&lt;TD width="50%" height="30px"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="30px"&gt;16JAN2022&lt;/TD&gt;
&lt;TD width="50%" height="30px"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="30px"&gt;23JAN2022&lt;/TD&gt;
&lt;TD width="50%" height="30px"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;06FEB2022&lt;/TD&gt;
&lt;TD&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you'd like something truly custom, you can always go the custom format route and create something like a picture format that lists the week ranges for each date.&amp;nbsp;&amp;nbsp;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3331-2019.pdf" target="_self"&gt;Check out this paper on using custom formats in CAS&lt;/A&gt;, and &lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi31/243-31.pdf" target="_self"&gt;check out this paper on picture formats&lt;/A&gt;&amp;nbsp;if you've never used them before.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 14:53:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dual-Axis-Bar-line-chart-format-x-axis-date-column-to-weeks/m-p/789260#M15730</guid>
      <dc:creator>Stu_SAS</dc:creator>
      <dc:date>2022-01-10T14:53:31Z</dc:date>
    </item>
  </channel>
</rss>

