<?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: How to calculate year to date growth based on fiscal year in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889847#M17469</link>
    <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to calculate YTD Growth based on fiscal year in SAS Visual Analytics, with April as the staring period and March as the end.&lt;/P&gt;&lt;P&gt;Could you please let me know how it can be done on some measure 'X' and date field 'Y'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="suprodip007_0-1692362081792.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86808iAF2260FDAA4D2C04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="suprodip007_0-1692362081792.png" alt="suprodip007_0-1692362081792.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="suprodip007_1-1692362456138.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86810iA59332273B977DC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="suprodip007_1-1692362456138.png" alt="suprodip007_1-1692362456138.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(The above images are from the New Calculation &amp;gt; Year To Date Growth)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should be the inner and outer interval in the above attached images(kindly ignore the values that appear in the images) for fiscal year with starting period as April and end period as March?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2023 12:47:53 GMT</pubDate>
    <dc:creator>suprodip007</dc:creator>
    <dc:date>2023-08-18T12:47:53Z</dc:date>
    <item>
      <title>How to calculate year to date growth based on fiscal year</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889641#M17464</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I am using SAS Viya 4.0 2022 LTS version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing difficulty in calculating the YTD Growth based on fiscal Year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fiscal Year should start from 1st April.&lt;/P&gt;&lt;P&gt;Case 1 : If an user wants to check&amp;nbsp; YTD growth value for 10th August 2022 then the calculation should be done taking 1st April 2022.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Case 2 :&amp;nbsp; If an user wants to check&amp;nbsp; YTD growth value for 23rd March 2022 then the calculation should be done taking 1st April 2021 as the starting period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please tell me the exact values I need to put in the calculated field or the steps I need to follow to achieve the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 12:50:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889641#M17464</guid>
      <dc:creator>suprodip007</dc:creator>
      <dc:date>2023-08-17T12:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate year to date growth based on fiscal year</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889830#M17465</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input have anydtdte32. ;
want=intnx('year.4',have,0);
format have want worddatx.;
cards;
10 August 2022
23 March 2022 
23 March 2023
;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Aug 2023 11:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889830#M17465</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-08-18T11:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate year to date growth based on fiscal year</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889835#M17466</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thanks for looking forward to my problem.&lt;BR /&gt;But, I need to do in SAS Visual Analytics and I do not have any exposure to code in SAS Enterprise Guide .&lt;BR /&gt;&lt;BR /&gt;FYI, the Case 1 and Case 2 which I mentioned earlier were just examples , I need to do the YTD calculation for a very wide range of duration.&lt;BR /&gt;&lt;BR /&gt;Could you please let me know how it is done in SAS VA?</description>
      <pubDate>Fri, 18 Aug 2023 11:47:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889835#M17466</guid>
      <dc:creator>suprodip007</dc:creator>
      <dc:date>2023-08-18T11:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate year to date growth based on fiscal year</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889837#M17467</link>
      <description>Sorry. I have barely experience with  SAS VA.</description>
      <pubDate>Fri, 18 Aug 2023 11:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889837#M17467</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-08-18T11:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate year to date growth based on fiscal year</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889847#M17469</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to calculate YTD Growth based on fiscal year in SAS Visual Analytics, with April as the staring period and March as the end.&lt;/P&gt;&lt;P&gt;Could you please let me know how it can be done on some measure 'X' and date field 'Y'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="suprodip007_0-1692362081792.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86808iAF2260FDAA4D2C04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="suprodip007_0-1692362081792.png" alt="suprodip007_0-1692362081792.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="suprodip007_1-1692362456138.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86810iA59332273B977DC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="suprodip007_1-1692362456138.png" alt="suprodip007_1-1692362456138.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(The above images are from the New Calculation &amp;gt; Year To Date Growth)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should be the inner and outer interval in the above attached images(kindly ignore the values that appear in the images) for fiscal year with starting period as April and end period as March?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 12:47:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889847#M17469</guid>
      <dc:creator>suprodip007</dc:creator>
      <dc:date>2023-08-18T12:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate year to date growth based on fiscal year</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889848#M17470</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are on the right track! If you edit the expression that is generated from the YTD Growth quick calculation, I think you should get what you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second-to-last parameter specifies which month of the year is the start of the year. So if you change that 1 to a 4, in each instance of the CumulativePeriod () operator, that should change the calculation to use April as the year start.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if that yields the result you wanted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 12:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889848#M17470</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2023-08-18T12:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate year to date growth based on fiscal year</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889863#M17472</link>
      <description>Hi Sam,&lt;BR /&gt;&lt;BR /&gt;There will be issue here if I change the value to 4 as cumulative sum will be calculated and I need the second field to have fixed value.&lt;BR /&gt;&lt;BR /&gt;I want second parameter to have fixed value for a particular year and it should be having value of the month of April as the fiscal year starts with April.&lt;BR /&gt;&lt;BR /&gt;For Eg,&lt;BR /&gt;In April 2021, i have ytd_measure1 =10&lt;BR /&gt;&lt;BR /&gt;In October 2021 , i have ytd_measure1= 90&lt;BR /&gt;&lt;BR /&gt;In March 2022 , i have ytd_measure1=190&lt;BR /&gt;&lt;BR /&gt;So YTD Growth in October 2021 = (90-10)/10 *100%=800%&lt;BR /&gt;&lt;BR /&gt;YTD Growth in March 2022= (190-10)/10 * 100% =1800%&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Aug 2023 13:21:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889863#M17472</guid>
      <dc:creator>suprodip007</dc:creator>
      <dc:date>2023-08-18T13:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate year to date growth based on fiscal year</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889900#M17482</link>
      <description>&lt;P&gt;I have been experimenting with this, and I think what you want might not actually be possible using the VA expression editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "Year to Date&amp;nbsp; Growth" calculation is actually to compare the Year-over-year growth of the YTD sum. It does not compare to the value of the first month in the current fiscal year.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following will give you the YTD value based on April as the fiscal year start:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;CumulativePeriod&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_Sum_&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Product Sale'n&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;IgnoreAllTimeFrameFilters&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Transaction Month'n&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Inferred&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Inferred&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Full&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;But I don't think there is a good way to get the YTD value as a percentage from month to month. You could pre-calculate these values as part of your data preparation.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The expression builder in general and handling of date values specifically are focuses for the VA dev team and we hope to expand on the functionality in the future.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Sam&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Aug 2023 14:34:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-year-to-date-growth-based-on-fiscal-year/m-p/889900#M17482</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2023-08-18T14:34:57Z</dc:date>
    </item>
  </channel>
</rss>

