<?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: Controling the totaling method for aggregated columns in VA 7.5 in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840986#M16628</link>
    <description>Hi all.&lt;BR /&gt;In my understanding you can can have it easier by working with base condition average by group and in the specific condition you specify Sum by group for the total crossing intersection.</description>
    <pubDate>Wed, 26 Oct 2022 18:03:07 GMT</pubDate>
    <dc:creator>acordes</dc:creator>
    <dc:date>2022-10-26T18:03:07Z</dc:date>
    <item>
      <title>Controling the totaling method for aggregated columns in VA 7.5</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840892#M16607</link>
      <description>&lt;P&gt;Hi, VA specialists,&lt;/P&gt;
&lt;P&gt;how does VA decide which method it uses to total an aggregated column?&lt;/P&gt;
&lt;P&gt;Some trials show that you can get different results for the same data, depending on the syntax. In one case VA uses the sum in the other the average:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Case 1:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bruehl_0-1666792220143.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76645iD1DEBB51B93DA2FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bruehl_0-1666792220143.png" alt="Bruehl_0-1666792220143.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Case 2:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bruehl_1-1666792302677.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76646i5B02C4AE321A8CC6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bruehl_1-1666792302677.png" alt="Bruehl_1-1666792302677.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Same data but different method of totaling:&lt;/P&gt;
&lt;P&gt;The only difference was the syntax of the aggregated column “Calc”:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Case 1:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bruehl_2-1666792355423.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76647iAEE58A29E234A08E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bruehl_2-1666792355423.png" alt="Bruehl_2-1666792355423.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Case 2:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bruehl_3-1666792416640.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76648i06A008FA438FD7BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bruehl_3-1666792416640.png" alt="Bruehl_3-1666792416640.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The only difference between the two is the Aggregation method in the else-clause. It doesn’t come into action, because the if-clause is parameterized accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a general rule, so that the desired aggregation method can be achieved?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840892#M16607</guid>
      <dc:creator>MarkusWeick</dc:creator>
      <dc:date>2022-10-26T13:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Controling the totaling method for aggregated columns in VA 7.5</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840904#M16611</link>
      <description>&lt;P&gt;In your example here, what's happening is that it's actually using the&amp;nbsp;&lt;STRONG&gt;Total&amp;nbsp;&lt;/STRONG&gt;value (79.20) when it evaluates the condition, so it will run the Else part of your calculated item when it's figuring out the Total line.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 14:11:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840904#M16611</guid>
      <dc:creator>HunterT_SAS</dc:creator>
      <dc:date>2022-10-26T14:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Controling the totaling method for aggregated columns in VA 7.5</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840923#M16613</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28814"&gt;@HunterT_SAS&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I just adjusted the if-clause and understood what you mean.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 14:42:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840923#M16613</guid>
      <dc:creator>MarkusWeick</dc:creator>
      <dc:date>2022-10-26T14:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Controling the totaling method for aggregated columns in VA 7.5</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840924#M16614</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Edit: Looks like Hunter came to basically the same conclusion&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My 7.5 image is acting up so I have only tested this on Viya, but the behavior might be the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From what I can tell, it looks likes the last aggregation operator (Sum, Avg, etc) in the expression is used for the Total row. So in Case 1, if you want average to be the Total aggregation you could invert the logic of the expression so that Avg is the ELSE rather than the RETURN.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is just my observation from testing on Viya, the actual code may be more complicated than this and the behavior on 7.5 might be different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 14:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840924#M16614</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2022-10-26T14:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Controling the totaling method for aggregated columns in VA 7.5</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840927#M16615</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13794"&gt;@Sam_SAS&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks. I just reversed the logic. And it confirmed what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28814"&gt;@HunterT_SAS&lt;/a&gt;&amp;nbsp;wrote. For the total, the if clause is evaluated on the underlying total. So it's not the last aggregation method in the syntax which determines the total aggregation.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 14:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840927#M16615</guid>
      <dc:creator>MarkusWeick</dc:creator>
      <dc:date>2022-10-26T14:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Controling the totaling method for aggregated columns in VA 7.5</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840966#M16622</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28814"&gt;@HunterT_SAS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;now that I have understood (thanks to your explanation) that also “the total” is subject to the formula for the aggregated column I adjusted the formula again:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bruehl_0-1666802715899.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76666iD405AC2570C66461/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bruehl_0-1666802715899.png" alt="Bruehl_0-1666802715899.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For the IF-clause I choose all values of the “Department” column, so the only line not included is the total line, for which I can choose the aggregation method in the else clause.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bruehl_1-1666802760884.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76667i2B229A31992CEEDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bruehl_1-1666802760884.png" alt="Bruehl_1-1666802760884.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This gives me the desired result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bruehl_2-1666802810149.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76668iEF0AC4135CC30C6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bruehl_2-1666802810149.png" alt="Bruehl_2-1666802810149.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(Averages for all departments, but the sum, not the average, in the total.)&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 16:47:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840966#M16622</guid>
      <dc:creator>MarkusWeick</dc:creator>
      <dc:date>2022-10-26T16:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Controling the totaling method for aggregated columns in VA 7.5</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840971#M16624</link>
      <description>&lt;P&gt;Ohh I like that a lot, that's a nice workaround! Definitely not something I have ever considered before.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 16:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840971#M16624</guid>
      <dc:creator>HunterT_SAS</dc:creator>
      <dc:date>2022-10-26T16:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Controling the totaling method for aggregated columns in VA 7.5</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840986#M16628</link>
      <description>Hi all.&lt;BR /&gt;In my understanding you can can have it easier by working with base condition average by group and in the specific condition you specify Sum by group for the total crossing intersection.</description>
      <pubDate>Wed, 26 Oct 2022 18:03:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/840986#M16628</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2022-10-26T18:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Controling the totaling method for aggregated columns in VA 7.5</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/841001#M16631</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127222"&gt;@acordes&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;in my VA 7.5 there is no "base expression" or "scope" choice.&lt;/P&gt;
&lt;P&gt;I think, I have to argue stronger to get Viya.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 19:06:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/841001#M16631</guid>
      <dc:creator>MarkusWeick</dc:creator>
      <dc:date>2022-10-26T19:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Controling the totaling method for aggregated columns in VA 7.5</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/841007#M16632</link>
      <description>Get Viya. You won't regret.&lt;BR /&gt;Viya is super complete and lightning fast.</description>
      <pubDate>Wed, 26 Oct 2022 19:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Controling-the-totaling-method-for-aggregated-columns-in-VA-7-5/m-p/841007#M16632</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2022-10-26T19:26:33Z</dc:date>
    </item>
  </channel>
</rss>

