<?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 How to aggreate Total Liabilities by Month but start from June to July in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-aggreate-Total-Liabilities-by-Month-but-start-from-June/m-p/333304#M6385</link>
    <description>&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7271iB5F84E010F9BD666/image-size/original?v=1.0&amp;amp;px=-1" alt="Sample.jpg" title="Sample.jpg" border="0" /&gt;I am new developer in SAS VA. and I need to build a Chart to show Monthly total liabilities raised as well accumulative total liabilities raised in one chart. However, seems SAS VA only can cumulative from Jan to Dec, does not have option for the financial year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As photo below, line chart is perfectly accumulated until Dec, then all of sudden drop in January, b'cos it is considering a new year. How can I fix that. many thanx.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 07:36:02 GMT</pubDate>
    <dc:creator>Jingster</dc:creator>
    <dc:date>2017-02-16T07:36:02Z</dc:date>
    <item>
      <title>How to aggreate Total Liabilities by Month but start from June to July</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-aggreate-Total-Liabilities-by-Month-but-start-from-June/m-p/333304#M6385</link>
      <description>&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7271iB5F84E010F9BD666/image-size/original?v=1.0&amp;amp;px=-1" alt="Sample.jpg" title="Sample.jpg" border="0" /&gt;I am new developer in SAS VA. and I need to build a Chart to show Monthly total liabilities raised as well accumulative total liabilities raised in one chart. However, seems SAS VA only can cumulative from Jan to Dec, does not have option for the financial year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As photo below, line chart is perfectly accumulated until Dec, then all of sudden drop in January, b'cos it is considering a new year. How can I fix that. many thanx.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 07:36:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-aggreate-Total-Liabilities-by-Month-but-start-from-June/m-p/333304#M6385</guid>
      <dc:creator>Jingster</dc:creator>
      <dc:date>2017-02-16T07:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggreate Total Liabilities by Month but start from June to July</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-aggreate-Total-Liabilities-by-Month-but-start-from-June/m-p/334065#M6397</link>
      <description>&lt;P&gt;This is a pretty big hole in the VA functionality, in my experience the majority of institutions use a non calendar year i.e. Academic or financial.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After struggling with this for a while I discovered there is a work around though its a bit of a fiddle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You basically need to use the parallel period function to calculate the totals for all the previous periods (in my case I go back 2 years so have an aggregated measure for each of them)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;aggreagated measures called:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;current year&lt;/P&gt;&lt;P&gt;previous year&lt;/P&gt;&lt;P&gt;previous year2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can then add them together, although be careful because VA doesnt seem to like them if they are blank so I used the following to create a final aggregated measure called total&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;IF ( 'Previous_Year2'n Missing )
RETURN ( 
  IF ( 'Previous_Year'n Missing )
  RETURN 'Current year'n
  ELSE ( 'Previous_Year'n + 'Current year'n ) )
ELSE ( 'Previous_Year2'n + 'Previous_Year'n + 'Current year'n )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;To prove it works, my outputs look like (notice the line carries over though Jan)&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7340i33471BDAB0613F11/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Capturetemp2.GIF" title="Capturetemp2.GIF" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2017 14:19:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-aggreate-Total-Liabilities-by-Month-but-start-from-June/m-p/334065#M6397</guid>
      <dc:creator>itchyeyeballs</dc:creator>
      <dc:date>2017-02-18T14:19:44Z</dc:date>
    </item>
  </channel>
</rss>

