<?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 Using cumulative aggregration and group by in a line chart in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Using-cumulative-aggregration-and-group-by-in-a-line-chart/m-p/723210#M14689</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with a calculated item which aggregates a percentage value cumulatively. The column it's based on has the data as a percentage of the total within that category. So this calculation should give a percentage running from 100% to 0 within each separate category.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="e487_0-1614673754019.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55342iDD7E5451B9D6DE02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="e487_0-1614673754019.png" alt="e487_0-1614673754019.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've managed to get the data to display correctly in a crosstab:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="e487_1-1614673972526.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55343iF82E5533A5512E92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="e487_1-1614673972526.png" alt="e487_1-1614673972526.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However when I'm trying to get the data displayed in a line graph the aggregation goes wrong, instead of aggregating within each group the aggregation happens over all together, which is then displayed by group:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="e487_2-1614674290688.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55346iC6724BD16EA333C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="e487_2-1614674290688.png" alt="e487_2-1614674290688.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to have the line graph aggregate over the categories in the by group and not the month? Either by some option in the line graph or by calculating the aggregation differently.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Mar 2021 17:12:21 GMT</pubDate>
    <dc:creator>e487</dc:creator>
    <dc:date>2021-03-03T17:12:21Z</dc:date>
    <item>
      <title>Using cumulative aggregration and group by in a line chart</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Using-cumulative-aggregration-and-group-by-in-a-line-chart/m-p/723210#M14689</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with a calculated item which aggregates a percentage value cumulatively. The column it's based on has the data as a percentage of the total within that category. So this calculation should give a percentage running from 100% to 0 within each separate category.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="e487_0-1614673754019.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55342iDD7E5451B9D6DE02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="e487_0-1614673754019.png" alt="e487_0-1614673754019.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've managed to get the data to display correctly in a crosstab:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="e487_1-1614673972526.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55343iF82E5533A5512E92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="e487_1-1614673972526.png" alt="e487_1-1614673972526.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However when I'm trying to get the data displayed in a line graph the aggregation goes wrong, instead of aggregating within each group the aggregation happens over all together, which is then displayed by group:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="e487_2-1614674290688.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55346iC6724BD16EA333C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="e487_2-1614674290688.png" alt="e487_2-1614674290688.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to have the line graph aggregate over the categories in the by group and not the month? Either by some option in the line graph or by calculating the aggregation differently.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 17:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Using-cumulative-aggregration-and-group-by-in-a-line-chart/m-p/723210#M14689</guid>
      <dc:creator>e487</dc:creator>
      <dc:date>2021-03-03T17:12:21Z</dc:date>
    </item>
  </channel>
</rss>

