<?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: Function Max by year in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Function-Max-by-year/m-p/753084#M15087</link>
    <description>&lt;P&gt;In this case I suggest you use an&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/vacdc/8.5/vareportdata/n1o2pvak2xw7jln13a2mxkytdmm4.htm" target="_self"&gt;Working with Aggregated Data Sources&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This will allow you to create a new datasource in your VA report with the aggregated data. Please note that the data element "&lt;SPAN&gt;max of pct" from the previous example will not be available in the aggregated data source, but can easily be derived using&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;Max [_ForAll_] ('engine / cylinders'n)&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;If needed the new aggregated data source can be joined back to the original data.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jul 2021 08:13:53 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2021-07-09T08:13:53Z</dc:date>
    <item>
      <title>Function Max by year</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Function-Max-by-year/m-p/752055#M15073</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;I need help in Visual Studio to calculated max and min.&lt;/P&gt;&lt;P&gt;I have data:&lt;/P&gt;&lt;P&gt;for one of category&lt;/P&gt;&lt;P&gt;Year&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Premium (sum by group)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sum insured (sum by group)&amp;nbsp; Rate(sum premium/ sum sum insured)&lt;/P&gt;&lt;P&gt;2018&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 000 000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0,1%&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2019&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10 000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 000 000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1%&lt;/P&gt;&lt;P&gt;2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15 000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 000 000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1,5%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to take max of rate for category: 1,5% for 2020 year. How can I do that? Which function?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Dorota&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 11:10:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Function-Max-by-year/m-p/752055#M15073</guid>
      <dc:creator>DorotaR</dc:creator>
      <dc:date>2021-07-05T11:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function Max by year</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Function-Max-by-year/m-p/752213#M15074</link>
      <description>&lt;P&gt;Assuming a few things since there is no information about this:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You are using Visual Analytics 8.5 or higher&lt;/LI&gt;
&lt;LI&gt;You want to do this in a VA report&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Took the data from sashelp.cars for the example.&lt;/P&gt;
&lt;P&gt;List table looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bruno_SAS_0-1625554001257.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60971i2EC86DDD1F6A5BEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bruno_SAS_0-1625554001257.png" alt="Bruno_SAS_0-1625554001257.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The "engine / cylinders" is calculated like this:&lt;/P&gt;
&lt;PRE&gt;Sum [_ByGroup_] ('enginesize'n) / Sum [_ByGroup_] ('cylinders'n)&lt;/PRE&gt;
&lt;P&gt;The "max of pct" is calculated like this:&lt;/P&gt;
&lt;P&gt;AggregateCells(_Max_, 'engine / cylinders'n, default, CellIndex(&lt;BR /&gt;start, 0), CellIndex(end, 0))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The AggregateCells operator works on the data that is displayed by the object. Have a look at this post&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/SAS-Visual-Analytics-Advanced-Calculations-part-1-of-4/ta-p/538509" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/SAS-Visual-Analytics-Advanced-Calculations-part-1-of-4/ta-p/538509&lt;/A&gt;&amp;nbsp;by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1484"&gt;@Renato_sas&lt;/a&gt;&amp;nbsp;for some more details on the AggregateCells operator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 06:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Function-Max-by-year/m-p/752213#M15074</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2021-07-06T06:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function Max by year</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Function-Max-by-year/m-p/752792#M15086</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your reply. Function Aggregate Cells work good, but I need fixed my max for year. And I have problem because&amp;nbsp;&lt;/P&gt;&lt;P&gt;function AggregateTable does not supported aggregate data. Is it possible to do that?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DorotaR_0-1625731150661.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61055i51B017038588B213/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DorotaR_0-1625731150661.png" alt="DorotaR_0-1625731150661.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want max=0,63% but without showing year in column, only one value.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DorotaR_1-1625731745716.png" style="width: 714px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61056iAA27FEA30013EB2B/image-dimensions/714x125?v=v2" width="714" height="125" role="button" title="DorotaR_1-1625731745716.png" alt="DorotaR_1-1625731745716.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am using VA 8.5.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Dorota&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 08:15:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Function-Max-by-year/m-p/752792#M15086</guid>
      <dc:creator>DorotaR</dc:creator>
      <dc:date>2021-07-08T08:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function Max by year</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Function-Max-by-year/m-p/753084#M15087</link>
      <description>&lt;P&gt;In this case I suggest you use an&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/vacdc/8.5/vareportdata/n1o2pvak2xw7jln13a2mxkytdmm4.htm" target="_self"&gt;Working with Aggregated Data Sources&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This will allow you to create a new datasource in your VA report with the aggregated data. Please note that the data element "&lt;SPAN&gt;max of pct" from the previous example will not be available in the aggregated data source, but can easily be derived using&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;Max [_ForAll_] ('engine / cylinders'n)&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;If needed the new aggregated data source can be joined back to the original data.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 08:13:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Function-Max-by-year/m-p/753084#M15087</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2021-07-09T08:13:53Z</dc:date>
    </item>
  </channel>
</rss>

