<?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 Calculate value from last FY last date to selected date  from filter. in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-value-from-last-FY-last-date-to-selected-date/m-p/904465#M2104</link>
    <description>Dear All,&lt;BR /&gt;&lt;BR /&gt;I need to calculate (in VIYA 4.0) the value from last FY last date to selected date from report.&lt;BR /&gt;Example: If user select 10Nov2023 from filter, then the value should calculate the difference and %difference from 31st Mar2023. If user select 05Jan2023 then value should calculate from 31Mar22 to 5th Jan2023.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;S Bakshi</description>
    <pubDate>Fri, 24 Nov 2023 12:34:12 GMT</pubDate>
    <dc:creator>shubha_da</dc:creator>
    <dc:date>2023-11-24T12:34:12Z</dc:date>
    <item>
      <title>How to Calculate value from last FY last date to selected date  from filter.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-value-from-last-FY-last-date-to-selected-date/m-p/904465#M2104</link>
      <description>Dear All,&lt;BR /&gt;&lt;BR /&gt;I need to calculate (in VIYA 4.0) the value from last FY last date to selected date from report.&lt;BR /&gt;Example: If user select 10Nov2023 from filter, then the value should calculate the difference and %difference from 31st Mar2023. If user select 05Jan2023 then value should calculate from 31Mar22 to 5th Jan2023.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;S Bakshi</description>
      <pubDate>Fri, 24 Nov 2023 12:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-value-from-last-FY-last-date-to-selected-date/m-p/904465#M2104</guid>
      <dc:creator>shubha_da</dc:creator>
      <dc:date>2023-11-24T12:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate value from last FY last date to selected date  from filter.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-value-from-last-FY-last-date-to-selected-date/m-p/904494#M2107</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/441035"&gt;@shubha_da&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Dear All,&lt;BR /&gt;&lt;BR /&gt;I need to calculate (in VIYA 4.0) the value from last FY last date to selected date from report.&lt;BR /&gt;Example: If user select 10Nov2023 from filter, then the value should calculate the difference and %difference from 31st Mar2023. If user select 05Jan2023 then value should calculate from 31Mar22 to 5th Jan2023.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;S Bakshi&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;What do mean by "from filter"?&amp;nbsp; Is that supposed to be the fiscal year end date?&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;And what units do you want for "calculate the difference"?&amp;nbsp; &amp;nbsp;Number of days?&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;And for "% difference", percent of what?&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 21:48:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-value-from-last-FY-last-date-to-selected-date/m-p/904494#M2107</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2023-11-24T21:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate value from last FY last date to selected date  from filter.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-value-from-last-FY-last-date-to-selected-date/m-p/904497#M2109</link>
      <description>Hi,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;I have 2 columns. Date and Amount.&lt;BR /&gt;Date Amount&lt;BR /&gt;25/02/2022 100&lt;BR /&gt;31/03/2022 50&lt;BR /&gt;12/05/2022 100&lt;BR /&gt;10/09/2022 150&lt;BR /&gt;02/03/2023 75&lt;BR /&gt;31/03/2023 100&lt;BR /&gt;05/10/2023 200&lt;BR /&gt;13/11/2023 150&lt;BR /&gt;&lt;BR /&gt;Now, Date filter has given in the dashborad and in a list/tabular table I want values differences as well as % differences of selected date from last fiscal year last date.&lt;BR /&gt;If user select 10/09/2022 then value difference should come 100 (150-50) and percentage as 300% (calculating from 31/03/2022 to 10/09/2022). Calculations should be always from last fiscal year last date.</description>
      <pubDate>Sat, 25 Nov 2023 02:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-value-from-last-FY-last-date-to-selected-date/m-p/904497#M2109</guid>
      <dc:creator>shubha_da</dc:creator>
      <dc:date>2023-11-25T02:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate value from last FY last date to selected date  from filter.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-value-from-last-FY-last-date-to-selected-date/m-p/904498#M2110</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/441035"&gt;@shubha_da&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;...&lt;BR /&gt;&amp;nbsp;Calculations should be always from last fiscal year last date.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How do you know what date is the end of the fiscal year?&amp;nbsp; If your data is for corporations, each company can have a different fiscal year end date.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Nov 2023 03:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-value-from-last-FY-last-date-to-selected-date/m-p/904498#M2110</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2023-11-25T03:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate value from last FY last date to selected date  from filter.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-value-from-last-FY-last-date-to-selected-date/m-p/904503#M2112</link>
      <description>This requirement is for one of the Banking client in India and for this client fiscal year starts with 1st April to 31st Mar.</description>
      <pubDate>Sat, 25 Nov 2023 07:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-value-from-last-FY-last-date-to-selected-date/m-p/904503#M2112</guid>
      <dc:creator>shubha_da</dc:creator>
      <dc:date>2023-11-25T07:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate value from last FY last date to selected date  from filter.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-value-from-last-FY-last-date-to-selected-date/m-p/904580#M2113</link>
      <description>&lt;P&gt;With SAS VA (I'm assuming you are using SAS Visual Analytics on Viya 4) you have two choices. Either you can calculate your financial year when preparing the data to be loaded into memory or you can create a VA formula that will derive the FY once the data is loaded into memory. Personally I find it easier to do this when preparing the data:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Want;
  input trandate ddmmyy10. Amount;
  FY_Date = intnx ('YEAR.4', trandate, 0, 'END');
  format trandate FY_Date date9.;
datalines;
25/02/2022 100
31/03/2022 50
12/05/2022 100
10/09/2022 150
02/03/2023 75
31/03/2023 100
05/10/2023 200
13/11/2023 150
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 20:09:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-value-from-last-FY-last-date-to-selected-date/m-p/904580#M2113</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-11-26T20:09:39Z</dc:date>
    </item>
  </channel>
</rss>

